diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2020-08-20 23:40:50 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2020-08-20 23:40:50 -0400 |
| commit | 3af4c218c0e70167db23a6303d2af30aff37d2fe (patch) | |
| tree | 927f29edcf54ab562f40f3d1c6cb69287c7f5980 /Library/PackageCache/com.unity.timeline@1.2.13/Editor/ControlTrack | |
| parent | b6daed0af784f4e9bc13329dd87c671b06ee1c65 (diff) | |
| download | Project-Sandbox-3af4c218c0e70167db23a6303d2af30aff37d2fe.tar.gz Project-Sandbox-3af4c218c0e70167db23a6303d2af30aff37d2fe.tar.bz2 Project-Sandbox-3af4c218c0e70167db23a6303d2af30aff37d2fe.zip | |
Removed a bunch of stuff; Changes
Diffstat (limited to 'Library/PackageCache/com.unity.timeline@1.2.13/Editor/ControlTrack')
2 files changed, 0 insertions, 80 deletions
diff --git a/Library/PackageCache/com.unity.timeline@1.2.13/Editor/ControlTrack/ControlPlayableAssetEditor.cs b/Library/PackageCache/com.unity.timeline@1.2.13/Editor/ControlTrack/ControlPlayableAssetEditor.cs deleted file mode 100644 index 066e943..0000000 --- a/Library/PackageCache/com.unity.timeline@1.2.13/Editor/ControlTrack/ControlPlayableAssetEditor.cs +++ /dev/null @@ -1,69 +0,0 @@ -using System.Collections.Generic; -using UnityEngine; -using UnityEngine.Timeline; -using UnityEngine.Playables; - -namespace UnityEditor.Timeline -{ - [CustomTimelineEditor(typeof(ControlPlayableAsset))] - class ControlPlayableAssetEditor : ClipEditor - { - static readonly Texture2D[] s_ParticleSystemIcon = {AssetPreview.GetMiniTypeThumbnail(typeof(ParticleSystem))}; - - public override ClipDrawOptions GetClipOptions(TimelineClip clip) - { - var asset = (ControlPlayableAsset)clip.asset; - var options = base.GetClipOptions(clip); - if (asset.updateParticle && TimelineEditor.inspectedDirector != null && asset.controllingParticles) - options.icons = s_ParticleSystemIcon; - return options; - } - - public override void OnCreate(TimelineClip clip, TrackAsset track, TimelineClip clonedFrom) - { - var asset = (ControlPlayableAsset)clip.asset; - GameObject sourceObject = null; - - // go by sourceObject first, then by prefab - if (TimelineEditor.inspectedDirector != null) - sourceObject = asset.sourceGameObject.Resolve(TimelineEditor.inspectedDirector); - - if (sourceObject == null && asset.prefabGameObject != null) - sourceObject = asset.prefabGameObject; - - if (sourceObject) - { - var directors = asset.GetComponent<PlayableDirector>(sourceObject); - var particleSystems = asset.GetComponent<ParticleSystem>(sourceObject); - - // update the duration and loop values (used for UI purposes) here - // so they are tied to the latest gameObject bound - asset.UpdateDurationAndLoopFlag(directors, particleSystems); - - clip.displayName = sourceObject.name; - } - } - - public override void GetSubTimelines(TimelineClip clip, PlayableDirector director, List<PlayableDirector> subTimelines) - { - var asset = (ControlPlayableAsset)clip.asset; - - // If there is a prefab, it will override the source GameObject - if (!asset.updateDirector || asset.prefabGameObject != null || director == null) - return; - - var go = asset.sourceGameObject.Resolve(director); - if (go == null) - return; - - foreach (var subTimeline in asset.GetComponent<PlayableDirector>(go)) - { - if (subTimeline == director || subTimeline == TimelineEditor.masterDirector || subTimeline == TimelineEditor.inspectedDirector) - continue; - - if (subTimeline.playableAsset is TimelineAsset) - subTimelines.Add(subTimeline); - } - } - } -} diff --git a/Library/PackageCache/com.unity.timeline@1.2.13/Editor/ControlTrack/ControlPlayableAssetEditor.cs.meta b/Library/PackageCache/com.unity.timeline@1.2.13/Editor/ControlTrack/ControlPlayableAssetEditor.cs.meta deleted file mode 100644 index ece3e1f..0000000 --- a/Library/PackageCache/com.unity.timeline@1.2.13/Editor/ControlTrack/ControlPlayableAssetEditor.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: b5489bb3cd68836439785588fffc67a4 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: |
