You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			23 lines
		
	
	
		
			569 B
		
	
	
	
		
			C#
		
	
			
		
		
	
	
			23 lines
		
	
	
		
			569 B
		
	
	
	
		
			C#
		
	
| using System;
 | |
| using UnityEngine;
 | |
| using UnityEngine.Playables;
 | |
| using UnityEngine.Timeline;
 | |
| 
 | |
| [Serializable]
 | |
| public class CancelClip : PlayableAsset, ITimelineClipAsset
 | |
| {
 | |
|     public CancelBehaviour template = new CancelBehaviour();
 | |
| 
 | |
|     public ClipCaps clipCaps
 | |
|     {
 | |
|         get { return ClipCaps.None; }
 | |
|     }
 | |
| 
 | |
|     public override Playable CreatePlayable(PlayableGraph graph, GameObject owner)
 | |
|     {
 | |
|         var playable = ScriptPlayable<CancelBehaviour>.Create(graph, template);
 | |
|         CancelBehaviour clone = playable.GetBehaviour();
 | |
|         return playable;
 | |
|     }
 | |
| }
 |