Mistwraith Posted December 3, 2021 Share Posted December 3, 2021 Hello. I created a little prefab with a cellar and tryed to place that into a world. When I place it, everything seems to be alright. But when loading my game, it sits atop a high pillar of earth and concrete. Within the editor, I have set the ground level to the right height, and in play testing, it IS correctly placed on the ground. As soon as I start a game, however, it sits atop its pillar again. I tryed editing the y offset in the prefabs .xml file, but this doesnt change a thing. Also, when placing it within the editor, the prefab seem to be handled by the engine as if the ground level is the floor of the cellar. It has to be manualy lowered, so that it appears to be on ground level, otherwise its to high. Lowering it by any amount, however, doesnt do a thing. Ground level is block 60 in this chunk, but it gets placed at lvl 144 no matter how high or low I place it within the editor. Please help me out here, I tryed the whole afternoon and evening to figure this out and found no solution yet. Link to comment Share on other sites More sharing options...
stallionsden Posted December 3, 2021 Share Posted December 3, 2021 Check the yoffset on the prefab and make sure the ground level is correct Link to comment Share on other sites More sharing options...
Mistwraith Posted December 3, 2021 Author Share Posted December 3, 2021 (edited) 50 minutes ago, stallionsden said: Check the yoffset on the prefab and make sure the ground level is correct If you mean within the .xml, then I did that already. There is no visible difference between an offset of -10, -84 or +100. If there are other means to manipulate the y offset, I would be happy to hear about them. EDIT: I just discovered, that when enabling "Show ground level" within the world editor, there is a floating copy of the asset at the height where it gets (wrongly) placed in the game. The options to move it are grayed out, however. Edited December 3, 2021 by Mistwraith New discoveries on my side (see edit history) Link to comment Share on other sites More sharing options...
stallionsden Posted December 3, 2021 Share Posted December 3, 2021 (edited) Yeh can see there are 2 copies in that pic. Hmmm can you copy prefab (press z blue box then shift g to expand blue box around whole prefab then ctrl c and then click create new prefab then press z again and ctrl v. Edited December 3, 2021 by stallionsden (see edit history) Link to comment Share on other sites More sharing options...
Mistwraith Posted December 3, 2021 Author Share Posted December 3, 2021 That didnt do the trick. After deleting everything and starting without the prefab into the game, just to see what happens, the prefab was still there. So I figured, that I just create a new map (Stallion Island) and try it again. And it finaly worked. Thank you for trying to help me out, but I messed something up in the world editor most likely. Still no idea what i was, but at least its working now. 1 Link to comment Share on other sites More sharing options...
stallionsden Posted December 3, 2021 Share Posted December 3, 2021 Argh the world editor I haven't touched or looked at tbh. So apologies for misreading your original post. Glad you have it sorted tho Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now