UE solves the problem that its Collision will still be detected after SetActorHiddenInGame

1. The problem arises

(1) First, I added 红色的球(Sphere)and to the scene 绿色的面片(Plane), both are StaticMeshActor, as shown in the picture below:

insert image description here

(2) Then enter the static mesh editing window of the two, and set the collision complexity of both to UseComplexCollisionAsSimple.

insert image description here

(3) Use the blueprint to hide the Sphere at runtime, using SetActorHiddenInGamethe method:

insert image description here

碰撞的Actor(4) Obtain the current ࿰ through ray detection

Guess you like

Origin blog.csdn.net/weixin_45782925/article/details/128414303
Recommended