Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Question How can I customize the exposedName of an ExposedReference in a timeline asset?

Discussion in 'Timeline' started by tmclain_ea, Sep 12, 2020.

  1. tmclain_ea

    tmclain_ea

    Joined:
    Sep 12, 2020
    Posts:
    1
    I'd like to use a custom exposedName for an ExposedReference in timeline, but as far as I'm aware the PlayableDirector assigns all ExposedReferences a GUID string as their exposedName.

    Is there a way for me to override this default naming with just ExposedReference? Or do I need to write something custom to handle this?

    I'd like to be able to name a GameObject ExposedReference something like "Opponent" so that I can dynamically set this before playback and then do things like spawn particles relative to that game object.
     
  2. seant_unity

    seant_unity

    Unity Technologies

    Joined:
    Aug 25, 2015
    Posts:
    1,516
    Either a custom script is needed, or use the Debug inspector to change the exposedName field. (Debug inspector is available in the inspector context menu beside the lock button). You will need to the select the clip you want in Timeline, then double click on the asset field for the custom playable asset (or ControlPlayableAsset).