Skip to content

Instantly share code, notes, and snippets.

@Dreezn
Created January 17, 2018 19:37
Show Gist options
  • Save Dreezn/bb0ba4a5397c3f3c1401d6aca293e243 to your computer and use it in GitHub Desktop.
Save Dreezn/bb0ba4a5397c3f3c1401d6aca293e243 to your computer and use it in GitHub Desktop.
Naming the clips
//[Omited...]
public class CustomTransformationBehaviour : PlayableBehaviour
{
//[Omited...]
public TimelineClip CustomClipReference { get; set; }
public override void OnGraphStart(Playable playable)
{
CustomClipReference.displayName = transformation == null ? "none" : transformation.name;
base.OnGraphStart(playable);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment