Why are both of these functions that are supposed to give me level bounds returning a single point at 0,0,0?
I'm trying to get movable objects to become part of the level they're in when it unloads so they don't just fall into the void (I'm using world composition if it matters). As far as I can find it can only be done with C++ so I started using it and created a LevelScriptActor class and I'm trying to do this:
This prints the name of the level that's unloading correctly but both Min and Max are 0,0,0 so my objects will never be inside it, whether I use the commented out LevelBounds or the other one.
I learned most of this from these links: https://wiki.unrealengine.com/Streamed_Levels,_Test_If_Actor_Is_In_Level_Bounds https://wiki.unrealengine.com/Solus_C%2B%2B_Tutorials#Solus_C.2B.2B_Tutorial:_Creating_Custom_Level_Blueprints_in_C.2B.2B
asked Aug 30 '18 at 12:15 AM in C++ Programming
It works if I get the bounds on beginplay, using
Even though everything I've found indicates EndPlay fires before anything is actually unloaded so I don't see why getting the bounds then should be any different...
answered Aug 30 '18 at 03:59 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here