So heres the dealio, i set up a custom Foilage instance static mesh component, got it set up to destroy and then respawn individual instance no problem. They then grow after a certain amount of time, The problem is after it respawns if i move the camera to far up or move to far away it disappears, like its specific culling is different from all the other trees. I am just curious if anyone knows what is happening? The video should hopefully be enough explanation for the effect but here is what is going on in the code itself, its in order
So just a quick update, it appears the mesh is still there but tis the material that si disappearing.
So another update, I found that when i spawn the instance at full size without the growth it works fine the issue is when it gets resized
I fixed it. The issue was that the transform i think messed with the bounding box. SO when it would regrow it would set the bounding box rather small, or the bounding box couldnt keep up with the transform. So now what i do is remove the instance and then replace with it a slightly bigger instance of the same type. this makes the growth appear to happen but doesnt cause the issue i was seeing before hand.
1 Like
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.