UE4 turns on object collision and realizes object click event

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.
insert image description here
insert image description here
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
insert image description here
In the property box, search for [Collision], you can see [Collision Complexity]: project default, modify this to: use complex collisions as simple collisions.
insert image description here
insert image description here
After the modification is completed, in the player collision viewport of the scene, you can see that all the models have collisions.
insert image description here

Guess you like

Origin blog.csdn.net/qq_39590773/article/details/126477661