What is argument for SetActorLabel()

what is argument for SetActorLabel()

The name you want to give the actor label.

the actor label?
explain please

The name you see in the world outliner.

1 Like


which is ?

Yes, that would be the actor label.


help! actorlabel

What are you trying to do?


due to this result , you said to use PostActorCreated()
so,

i try

Right, as in

// in class definition in the header
virttual void PostActorCreated() override;

//in .cpp
void AProjectileBase::PostActorCreated()
{
    Super::PostActorCreated();
    ProjectileMovement->InitialSpeed = MovementSpeed;
    ProjectileMovement->MaxSpeed = MovementSpeed;
}


error

You declared the function in PawnBase instead of ProjectileBase


You’ve put the definition in the wrong file as well.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.