Article directory
1. The problem arises
(1) First, I added 红色的球(Sphere)
and to the scene 绿色的面片(Plane)
, both are StaticMeshActor
, as shown in the picture below:
(2) Then enter the static mesh editing window of the two, and set the collision complexity of both to UseComplexCollisionAsSimple
.
(3) Use the blueprint to hide the Sphere at runtime, using SetActorHiddenInGame
the method:
碰撞的Actor
(4) Obtain the current through ray detection