Quantcast
Channel: Latest Questions by eaglemaster7
Viewing all articles
Browse latest Browse all 18

attach Animation PlayableAsset to TimelineClip

$
0
0
I'm trying to make Editor script that create Timeline and it's clip from `_selected_gameObjects` so I wrote something like this: GameObject TimelineMaster = new GameObject("TimelineMaster"); PlayableDirector director = TimelineMaster.AddComponent(); TimelineAsset timeline = ScriptableObject.CreateInstance(); foreach( GameObject i in _selected_gameObjects) { AnimationTrack newTrack = timeline.CreateTrack(null, ""); TimelineClip current_clip = newTrack.CreateDefaultClip(); // // NOW I AM CONFUSED TO CONNECT current_clip AND animationClip // MISSING LINES SHOULD BE HERE } it wont attach animation clip automatically to the playableAsset, [image below] and as far as I tried I don't see reference to access that, what do I miss, or am I doing it wrong ? ![alt text][1] [1]: /storage/temp/139055-a.png Any help would be appreciated , thanks

Viewing all articles
Browse latest Browse all 18

Latest Images

Trending Articles





Latest Images