这两个意思很简单,
SetLifeSpan()是说还能活多长时间,
InitialLifeSpan是你生下来只能活多长时间。
时间到了就寿终正寝(自动销毁)。
唯一需要注意的一点是:当值设置为0时,物体是不会被销毁的。
官方的原话是这样的:
Set the lifespan of this actor. When it expires the object will be destroyed. If requested lifespan is 0, the timer is cleared and the actor will not be destroyed.
正如命名所表示的那样,InitialLifeSpan,是用来初始的,要放在构造函数中使用。放在其他位置是不行。(BeginPlay()没有试,有兴趣的同学可以试一下)。但是Ini