SetActive not working with actor's GameObject
Posted: Thu Mar 04, 2021 7:48 am
HI,
I'm using some sequences to do my cutscenes. In the last sequence I put a SetActive commad to deactivate the GameObject of an actor. This GameObject have a Dialogue Actor component, and the GameObject's name is the same of the actor: "Alex". I'm not sure if this somehow influence, but I suppose because if I SetActive any other GameObject it deactivate correctly.
I'll let some extra information in case it helps:
-When SetActive is called "Alex" is the listener.
-Alex is playing an Animation (walking)
-Last Sequence:
Actor: Rene
Conversant: Alex
Sequence:
-Previous Sequence:
Actor: Alex
Conversant: Rene
Sequence:
I'm using some sequences to do my cutscenes. In the last sequence I put a SetActive commad to deactivate the GameObject of an actor. This GameObject have a Dialogue Actor component, and the GameObject's name is the same of the actor: "Alex". I'm not sure if this somehow influence, but I suppose because if I SetActive any other GameObject it deactivate correctly.
I'll let some extra information in case it helps:
-When SetActive is called "Alex" is the listener.
-Alex is playing an Animation (walking)
-Last Sequence:
Actor: Rene
Conversant: Alex
Sequence:
Code: Select all
SendMessage(CallEmotion, Talk);
Delay({{end}})@2;
Camera(Table, Default Camera Angles);
SetActive(Alex, false);
Actor: Alex
Conversant: Rene
Sequence:
Code: Select all
SendMessage(CallEmotion, Talk);
Delay({{end}})@2;
Camera(Alex Closeup, Default Camera Angles);
AnimatorPlayWait(Sitting-Idle)->Message(Done);
MoveTo(AlexExitPoint,, 3)@Message(Done);
AnimatorPlay(Walking)@Message(Done);