The model inside UE4 has collision by default, but the model imported from outside has no collision, so when writing the object click event, it has not been realized.
Through the window - player collision, check whether the model in the scene has collision enabled.
It can be seen that except for a few crawler tracks, other models in the scene have no collision.
By selecting all models, right-click asset operation—batch editing through attribute matrix
In the property box, search for [Collision], you can see [Collision Complexity]: project default, modify this to: use complex collisions as simple collisions.
After the modification is completed, in the player collision viewport of the scene, you can see that all the models have collisions.
UE4 turns on object collision and realizes object click event
Guess you like
Origin blog.csdn.net/qq_39590773/article/details/126477661
Recommended
Ranking