A lot of stuff to Commit because I forgot to Commit in between (Don't do stuff like this, kids)
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.Playables;
|
||||
|
||||
public class SubtitleTrackClip : PlayableAsset
|
||||
{
|
||||
public string subtitleText;
|
||||
|
||||
public override Playable CreatePlayable(PlayableGraph graph, GameObject owner)
|
||||
{
|
||||
var playable = ScriptPlayable<SubtitleTrackBehaviour>.Create(graph);
|
||||
|
||||
var subtitleTrackBehaviour = playable.GetBehaviour();
|
||||
subtitleTrackBehaviour.subtitleText = subtitleText;
|
||||
|
||||
return playable;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user