Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
もっと簡単な動的なバインド(Control Playable Asset Clipのみ)
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Playables;
public class EasyRebind : MonoBehaviour
{
[SerializeField] Transform bindedTransform;
public void Play (Rotation rotation)
{
rotation.transform.parent = bindedTransform;
var director = GetComponent<PlayableDirector> ();
director.Play ();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment