Change Target of Command Instruments In Code?

Is there anyway to change the target event of a command instrument via code in Unity? We want to have command instruments on a timeline and be able to swap what events it is triggering depending on what is going on in the game.

image

2 Likes

Hi,

Unfortunately, we don’t support changing the target of a Command Instrument through code. However, an alternative that might give you the functionality you are looking for: Nested Events, explained under Organizing the Project: Nested Events, will let you trigger different events depending on Parameters that are can be controlled by the conditions of your game.

Hope this helps!