Search Unity

Is there a way to paste transform values directly into a 'playable' timeline component?

Discussion in 'Timeline' started by jackdd_unity, Oct 7, 2019.

  1. jackdd_unity

    jackdd_unity

    Joined:
    Oct 7, 2019
    Posts:
    5
    I would like to be able to 'copy component values' and directly paste them into the playable values like in the picture below:


    But because these values are just 3 separate vector 3's instead of a proper component it won't allow me to. Is there a work around for this?
     
  2. seant_unity

    seant_unity

    Unity Technologies

    Joined:
    Aug 25, 2015
    Posts:
    1,516
    I'm not aware of anything existing, it seems like something you would have to script yourself in an inspector. UnityEditorInternal.ComponentUtility has the paste component methods. You could try pasting to a dummy gameObject (with HideAndDontSave flags), then transfer the transform components from the hidden objects to your custom fields.
     
    jackdd_unity likes this.
  3. jackdd_unity

    jackdd_unity

    Joined:
    Oct 7, 2019
    Posts:
    5
    Cheers for the help Sean!