├── .gitignore ├── Assets ├── 1-SimpleMarker.meta ├── 1-SimpleMarker │ ├── SimpleMarker.cs │ ├── SimpleMarker.cs.meta │ ├── SimpleMarker.playable │ └── SimpleMarker.playable.meta ├── 2-ManualNotification.meta ├── 2-ManualNotification │ ├── ManualGraph.unity │ ├── ManualGraph.unity.meta │ ├── ManualNotification.cs │ └── ManualNotification.cs.meta ├── 3-ScheduledNotification.meta ├── 3-ScheduledNotification │ ├── ScheduledNotification.cs │ ├── ScheduledNotification.cs.meta │ ├── ScheduledNotification.unity │ └── ScheduledNotification.unity.meta ├── 4-NotificationMarker.meta ├── 4-NotificationMarker │ ├── NotificationMarker.cs │ ├── NotificationMarker.cs.meta │ ├── NotificationMarker.unity │ ├── NotificationMarker.unity.meta │ ├── TimelineWithNotificationMarker.playable │ └── TimelineWithNotificationMarker.playable.meta ├── 5-Annotation.meta ├── 5-Annotation │ ├── Annotation.cs │ ├── Annotation.cs.meta │ ├── AnnotationTimeline.playable │ ├── AnnotationTimeline.playable.meta │ ├── Editor.meta │ └── Editor │ │ ├── Stylesheets.meta │ │ ├── Stylesheets │ │ ├── Extensions.meta │ │ └── Extensions │ │ │ ├── common.uss │ │ │ └── common.uss.meta │ │ ├── pencil.png │ │ └── pencil.png.meta ├── 6-JumpMarker.meta ├── 6-JumpMarker │ ├── DestinationMarker.cs │ ├── DestinationMarker.cs.meta │ ├── Editor.meta │ ├── Editor │ │ ├── JumpMarkerInspector.cs │ │ ├── JumpMarkerInspector.cs.meta │ │ ├── Stylesheets.meta │ │ └── Stylesheets │ │ │ ├── Extensions.meta │ │ │ ├── Extensions │ │ │ ├── common.uss │ │ │ └── common.uss.meta │ │ │ ├── imgs.meta │ │ │ └── imgs │ │ │ ├── destination_collapsed.png │ │ │ ├── destination_collapsed.png.meta │ │ │ ├── destination_normal.png │ │ │ ├── destination_normal.png.meta │ │ │ ├── destination_selected.png │ │ │ ├── destination_selected.png.meta │ │ │ ├── jumpTo_collapsed.png │ │ │ ├── jumpTo_collapsed.png.meta │ │ │ ├── jumpTo_normal.png │ │ │ ├── jumpTo_normal.png.meta │ │ │ ├── jumpTo_selected.png │ │ │ └── jumpTo_selected.png.meta │ ├── JumpMarker.cs │ ├── JumpMarker.cs.meta │ ├── JumpMarker.unity │ ├── JumpMarker.unity.meta │ ├── JumpMarkerTimeline.playable │ ├── JumpMarkerTimeline.playable.meta │ ├── JumpReceiver.cs │ └── JumpReceiver.cs.meta ├── 7-ClipNotification.meta ├── 7-ClipNotification │ ├── ClipNotification.playable │ ├── ClipNotification.playable.meta │ ├── ClipNotification.unity │ ├── ClipNotification.unity.meta │ ├── ClipNotificationAsset.cs │ ├── ClipNotificationAsset.cs.meta │ ├── ClipNotificationBehaviour.cs │ ├── ClipNotificationBehaviour.cs.meta │ ├── ClipNotificationTrack.cs │ └── ClipNotificationTrack.cs.meta ├── Common.meta ├── Common │ ├── MyNotification.cs │ ├── MyNotification.cs.meta │ ├── NotificationReceiver.cs │ ├── NotificationReceiver.cs.meta │ ├── ReceiverExample.cs │ └── ReceiverExample.cs.meta ├── Tools.meta └── Tools │ ├── PlayableGraphVisualizer.meta │ ├── PlayableGraphVisualizer │ ├── Editor.meta │ ├── Editor │ │ ├── Graph.meta │ │ ├── Graph │ │ │ ├── Graph.cs │ │ │ ├── Graph.cs.meta │ │ │ ├── Layouts.meta │ │ │ ├── Layouts │ │ │ │ ├── IGraphLayout.cs │ │ │ │ ├── IGraphLayout.cs.meta │ │ │ │ ├── ReingoldTilford.cs │ │ │ │ └── ReingoldTilford.cs.meta │ │ │ ├── Node.cs │ │ │ ├── Node.cs.meta │ │ │ ├── Renderer.meta │ │ │ └── Renderer │ │ │ │ ├── DefaultGraphRenderer.cs │ │ │ │ ├── DefaultGraphRenderer.cs.meta │ │ │ │ ├── IGraphRenderer.cs │ │ │ │ └── IGraphRenderer.cs.meta │ │ ├── PlayableGraphVisualizer.cs │ │ ├── PlayableGraphVisualizer.cs.meta │ │ ├── PlayableGraphVisualizerWindow.cs │ │ ├── PlayableGraphVisualizerWindow.cs.meta │ │ ├── PlayableNodes.meta │ │ ├── PlayableNodes │ │ │ ├── AnimationClipPlayableNode.cs │ │ │ ├── AnimationClipPlayableNode.cs.meta │ │ │ ├── AnimationLayerMixerPlayableNode.cs │ │ │ ├── AnimationLayerMixerPlayableNode.cs.meta │ │ │ ├── PlayableNode.cs │ │ │ ├── PlayableNode.cs.meta │ │ │ ├── PlayableOutputNode.cs │ │ │ ├── PlayableOutputNode.cs.meta │ │ │ ├── SharedPlayableNode.cs │ │ │ └── SharedPlayableNode.cs.meta │ │ ├── Resources.meta │ │ ├── Resources │ │ │ ├── Node.png │ │ │ └── Node.png.meta │ │ ├── Unity.PlayableGraphVisualizer.Editor.asmdef │ │ └── Unity.PlayableGraphVisualizer.Editor.asmdef.meta │ ├── Runtime.meta │ └── Runtime │ │ ├── GraphVisualizerClient.cs │ │ ├── GraphVisualizerClient.cs.meta │ │ ├── Unity.PlayableGraphVisualizer.asmdef │ │ └── Unity.PlayableGraphVisualizer.asmdef.meta │ ├── Reload.cs │ └── Reload.cs.meta ├── Docs └── jumpMarker.gif ├── Packages └── manifest.json ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── Physics2DSettings.asset ├── PresetManager.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset ├── UnityConnectSettings.asset ├── VFXManager.asset └── XRSettings.asset └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | [Ll]ibrary/ 2 | [Tt]emp/ 3 | [Oo]bj/ 4 | [Bb]uild/ 5 | [Bb]uilds/ 6 | Assets/AssetStoreTools* 7 | 8 | # Visual Studio cache directory 9 | .vs/ 10 | 11 | # Autogenerated VS/MD/Consulo solution and project files 12 | ExportedObj/ 13 | .consulo/ 14 | *.csproj 15 | *.unityproj 16 | *.sln 17 | *.suo 18 | *.tmp 19 | *.user 20 | *.userprefs 21 | *.pidb 22 | *.booproj 23 | *.svd 24 | *.pdb 25 | *.opendb 26 | 27 | # Unity3D generated meta files 28 | *.pidb.meta 29 | *.pdb.meta 30 | 31 | # Unity3D Generated File On Crash Reports 32 | sysinfo.txt 33 | 34 | # Builds 35 | *.apk 36 | *.unitypackage 37 | -------------------------------------------------------------------------------- /Assets/1-SimpleMarker.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 908f17ae4cd6896468ca75056f984e15 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/1-SimpleMarker/SimpleMarker.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | public class SimpleMarker : UnityEngine.Timeline.Marker {} 4 | -------------------------------------------------------------------------------- /Assets/1-SimpleMarker/SimpleMarker.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0ac224e79b15b5f42b7380fb1c90e5ba 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/1-SimpleMarker/SimpleMarker.playable: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &-8345570172332085186 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 1 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 0ac224e79b15b5f42b7380fb1c90e5ba, type: 3} 13 | m_Name: Simple Marker 14 | m_EditorClassIdentifier: 15 | m_Time: 2 16 | --- !u!114 &-787939880135798758 17 | MonoBehaviour: 18 | m_ObjectHideFlags: 1 19 | m_CorrespondingSourceObject: {fileID: 0} 20 | m_PrefabInstance: {fileID: 0} 21 | m_PrefabAsset: {fileID: 0} 22 | m_GameObject: {fileID: 0} 23 | m_Enabled: 1 24 | m_EditorHideFlags: 0 25 | m_Script: {fileID: 11500000, guid: 0ac224e79b15b5f42b7380fb1c90e5ba, type: 3} 26 | m_Name: Simple Marker 27 | m_EditorClassIdentifier: 28 | m_Time: 1 29 | --- !u!114 &11400000 30 | MonoBehaviour: 31 | m_ObjectHideFlags: 0 32 | m_CorrespondingSourceObject: {fileID: 0} 33 | m_PrefabInstance: {fileID: 0} 34 | m_PrefabAsset: {fileID: 0} 35 | m_GameObject: {fileID: 0} 36 | m_Enabled: 1 37 | m_EditorHideFlags: 0 38 | m_Script: {fileID: 11500000, guid: bfda56da833e2384a9677cd3c976a436, type: 3} 39 | m_Name: SimpleMarker 40 | m_EditorClassIdentifier: 41 | m_Version: 0 42 | m_Tracks: [] 43 | m_FixedDuration: 0 44 | m_EditorSettings: 45 | m_Framerate: 60 46 | m_DurationMode: 0 47 | m_MarkerTrack: {fileID: 668550314656420013} 48 | --- !u!114 &668550314656420013 49 | MonoBehaviour: 50 | m_ObjectHideFlags: 1 51 | m_CorrespondingSourceObject: {fileID: 0} 52 | m_PrefabInstance: {fileID: 0} 53 | m_PrefabAsset: {fileID: 0} 54 | m_GameObject: {fileID: 0} 55 | m_Enabled: 1 56 | m_EditorHideFlags: 0 57 | m_Script: {fileID: 11500000, guid: 2a16748d9461eae46a725db9776d5390, type: 3} 58 | m_Name: Markers 59 | m_EditorClassIdentifier: 60 | m_Version: 3 61 | m_AnimClip: {fileID: 0} 62 | m_Locked: 0 63 | m_Muted: 0 64 | m_CustomPlayableFullTypename: 65 | m_Curves: {fileID: 0} 66 | m_Parent: {fileID: 11400000} 67 | m_Children: [] 68 | m_Clips: [] 69 | m_Markers: 70 | m_Objects: 71 | - {fileID: -787939880135798758} 72 | - {fileID: -8345570172332085186} 73 | -------------------------------------------------------------------------------- /Assets/1-SimpleMarker/SimpleMarker.playable.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1d72591d65205d44dbb596e12e67aac0 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/2-ManualNotification.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0529e159b54772745b6765d7ed8e1579 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/2-ManualNotification/ManualGraph.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 9 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 0 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 0} 41 | m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 11 47 | m_GIWorkflowMode: 1 48 | m_GISettings: 49 | serializedVersion: 2 50 | m_BounceScale: 1 51 | m_IndirectOutputScale: 1 52 | m_AlbedoBoost: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 1 55 | m_EnableRealtimeLightmaps: 1 56 | m_LightmapEditorSettings: 57 | serializedVersion: 12 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_AtlasSize: 1024 61 | m_AO: 0 62 | m_AOMaxDistance: 1 63 | m_CompAOExponent: 1 64 | m_CompAOExponentDirect: 0 65 | m_ExtractAmbientOcclusion: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 1 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 512 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 256 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 1 83 | m_PVRDenoiserTypeDirect: 1 84 | m_PVRDenoiserTypeIndirect: 1 85 | m_PVRDenoiserTypeAO: 1 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 1 90 | m_PVRCulling: 1 91 | m_PVRFilteringGaussRadiusDirect: 1 92 | m_PVRFilteringGaussRadiusIndirect: 5 93 | m_PVRFilteringGaussRadiusAO: 2 94 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 95 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 96 | m_PVRFilteringAtrousPositionSigmaAO: 1 97 | m_ShowResolutionOverlay: 1 98 | m_ExportTrainingData: 0 99 | m_LightingDataAsset: {fileID: 0} 100 | m_UseShadowmask: 1 101 | --- !u!196 &4 102 | NavMeshSettings: 103 | serializedVersion: 2 104 | m_ObjectHideFlags: 0 105 | m_BuildSettings: 106 | serializedVersion: 2 107 | agentTypeID: 0 108 | agentRadius: 0.5 109 | agentHeight: 2 110 | agentSlope: 45 111 | agentClimb: 0.4 112 | ledgeDropHeight: 0 113 | maxJumpAcrossDistance: 0 114 | minRegionArea: 2 115 | manualCellSize: 0 116 | cellSize: 0.16666667 117 | manualTileSize: 0 118 | tileSize: 256 119 | accuratePlacement: 0 120 | debug: 121 | m_Flags: 0 122 | m_NavMeshData: {fileID: 0} 123 | --- !u!1 &377711133 124 | GameObject: 125 | m_ObjectHideFlags: 0 126 | m_CorrespondingSourceObject: {fileID: 0} 127 | m_PrefabInstance: {fileID: 0} 128 | m_PrefabAsset: {fileID: 0} 129 | serializedVersion: 6 130 | m_Component: 131 | - component: {fileID: 377711135} 132 | - component: {fileID: 377711134} 133 | m_Layer: 0 134 | m_Name: SendNotification 135 | m_TagString: Untagged 136 | m_Icon: {fileID: 0} 137 | m_NavMeshLayer: 0 138 | m_StaticEditorFlags: 0 139 | m_IsActive: 1 140 | --- !u!114 &377711134 141 | MonoBehaviour: 142 | m_ObjectHideFlags: 0 143 | m_CorrespondingSourceObject: {fileID: 0} 144 | m_PrefabInstance: {fileID: 0} 145 | m_PrefabAsset: {fileID: 0} 146 | m_GameObject: {fileID: 377711133} 147 | m_Enabled: 1 148 | m_EditorHideFlags: 0 149 | m_Script: {fileID: 11500000, guid: beb4f8cfa9fa876448e216cfad0b7589, type: 3} 150 | m_Name: 151 | m_EditorClassIdentifier: 152 | --- !u!4 &377711135 153 | Transform: 154 | m_ObjectHideFlags: 0 155 | m_CorrespondingSourceObject: {fileID: 0} 156 | m_PrefabInstance: {fileID: 0} 157 | m_PrefabAsset: {fileID: 0} 158 | m_GameObject: {fileID: 377711133} 159 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 160 | m_LocalPosition: {x: 0, y: 0, z: 0} 161 | m_LocalScale: {x: 1, y: 1, z: 1} 162 | m_Children: [] 163 | m_Father: {fileID: 0} 164 | m_RootOrder: 0 165 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 166 | -------------------------------------------------------------------------------- /Assets/2-ManualNotification/ManualGraph.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6df96fe9e7adbe54cb2cc63d7af0fe70 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/2-ManualNotification/ManualNotification.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | using UnityEngine.Playables; 4 | 5 | public class ManualNotification : MonoBehaviour 6 | { 7 | PlayableGraph m_Graph; 8 | ReceiverExample m_Receiver; 9 | 10 | void Start() 11 | { 12 | m_Graph = PlayableGraph.Create("NotificationGraph"); 13 | var output = ScriptPlayableOutput.Create(m_Graph, "NotificationOutput"); 14 | 15 | //Create and register a receiver 16 | m_Receiver = new ReceiverExample(); 17 | output.AddNotificationReceiver(m_Receiver); 18 | 19 | //Push a notification on the output 20 | output.PushNotification(Playable.Null, new MyNotification()); 21 | 22 | m_Graph.Play(); 23 | } 24 | 25 | void OnDestroy() 26 | { 27 | m_Graph.Destroy(); 28 | } 29 | } -------------------------------------------------------------------------------- /Assets/2-ManualNotification/ManualNotification.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: beb4f8cfa9fa876448e216cfad0b7589 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/3-ScheduledNotification.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1b0b4c4f5af3def47bb8d0089eea637e 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/3-ScheduledNotification/ScheduledNotification.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | using UnityEngine.Playables; 4 | using UnityEngine.Timeline; 5 | 6 | public class ScheduledNotification : MonoBehaviour 7 | { 8 | PlayableGraph m_Graph; 9 | ReceiverExample m_Receiver; 10 | 11 | void Start() 12 | { 13 | m_Graph = PlayableGraph.Create("NotificationGraph"); 14 | var output = ScriptPlayableOutput.Create(m_Graph, "NotificationOutput"); 15 | 16 | //Create and register a receiver 17 | m_Receiver = new ReceiverExample(); 18 | output.AddNotificationReceiver(m_Receiver); 19 | 20 | //Create a TimeNotificationBehaviour 21 | var timeNotificationPlayable = ScriptPlayable.Create(m_Graph); 22 | output.SetSourcePlayable(timeNotificationPlayable); 23 | 24 | //Add a notification on the time notification behaviour 25 | var notificationBehaviour = timeNotificationPlayable.GetBehaviour(); 26 | notificationBehaviour.AddNotification(2.0, new MyNotification()); 27 | 28 | m_Graph.Play(); 29 | } 30 | 31 | void OnDestroy() 32 | { 33 | m_Graph.Destroy(); 34 | } 35 | } -------------------------------------------------------------------------------- /Assets/3-ScheduledNotification/ScheduledNotification.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7d4b97d974d5096469e1ce3aec26ea94 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/3-ScheduledNotification/ScheduledNotification.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 9 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 0 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 0} 41 | m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 11 47 | m_GIWorkflowMode: 1 48 | m_GISettings: 49 | serializedVersion: 2 50 | m_BounceScale: 1 51 | m_IndirectOutputScale: 1 52 | m_AlbedoBoost: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 1 55 | m_EnableRealtimeLightmaps: 1 56 | m_LightmapEditorSettings: 57 | serializedVersion: 12 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_AtlasSize: 1024 61 | m_AO: 0 62 | m_AOMaxDistance: 1 63 | m_CompAOExponent: 1 64 | m_CompAOExponentDirect: 0 65 | m_ExtractAmbientOcclusion: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 1 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 512 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 256 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 1 83 | m_PVRDenoiserTypeDirect: 1 84 | m_PVRDenoiserTypeIndirect: 1 85 | m_PVRDenoiserTypeAO: 1 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 1 90 | m_PVRCulling: 1 91 | m_PVRFilteringGaussRadiusDirect: 1 92 | m_PVRFilteringGaussRadiusIndirect: 5 93 | m_PVRFilteringGaussRadiusAO: 2 94 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 95 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 96 | m_PVRFilteringAtrousPositionSigmaAO: 1 97 | m_ShowResolutionOverlay: 1 98 | m_ExportTrainingData: 0 99 | m_LightingDataAsset: {fileID: 0} 100 | m_UseShadowmask: 1 101 | --- !u!196 &4 102 | NavMeshSettings: 103 | serializedVersion: 2 104 | m_ObjectHideFlags: 0 105 | m_BuildSettings: 106 | serializedVersion: 2 107 | agentTypeID: 0 108 | agentRadius: 0.5 109 | agentHeight: 2 110 | agentSlope: 45 111 | agentClimb: 0.4 112 | ledgeDropHeight: 0 113 | maxJumpAcrossDistance: 0 114 | minRegionArea: 2 115 | manualCellSize: 0 116 | cellSize: 0.16666667 117 | manualTileSize: 0 118 | tileSize: 256 119 | accuratePlacement: 0 120 | debug: 121 | m_Flags: 0 122 | m_NavMeshData: {fileID: 0} 123 | --- !u!1 &290426818 124 | GameObject: 125 | m_ObjectHideFlags: 0 126 | m_CorrespondingSourceObject: {fileID: 0} 127 | m_PrefabInstance: {fileID: 0} 128 | m_PrefabAsset: {fileID: 0} 129 | serializedVersion: 6 130 | m_Component: 131 | - component: {fileID: 290426820} 132 | - component: {fileID: 290426819} 133 | m_Layer: 0 134 | m_Name: ScheduledNotification 135 | m_TagString: Untagged 136 | m_Icon: {fileID: 0} 137 | m_NavMeshLayer: 0 138 | m_StaticEditorFlags: 0 139 | m_IsActive: 1 140 | --- !u!114 &290426819 141 | MonoBehaviour: 142 | m_ObjectHideFlags: 0 143 | m_CorrespondingSourceObject: {fileID: 0} 144 | m_PrefabInstance: {fileID: 0} 145 | m_PrefabAsset: {fileID: 0} 146 | m_GameObject: {fileID: 290426818} 147 | m_Enabled: 1 148 | m_EditorHideFlags: 0 149 | m_Script: {fileID: 11500000, guid: 7d4b97d974d5096469e1ce3aec26ea94, type: 3} 150 | m_Name: 151 | m_EditorClassIdentifier: 152 | --- !u!4 &290426820 153 | Transform: 154 | m_ObjectHideFlags: 0 155 | m_CorrespondingSourceObject: {fileID: 0} 156 | m_PrefabInstance: {fileID: 0} 157 | m_PrefabAsset: {fileID: 0} 158 | m_GameObject: {fileID: 290426818} 159 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 160 | m_LocalPosition: {x: 0, y: 0, z: 0} 161 | m_LocalScale: {x: 1, y: 1, z: 1} 162 | m_Children: [] 163 | m_Father: {fileID: 0} 164 | m_RootOrder: 0 165 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 166 | -------------------------------------------------------------------------------- /Assets/3-ScheduledNotification/ScheduledNotification.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 537e420420af1bc4b9944d5a26611f0b 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/4-NotificationMarker.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1154aaabefb6c834fb751e713646e6a9 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/4-NotificationMarker/NotificationMarker.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.Playables; 3 | using UnityEngine.Timeline; 4 | 5 | public class NotificationMarker : Marker, INotification 6 | { 7 | public PropertyName id { get; } 8 | } -------------------------------------------------------------------------------- /Assets/4-NotificationMarker/NotificationMarker.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6b1a080dd873aaa45a6ada5ae255037f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/4-NotificationMarker/NotificationMarker.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 9 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 0 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 0} 41 | m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 11 47 | m_GIWorkflowMode: 1 48 | m_GISettings: 49 | serializedVersion: 2 50 | m_BounceScale: 1 51 | m_IndirectOutputScale: 1 52 | m_AlbedoBoost: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 1 55 | m_EnableRealtimeLightmaps: 1 56 | m_LightmapEditorSettings: 57 | serializedVersion: 12 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_AtlasSize: 1024 61 | m_AO: 0 62 | m_AOMaxDistance: 1 63 | m_CompAOExponent: 1 64 | m_CompAOExponentDirect: 0 65 | m_ExtractAmbientOcclusion: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 1 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 512 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 256 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 1 83 | m_PVRDenoiserTypeDirect: 1 84 | m_PVRDenoiserTypeIndirect: 1 85 | m_PVRDenoiserTypeAO: 1 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 1 90 | m_PVRCulling: 1 91 | m_PVRFilteringGaussRadiusDirect: 1 92 | m_PVRFilteringGaussRadiusIndirect: 5 93 | m_PVRFilteringGaussRadiusAO: 2 94 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 95 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 96 | m_PVRFilteringAtrousPositionSigmaAO: 1 97 | m_ShowResolutionOverlay: 1 98 | m_ExportTrainingData: 0 99 | m_LightingDataAsset: {fileID: 0} 100 | m_UseShadowmask: 1 101 | --- !u!196 &4 102 | NavMeshSettings: 103 | serializedVersion: 2 104 | m_ObjectHideFlags: 0 105 | m_BuildSettings: 106 | serializedVersion: 2 107 | agentTypeID: 0 108 | agentRadius: 0.5 109 | agentHeight: 2 110 | agentSlope: 45 111 | agentClimb: 0.4 112 | ledgeDropHeight: 0 113 | maxJumpAcrossDistance: 0 114 | minRegionArea: 2 115 | manualCellSize: 0 116 | cellSize: 0.16666667 117 | manualTileSize: 0 118 | tileSize: 256 119 | accuratePlacement: 0 120 | debug: 121 | m_Flags: 0 122 | m_NavMeshData: {fileID: 0} 123 | --- !u!1 &1074840073 124 | GameObject: 125 | m_ObjectHideFlags: 0 126 | m_CorrespondingSourceObject: {fileID: 0} 127 | m_PrefabInstance: {fileID: 0} 128 | m_PrefabAsset: {fileID: 0} 129 | serializedVersion: 6 130 | m_Component: 131 | - component: {fileID: 1074840077} 132 | - component: {fileID: 1074840075} 133 | - component: {fileID: 1074840076} 134 | m_Layer: 0 135 | m_Name: Timeline 136 | m_TagString: Untagged 137 | m_Icon: {fileID: 0} 138 | m_NavMeshLayer: 0 139 | m_StaticEditorFlags: 0 140 | m_IsActive: 1 141 | --- !u!320 &1074840075 142 | PlayableDirector: 143 | m_ObjectHideFlags: 0 144 | m_CorrespondingSourceObject: {fileID: 0} 145 | m_PrefabInstance: {fileID: 0} 146 | m_PrefabAsset: {fileID: 0} 147 | m_GameObject: {fileID: 1074840073} 148 | m_Enabled: 1 149 | serializedVersion: 3 150 | m_PlayableAsset: {fileID: 11400000, guid: 11400db8eb9e7b243b3d5096e6c176d6, type: 2} 151 | m_InitialState: 1 152 | m_WrapMode: 2 153 | m_DirectorUpdateMode: 1 154 | m_InitialTime: 0 155 | m_SceneBindings: 156 | - key: {fileID: 2158612194850578684, guid: 11400db8eb9e7b243b3d5096e6c176d6, type: 2} 157 | value: {fileID: 1074840073} 158 | m_ExposedReferences: 159 | m_References: [] 160 | --- !u!114 &1074840076 161 | MonoBehaviour: 162 | m_ObjectHideFlags: 0 163 | m_CorrespondingSourceObject: {fileID: 0} 164 | m_PrefabInstance: {fileID: 0} 165 | m_PrefabAsset: {fileID: 0} 166 | m_GameObject: {fileID: 1074840073} 167 | m_Enabled: 1 168 | m_EditorHideFlags: 0 169 | m_Script: {fileID: 11500000, guid: fd02d602364344b7a1c4d26d9ca551a5, type: 3} 170 | m_Name: 171 | m_EditorClassIdentifier: 172 | --- !u!4 &1074840077 173 | Transform: 174 | m_ObjectHideFlags: 0 175 | m_CorrespondingSourceObject: {fileID: 0} 176 | m_PrefabInstance: {fileID: 0} 177 | m_PrefabAsset: {fileID: 0} 178 | m_GameObject: {fileID: 1074840073} 179 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 180 | m_LocalPosition: {x: 0, y: 0, z: 0} 181 | m_LocalScale: {x: 1, y: 1, z: 1} 182 | m_Children: [] 183 | m_Father: {fileID: 0} 184 | m_RootOrder: 0 185 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 186 | -------------------------------------------------------------------------------- /Assets/4-NotificationMarker/NotificationMarker.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d77f4be147bab8e48b804f7dcd5c7089 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/4-NotificationMarker/TimelineWithNotificationMarker.playable: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &-739829716297655296 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 1 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 6b1a080dd873aaa45a6ada5ae255037f, type: 3} 13 | m_Name: Marker 2 14 | m_EditorClassIdentifier: 15 | m_Time: 2.0166666666666666 16 | --- !u!114 &11400000 17 | MonoBehaviour: 18 | m_ObjectHideFlags: 0 19 | m_CorrespondingSourceObject: {fileID: 0} 20 | m_PrefabInstance: {fileID: 0} 21 | m_PrefabAsset: {fileID: 0} 22 | m_GameObject: {fileID: 0} 23 | m_Enabled: 1 24 | m_EditorHideFlags: 0 25 | m_Script: {fileID: 11500000, guid: bfda56da833e2384a9677cd3c976a436, type: 3} 26 | m_Name: TimelineWithNotificationMarker 27 | m_EditorClassIdentifier: 28 | m_Version: 0 29 | m_Tracks: [] 30 | m_FixedDuration: 0 31 | m_EditorSettings: 32 | m_Framerate: 60 33 | m_DurationMode: 0 34 | m_MarkerTrack: {fileID: 2158612194850578684} 35 | --- !u!114 &2158612194850578684 36 | MonoBehaviour: 37 | m_ObjectHideFlags: 1 38 | m_CorrespondingSourceObject: {fileID: 0} 39 | m_PrefabInstance: {fileID: 0} 40 | m_PrefabAsset: {fileID: 0} 41 | m_GameObject: {fileID: 0} 42 | m_Enabled: 1 43 | m_EditorHideFlags: 0 44 | m_Script: {fileID: 11500000, guid: 2a16748d9461eae46a725db9776d5390, type: 3} 45 | m_Name: Markers 46 | m_EditorClassIdentifier: 47 | m_Version: 3 48 | m_AnimClip: {fileID: 0} 49 | m_Locked: 0 50 | m_Muted: 0 51 | m_CustomPlayableFullTypename: 52 | m_Curves: {fileID: 0} 53 | m_Parent: {fileID: 11400000} 54 | m_Children: [] 55 | m_Clips: [] 56 | m_Markers: 57 | m_Objects: 58 | - {fileID: 3185358704402842210} 59 | - {fileID: -739829716297655296} 60 | --- !u!114 &3185358704402842210 61 | MonoBehaviour: 62 | m_ObjectHideFlags: 1 63 | m_CorrespondingSourceObject: {fileID: 0} 64 | m_PrefabInstance: {fileID: 0} 65 | m_PrefabAsset: {fileID: 0} 66 | m_GameObject: {fileID: 0} 67 | m_Enabled: 1 68 | m_EditorHideFlags: 0 69 | m_Script: {fileID: 11500000, guid: 6b1a080dd873aaa45a6ada5ae255037f, type: 3} 70 | m_Name: Marker 1 71 | m_EditorClassIdentifier: 72 | m_Time: 1 73 | -------------------------------------------------------------------------------- /Assets/4-NotificationMarker/TimelineWithNotificationMarker.playable.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 11400db8eb9e7b243b3d5096e6c176d6 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/5-Annotation.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c93e2f997ab85b54bb2d231f64993c26 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/5-Annotation/Annotation.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.Timeline; 3 | 4 | [CustomStyle("Annotation")] 5 | public class Annotation : Marker 6 | { 7 | [TextArea] public string annotation; 8 | } 9 | -------------------------------------------------------------------------------- /Assets/5-Annotation/Annotation.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1eb89d6e9a630734dbd4c8319396dbf7 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/5-Annotation/AnnotationTimeline.playable: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &-5150695958986853257 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 1 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 1eb89d6e9a630734dbd4c8319396dbf7, type: 3} 13 | m_Name: Annotation 14 | m_EditorClassIdentifier: 15 | m_Time: 2.183333333333333 16 | annotation: This is an Annotation marker on a Timeline! 17 | --- !u!114 &-2166675340930377103 18 | MonoBehaviour: 19 | m_ObjectHideFlags: 1 20 | m_CorrespondingSourceObject: {fileID: 0} 21 | m_PrefabInstance: {fileID: 0} 22 | m_PrefabAsset: {fileID: 0} 23 | m_GameObject: {fileID: 0} 24 | m_Enabled: 1 25 | m_EditorHideFlags: 0 26 | m_Script: {fileID: 11500000, guid: d21dcc2386d650c4597f3633c75a1f98, type: 3} 27 | m_Name: Animation Track 28 | m_EditorClassIdentifier: 29 | m_Version: 3 30 | m_AnimClip: {fileID: 0} 31 | m_Locked: 0 32 | m_Muted: 0 33 | m_CustomPlayableFullTypename: 34 | m_Curves: {fileID: 0} 35 | m_Parent: {fileID: 11400000} 36 | m_Children: [] 37 | m_Clips: [] 38 | m_Markers: 39 | m_Objects: 40 | - {fileID: 5223022821153746019} 41 | m_InfiniteClipPreExtrapolation: 0 42 | m_InfiniteClipPostExtrapolation: 0 43 | m_InfiniteClipOffsetPosition: {x: 0, y: 0, z: 0} 44 | m_InfiniteClipOffsetEulerAngles: {x: 0, y: 0, z: 0} 45 | m_InfiniteClipTimeOffset: 0 46 | m_InfiniteClipRemoveOffset: 0 47 | m_InfiniteClipApplyFootIK: 1 48 | m_MatchTargetFields: 63 49 | m_Position: {x: 0, y: 0, z: 0} 50 | m_EulerAngles: {x: 0, y: 0, z: 0} 51 | m_AvatarMask: {fileID: 0} 52 | m_ApplyAvatarMask: 1 53 | m_TrackOffset: 0 54 | m_InfiniteClip: {fileID: 0} 55 | m_OpenClipOffsetRotation: {x: 0, y: 0, z: 0, w: 1} 56 | m_Rotation: {x: 0, y: 0, z: 0, w: 1} 57 | m_ApplyOffsets: 0 58 | --- !u!114 &-413084405946050914 59 | MonoBehaviour: 60 | m_ObjectHideFlags: 1 61 | m_CorrespondingSourceObject: {fileID: 0} 62 | m_PrefabInstance: {fileID: 0} 63 | m_PrefabAsset: {fileID: 0} 64 | m_GameObject: {fileID: 0} 65 | m_Enabled: 1 66 | m_EditorHideFlags: 0 67 | m_Script: {fileID: 11500000, guid: 2a16748d9461eae46a725db9776d5390, type: 3} 68 | m_Name: Markers 69 | m_EditorClassIdentifier: 70 | m_Version: 3 71 | m_AnimClip: {fileID: 0} 72 | m_Locked: 0 73 | m_Muted: 0 74 | m_CustomPlayableFullTypename: 75 | m_Curves: {fileID: 0} 76 | m_Parent: {fileID: 11400000} 77 | m_Children: [] 78 | m_Clips: [] 79 | m_Markers: 80 | m_Objects: 81 | - {fileID: -5150695958986853257} 82 | --- !u!114 &11400000 83 | MonoBehaviour: 84 | m_ObjectHideFlags: 0 85 | m_CorrespondingSourceObject: {fileID: 0} 86 | m_PrefabInstance: {fileID: 0} 87 | m_PrefabAsset: {fileID: 0} 88 | m_GameObject: {fileID: 0} 89 | m_Enabled: 1 90 | m_EditorHideFlags: 0 91 | m_Script: {fileID: 11500000, guid: bfda56da833e2384a9677cd3c976a436, type: 3} 92 | m_Name: AnnotationTimeline 93 | m_EditorClassIdentifier: 94 | m_Version: 0 95 | m_Tracks: 96 | - {fileID: -2166675340930377103} 97 | m_FixedDuration: 0 98 | m_EditorSettings: 99 | m_Framerate: 60 100 | m_DurationMode: 0 101 | m_MarkerTrack: {fileID: -413084405946050914} 102 | --- !u!114 &5223022821153746019 103 | MonoBehaviour: 104 | m_ObjectHideFlags: 1 105 | m_CorrespondingSourceObject: {fileID: 0} 106 | m_PrefabInstance: {fileID: 0} 107 | m_PrefabAsset: {fileID: 0} 108 | m_GameObject: {fileID: 0} 109 | m_Enabled: 1 110 | m_EditorHideFlags: 0 111 | m_Script: {fileID: 11500000, guid: 1eb89d6e9a630734dbd4c8319396dbf7, type: 3} 112 | m_Name: Annotation 113 | m_EditorClassIdentifier: 114 | m_Time: 5.6 115 | annotation: This is an Annotation marker on an Animation Track! 116 | -------------------------------------------------------------------------------- /Assets/5-Annotation/AnnotationTimeline.playable.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f697bf084a4a1dc489eac50fe8b58827 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/5-Annotation/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8ff78e17bbdffd344bc00b42c0964347 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/5-Annotation/Editor/Stylesheets.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 19f959eab3e983943902c08e92a5631b 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/5-Annotation/Editor/Stylesheets/Extensions.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 60a56a1f3b70a544b8f582dadf5d711a 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/5-Annotation/Editor/Stylesheets/Extensions/common.uss: -------------------------------------------------------------------------------- 1 | Annotation 2 | { 3 | width:18px; 4 | height:18px; 5 | background-image: resource("Assets/5-Annotation/Editor/pencil.png"); 6 | } -------------------------------------------------------------------------------- /Assets/5-Annotation/Editor/Stylesheets/Extensions/common.uss.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 82111d6f9679a95499d49204f0a55784 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/5-Annotation/Editor/pencil.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/TimelineMarkerCustomization/c95d8f00ed7d3b27403446d133c841853d018108/Assets/5-Annotation/Editor/pencil.png -------------------------------------------------------------------------------- /Assets/5-Annotation/Editor/pencil.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e15d06215a0ce5545b15e7a3ee893daa 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 10 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: -1 35 | aniso: -1 36 | mipBias: -100 37 | wrapU: -1 38 | wrapV: -1 39 | wrapW: -1 40 | nPOTScale: 0 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 0 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 100 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 1 52 | alphaIsTransparency: 1 53 | spriteTessellationDetail: -1 54 | textureType: 0 55 | textureShape: 1 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | platformSettings: 61 | - serializedVersion: 2 62 | buildTarget: DefaultTexturePlatform 63 | maxTextureSize: 2048 64 | resizeAlgorithm: 0 65 | textureFormat: -1 66 | textureCompression: 1 67 | compressionQuality: 50 68 | crunchedCompression: 0 69 | allowsAlphaSplitting: 0 70 | overridden: 0 71 | androidETC2FallbackOverride: 0 72 | - serializedVersion: 2 73 | buildTarget: Standalone 74 | maxTextureSize: 2048 75 | resizeAlgorithm: 0 76 | textureFormat: -1 77 | textureCompression: 1 78 | compressionQuality: 50 79 | crunchedCompression: 0 80 | allowsAlphaSplitting: 0 81 | overridden: 0 82 | androidETC2FallbackOverride: 0 83 | spriteSheet: 84 | serializedVersion: 2 85 | sprites: [] 86 | outline: [] 87 | physicsShape: [] 88 | bones: [] 89 | spriteID: 90 | internalID: 0 91 | vertices: [] 92 | indices: 93 | edges: [] 94 | weights: [] 95 | secondaryTextures: [] 96 | spritePackingTag: 97 | pSDRemoveMatte: 0 98 | pSDShowRemoveMatteOption: 0 99 | userData: 100 | assetBundleName: 101 | assetBundleVariant: 102 | -------------------------------------------------------------------------------- /Assets/6-JumpMarker.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9c09943da3d3d5341b91cae194a9f264 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/6-JumpMarker/DestinationMarker.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel; 2 | using UnityEngine; 3 | using UnityEngine.Timeline; 4 | 5 | [DisplayName("Jump/DestinationMarker")] 6 | [CustomStyle("DestinationMarker")] 7 | public class DestinationMarker : Marker 8 | { 9 | [SerializeField] public bool active; 10 | 11 | void Reset() 12 | { 13 | active = true; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Assets/6-JumpMarker/DestinationMarker.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fc6b2e762b2d45c695fa4597f6db49b8 3 | timeCreated: 1559330763 -------------------------------------------------------------------------------- /Assets/6-JumpMarker/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 255c1a8447971bb429f94b950f20f27e 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/6-JumpMarker/Editor/JumpMarkerInspector.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Linq; 3 | using UnityEditor; 4 | using UnityEditor.Timeline; 5 | using UnityEngine; 6 | using UnityEngine.Timeline; 7 | 8 | [CustomEditor(typeof(JumpMarker))] 9 | public class JumpMarkerInspector : Editor 10 | { 11 | const string k_TimeLabel = "Timeline will jump at time {0}"; 12 | const string k_NoJumpLabel = "{0} is deactivated."; 13 | const string k_AddMarker = "No Destination Marker has been found on this track. Add one to use this marker."; 14 | const string k_JumpTo = "Jump to"; 15 | const string k_None = "None"; 16 | 17 | SerializedProperty m_DestinationMarker; 18 | SerializedProperty m_EmitOnce; 19 | SerializedProperty m_EmitInEditor; 20 | SerializedProperty m_Time; 21 | 22 | void OnEnable() 23 | { 24 | m_DestinationMarker = serializedObject.FindProperty("destinationMarker"); 25 | m_EmitOnce = serializedObject.FindProperty("emitOnce"); 26 | m_EmitInEditor = serializedObject.FindProperty("emitInEditor"); 27 | m_Time = serializedObject.FindProperty("m_Time"); 28 | } 29 | 30 | public override void OnInspectorGUI() 31 | { 32 | serializedObject.Update(); 33 | var marker = target as JumpMarker; 34 | 35 | using (var changeScope = new EditorGUI.ChangeCheckScope()) 36 | { 37 | EditorGUILayout.PropertyField(m_Time); 38 | EditorGUILayout.Space(); 39 | 40 | var destinationMarkers = DestinationMarkersFor(marker); 41 | if (!destinationMarkers.Any()) 42 | DrawNoJump(); 43 | else 44 | DrawJumpOptions(destinationMarkers); 45 | 46 | if (changeScope.changed) 47 | { 48 | serializedObject.ApplyModifiedProperties(); 49 | TimelineEditor.Refresh(RefreshReason.ContentsModified); 50 | } 51 | } 52 | } 53 | 54 | void DrawNoJump() 55 | { 56 | EditorGUILayout.HelpBox(k_AddMarker, MessageType.Info); 57 | 58 | using (new EditorGUI.DisabledScope(true)) 59 | { 60 | EditorGUILayout.Popup(k_JumpTo, 0, new[]{ k_None }); 61 | EditorGUILayout.PropertyField(m_EmitOnce); 62 | EditorGUILayout.PropertyField(m_EmitInEditor); 63 | } 64 | } 65 | 66 | void DrawJumpOptions(IList destinationMarkers) 67 | { 68 | var destinationMarker = DrawDestinationPopup(destinationMarkers); 69 | DrawTimeLabel(destinationMarker); 70 | EditorGUILayout.PropertyField(m_EmitOnce); 71 | EditorGUILayout.PropertyField(m_EmitInEditor); 72 | } 73 | 74 | DestinationMarker DrawDestinationPopup(IList destinationMarkers) 75 | { 76 | var popupIndex = 0; 77 | var destinationMarkerIndex = destinationMarkers.IndexOf(m_DestinationMarker.objectReferenceValue as DestinationMarker); 78 | if (destinationMarkerIndex != -1) 79 | popupIndex = destinationMarkerIndex + 1; 80 | 81 | DestinationMarker destinationMarker = null; 82 | using (var changeScope = new EditorGUI.ChangeCheckScope()) 83 | { 84 | var newIndex = EditorGUILayout.Popup(k_JumpTo, popupIndex, GeneratePopupOptions(destinationMarkers).ToArray()); 85 | 86 | if (newIndex > 0) 87 | destinationMarker = destinationMarkers.ElementAt(newIndex - 1); 88 | 89 | if (changeScope.changed) 90 | m_DestinationMarker.objectReferenceValue = destinationMarker; 91 | } 92 | 93 | return destinationMarker; 94 | } 95 | 96 | static void DrawTimeLabel(DestinationMarker destinationMarker) 97 | { 98 | if (destinationMarker != null) 99 | { 100 | if (destinationMarker.active) 101 | EditorGUILayout.HelpBox(string.Format(k_TimeLabel, destinationMarker.time.ToString("0.##")), MessageType.Info); 102 | else 103 | EditorGUILayout.HelpBox(string.Format(k_NoJumpLabel, destinationMarker.name), MessageType.Warning); 104 | } 105 | } 106 | 107 | static IList DestinationMarkersFor(Marker marker) 108 | { 109 | var destinationMarkers = new List(); 110 | var parent = marker.parent; 111 | if (parent != null) 112 | destinationMarkers.AddRange(parent.GetMarkers().OfType().ToList()); 113 | 114 | return destinationMarkers; 115 | } 116 | 117 | static IEnumerable GeneratePopupOptions(IEnumerable markers) 118 | { 119 | yield return k_None; 120 | 121 | foreach (var marker in markers) 122 | { 123 | yield return marker.name; 124 | } 125 | } 126 | } -------------------------------------------------------------------------------- /Assets/6-JumpMarker/Editor/JumpMarkerInspector.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 46331b85316247b4ebedb11395f11cae 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/6-JumpMarker/Editor/Stylesheets.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b56dc95dfd2015b469a186106f6d046d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/6-JumpMarker/Editor/Stylesheets/Extensions.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4a249c327f497024d9d79bdd6688c234 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/6-JumpMarker/Editor/Stylesheets/Extensions/common.uss: -------------------------------------------------------------------------------- 1 | /* Collapsed Marker State -> Corresponds to GUIStyle.normal */ 2 | JumpMarker 3 | { 4 | width: 18px; 5 | height: 18px; 6 | background-image: resource("Assets/6-JumpMarker/Editor/Stylesheets/imgs/jumpTo_collapsed.png"); 7 | } 8 | 9 | /* Active Marker State -> Corresponds to GUIStyle.onNormal */ 10 | JumpMarker:checked 11 | { 12 | background-image: resource("Assets/6-JumpMarker/Editor/Stylesheets/imgs/jumpTo_normal.png"); 13 | } 14 | 15 | /* Selected Marker State -> Corresponds to GUIStyle.onFocused */ 16 | JumpMarker:hover:focus:checked 17 | { 18 | background-image: resource("Assets/6-JumpMarker/Editor/Stylesheets/imgs/jumpTo_selected.png"); 19 | } 20 | 21 | /* Collapsed Marker State -> Corresponds to GUIStyle.normal */ 22 | DestinationMarker 23 | { 24 | width: 18px; 25 | height: 18px; 26 | background-image: resource("Assets/6-JumpMarker/Editor/Stylesheets/imgs/destination_collapsed.png"); 27 | } 28 | 29 | /* Active Marker State -> Corresponds to GUIStyle.onNormal */ 30 | DestinationMarker:checked 31 | { 32 | background-image: resource("Assets/6-JumpMarker/Editor/Stylesheets/imgs/destination_normal.png"); 33 | } 34 | 35 | /* Selected Marker State -> Corresponds to GUIStyle.onFocused */ 36 | DestinationMarker:hover:focus:checked 37 | { 38 | background-image: resource("Assets/6-JumpMarker/Editor/Stylesheets/imgs/destination_selected.png"); 39 | } -------------------------------------------------------------------------------- /Assets/6-JumpMarker/Editor/Stylesheets/Extensions/common.uss.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e58d26708d5550d4cb9d1d0e761c7735 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0} 11 | -------------------------------------------------------------------------------- /Assets/6-JumpMarker/Editor/Stylesheets/imgs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dce43060eb3479f4cab67f55fdfcbdb2 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/6-JumpMarker/Editor/Stylesheets/imgs/destination_collapsed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/TimelineMarkerCustomization/c95d8f00ed7d3b27403446d133c841853d018108/Assets/6-JumpMarker/Editor/Stylesheets/imgs/destination_collapsed.png -------------------------------------------------------------------------------- /Assets/6-JumpMarker/Editor/Stylesheets/imgs/destination_collapsed.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bde026b7fe8ea9f4c9256689fac8e494 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 10 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: -1 35 | aniso: -1 36 | mipBias: -100 37 | wrapU: -1 38 | wrapV: -1 39 | wrapW: -1 40 | nPOTScale: 0 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 0 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 100 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 1 52 | alphaIsTransparency: 1 53 | spriteTessellationDetail: -1 54 | textureType: 0 55 | textureShape: 1 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | platformSettings: 61 | - serializedVersion: 2 62 | buildTarget: DefaultTexturePlatform 63 | maxTextureSize: 2048 64 | resizeAlgorithm: 0 65 | textureFormat: -1 66 | textureCompression: 1 67 | compressionQuality: 50 68 | crunchedCompression: 0 69 | allowsAlphaSplitting: 0 70 | overridden: 0 71 | androidETC2FallbackOverride: 0 72 | - serializedVersion: 2 73 | buildTarget: Standalone 74 | maxTextureSize: 2048 75 | resizeAlgorithm: 0 76 | textureFormat: -1 77 | textureCompression: 1 78 | compressionQuality: 50 79 | crunchedCompression: 0 80 | allowsAlphaSplitting: 0 81 | overridden: 0 82 | androidETC2FallbackOverride: 0 83 | spriteSheet: 84 | serializedVersion: 2 85 | sprites: [] 86 | outline: [] 87 | physicsShape: [] 88 | bones: [] 89 | spriteID: 90 | internalID: 0 91 | vertices: [] 92 | indices: 93 | edges: [] 94 | weights: [] 95 | secondaryTextures: [] 96 | spritePackingTag: 97 | pSDRemoveMatte: 0 98 | pSDShowRemoveMatteOption: 0 99 | userData: 100 | assetBundleName: 101 | assetBundleVariant: 102 | -------------------------------------------------------------------------------- /Assets/6-JumpMarker/Editor/Stylesheets/imgs/destination_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/TimelineMarkerCustomization/c95d8f00ed7d3b27403446d133c841853d018108/Assets/6-JumpMarker/Editor/Stylesheets/imgs/destination_normal.png -------------------------------------------------------------------------------- /Assets/6-JumpMarker/Editor/Stylesheets/imgs/destination_normal.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 164171b37acc33d4582a2a4d5c42e041 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 10 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: -1 35 | aniso: -1 36 | mipBias: -100 37 | wrapU: -1 38 | wrapV: -1 39 | wrapW: -1 40 | nPOTScale: 0 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 0 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 100 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 1 52 | alphaIsTransparency: 1 53 | spriteTessellationDetail: -1 54 | textureType: 0 55 | textureShape: 1 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | platformSettings: 61 | - serializedVersion: 2 62 | buildTarget: DefaultTexturePlatform 63 | maxTextureSize: 2048 64 | resizeAlgorithm: 0 65 | textureFormat: -1 66 | textureCompression: 1 67 | compressionQuality: 50 68 | crunchedCompression: 0 69 | allowsAlphaSplitting: 0 70 | overridden: 0 71 | androidETC2FallbackOverride: 0 72 | - serializedVersion: 2 73 | buildTarget: Standalone 74 | maxTextureSize: 2048 75 | resizeAlgorithm: 0 76 | textureFormat: -1 77 | textureCompression: 1 78 | compressionQuality: 50 79 | crunchedCompression: 0 80 | allowsAlphaSplitting: 0 81 | overridden: 0 82 | androidETC2FallbackOverride: 0 83 | spriteSheet: 84 | serializedVersion: 2 85 | sprites: [] 86 | outline: [] 87 | physicsShape: [] 88 | bones: [] 89 | spriteID: 90 | internalID: 0 91 | vertices: [] 92 | indices: 93 | edges: [] 94 | weights: [] 95 | secondaryTextures: [] 96 | spritePackingTag: 97 | pSDRemoveMatte: 0 98 | pSDShowRemoveMatteOption: 0 99 | userData: 100 | assetBundleName: 101 | assetBundleVariant: 102 | -------------------------------------------------------------------------------- /Assets/6-JumpMarker/Editor/Stylesheets/imgs/destination_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/TimelineMarkerCustomization/c95d8f00ed7d3b27403446d133c841853d018108/Assets/6-JumpMarker/Editor/Stylesheets/imgs/destination_selected.png -------------------------------------------------------------------------------- /Assets/6-JumpMarker/Editor/Stylesheets/imgs/destination_selected.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d5880a0d07a4d1e4d93778da872e8c29 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 10 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: -1 35 | aniso: -1 36 | mipBias: -100 37 | wrapU: -1 38 | wrapV: -1 39 | wrapW: -1 40 | nPOTScale: 0 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 0 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 100 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 1 52 | alphaIsTransparency: 1 53 | spriteTessellationDetail: -1 54 | textureType: 0 55 | textureShape: 1 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | platformSettings: 61 | - serializedVersion: 2 62 | buildTarget: DefaultTexturePlatform 63 | maxTextureSize: 2048 64 | resizeAlgorithm: 0 65 | textureFormat: -1 66 | textureCompression: 1 67 | compressionQuality: 50 68 | crunchedCompression: 0 69 | allowsAlphaSplitting: 0 70 | overridden: 0 71 | androidETC2FallbackOverride: 0 72 | - serializedVersion: 2 73 | buildTarget: Standalone 74 | maxTextureSize: 2048 75 | resizeAlgorithm: 0 76 | textureFormat: -1 77 | textureCompression: 1 78 | compressionQuality: 50 79 | crunchedCompression: 0 80 | allowsAlphaSplitting: 0 81 | overridden: 0 82 | androidETC2FallbackOverride: 0 83 | spriteSheet: 84 | serializedVersion: 2 85 | sprites: [] 86 | outline: [] 87 | physicsShape: [] 88 | bones: [] 89 | spriteID: 90 | internalID: 0 91 | vertices: [] 92 | indices: 93 | edges: [] 94 | weights: [] 95 | secondaryTextures: [] 96 | spritePackingTag: 97 | pSDRemoveMatte: 0 98 | pSDShowRemoveMatteOption: 0 99 | userData: 100 | assetBundleName: 101 | assetBundleVariant: 102 | -------------------------------------------------------------------------------- /Assets/6-JumpMarker/Editor/Stylesheets/imgs/jumpTo_collapsed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/TimelineMarkerCustomization/c95d8f00ed7d3b27403446d133c841853d018108/Assets/6-JumpMarker/Editor/Stylesheets/imgs/jumpTo_collapsed.png -------------------------------------------------------------------------------- /Assets/6-JumpMarker/Editor/Stylesheets/imgs/jumpTo_collapsed.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a66347165c6b9e3449b2a50537ef01cf 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 10 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: -1 35 | aniso: -1 36 | mipBias: -100 37 | wrapU: -1 38 | wrapV: -1 39 | wrapW: -1 40 | nPOTScale: 0 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 0 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 100 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 1 52 | alphaIsTransparency: 1 53 | spriteTessellationDetail: -1 54 | textureType: 0 55 | textureShape: 1 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | platformSettings: 61 | - serializedVersion: 2 62 | buildTarget: DefaultTexturePlatform 63 | maxTextureSize: 2048 64 | resizeAlgorithm: 0 65 | textureFormat: -1 66 | textureCompression: 1 67 | compressionQuality: 50 68 | crunchedCompression: 0 69 | allowsAlphaSplitting: 0 70 | overridden: 0 71 | androidETC2FallbackOverride: 0 72 | - serializedVersion: 2 73 | buildTarget: Standalone 74 | maxTextureSize: 2048 75 | resizeAlgorithm: 0 76 | textureFormat: -1 77 | textureCompression: 1 78 | compressionQuality: 50 79 | crunchedCompression: 0 80 | allowsAlphaSplitting: 0 81 | overridden: 0 82 | androidETC2FallbackOverride: 0 83 | spriteSheet: 84 | serializedVersion: 2 85 | sprites: [] 86 | outline: [] 87 | physicsShape: [] 88 | bones: [] 89 | spriteID: 90 | internalID: 0 91 | vertices: [] 92 | indices: 93 | edges: [] 94 | weights: [] 95 | secondaryTextures: [] 96 | spritePackingTag: 97 | pSDRemoveMatte: 0 98 | pSDShowRemoveMatteOption: 0 99 | userData: 100 | assetBundleName: 101 | assetBundleVariant: 102 | -------------------------------------------------------------------------------- /Assets/6-JumpMarker/Editor/Stylesheets/imgs/jumpTo_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/TimelineMarkerCustomization/c95d8f00ed7d3b27403446d133c841853d018108/Assets/6-JumpMarker/Editor/Stylesheets/imgs/jumpTo_normal.png -------------------------------------------------------------------------------- /Assets/6-JumpMarker/Editor/Stylesheets/imgs/jumpTo_normal.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3906b7e249b4e664e884d90eb4b8be3e 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 10 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: -1 35 | aniso: -1 36 | mipBias: -100 37 | wrapU: -1 38 | wrapV: -1 39 | wrapW: -1 40 | nPOTScale: 0 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 0 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 100 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 1 52 | alphaIsTransparency: 1 53 | spriteTessellationDetail: -1 54 | textureType: 0 55 | textureShape: 1 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | platformSettings: 61 | - serializedVersion: 2 62 | buildTarget: DefaultTexturePlatform 63 | maxTextureSize: 2048 64 | resizeAlgorithm: 0 65 | textureFormat: -1 66 | textureCompression: 1 67 | compressionQuality: 50 68 | crunchedCompression: 0 69 | allowsAlphaSplitting: 0 70 | overridden: 0 71 | androidETC2FallbackOverride: 0 72 | - serializedVersion: 2 73 | buildTarget: Standalone 74 | maxTextureSize: 2048 75 | resizeAlgorithm: 0 76 | textureFormat: -1 77 | textureCompression: 1 78 | compressionQuality: 50 79 | crunchedCompression: 0 80 | allowsAlphaSplitting: 0 81 | overridden: 0 82 | androidETC2FallbackOverride: 0 83 | spriteSheet: 84 | serializedVersion: 2 85 | sprites: [] 86 | outline: [] 87 | physicsShape: [] 88 | bones: [] 89 | spriteID: 90 | internalID: 0 91 | vertices: [] 92 | indices: 93 | edges: [] 94 | weights: [] 95 | secondaryTextures: [] 96 | spritePackingTag: 97 | pSDRemoveMatte: 0 98 | pSDShowRemoveMatteOption: 0 99 | userData: 100 | assetBundleName: 101 | assetBundleVariant: 102 | -------------------------------------------------------------------------------- /Assets/6-JumpMarker/Editor/Stylesheets/imgs/jumpTo_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/TimelineMarkerCustomization/c95d8f00ed7d3b27403446d133c841853d018108/Assets/6-JumpMarker/Editor/Stylesheets/imgs/jumpTo_selected.png -------------------------------------------------------------------------------- /Assets/6-JumpMarker/Editor/Stylesheets/imgs/jumpTo_selected.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0f4cb69e4a654054d86d2b061e87d474 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 10 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: -1 35 | aniso: -1 36 | mipBias: -100 37 | wrapU: -1 38 | wrapV: -1 39 | wrapW: -1 40 | nPOTScale: 0 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 0 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 100 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 1 52 | alphaIsTransparency: 1 53 | spriteTessellationDetail: -1 54 | textureType: 0 55 | textureShape: 1 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | platformSettings: 61 | - serializedVersion: 2 62 | buildTarget: DefaultTexturePlatform 63 | maxTextureSize: 2048 64 | resizeAlgorithm: 0 65 | textureFormat: -1 66 | textureCompression: 1 67 | compressionQuality: 50 68 | crunchedCompression: 0 69 | allowsAlphaSplitting: 0 70 | overridden: 0 71 | androidETC2FallbackOverride: 0 72 | - serializedVersion: 2 73 | buildTarget: Standalone 74 | maxTextureSize: 2048 75 | resizeAlgorithm: 0 76 | textureFormat: -1 77 | textureCompression: 1 78 | compressionQuality: 50 79 | crunchedCompression: 0 80 | allowsAlphaSplitting: 0 81 | overridden: 0 82 | androidETC2FallbackOverride: 0 83 | spriteSheet: 84 | serializedVersion: 2 85 | sprites: [] 86 | outline: [] 87 | physicsShape: [] 88 | bones: [] 89 | spriteID: 90 | internalID: 0 91 | vertices: [] 92 | indices: 93 | edges: [] 94 | weights: [] 95 | secondaryTextures: [] 96 | spritePackingTag: 97 | pSDRemoveMatte: 0 98 | pSDShowRemoveMatteOption: 0 99 | userData: 100 | assetBundleName: 101 | assetBundleVariant: 102 | -------------------------------------------------------------------------------- /Assets/6-JumpMarker/JumpMarker.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel; 2 | using UnityEngine; 3 | using UnityEngine.Playables; 4 | using UnityEngine.Timeline; 5 | 6 | [DisplayName("Jump/JumpMarker")] 7 | [CustomStyle("JumpMarker")] 8 | public class JumpMarker : Marker, INotification, INotificationOptionProvider 9 | { 10 | [SerializeField] public DestinationMarker destinationMarker; 11 | [SerializeField] public bool emitOnce; 12 | [SerializeField] public bool emitInEditor; 13 | 14 | public PropertyName id { get; } 15 | 16 | NotificationFlags INotificationOptionProvider.flags => 17 | (emitOnce ? NotificationFlags.TriggerOnce : default) | 18 | (emitInEditor ? NotificationFlags.TriggerInEditMode : default); 19 | } 20 | -------------------------------------------------------------------------------- /Assets/6-JumpMarker/JumpMarker.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 03608073322ad4049bf674d9d133510a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/6-JumpMarker/JumpMarker.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 9 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 0 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 0} 41 | m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 11 47 | m_GIWorkflowMode: 1 48 | m_GISettings: 49 | serializedVersion: 2 50 | m_BounceScale: 1 51 | m_IndirectOutputScale: 1 52 | m_AlbedoBoost: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 1 55 | m_EnableRealtimeLightmaps: 1 56 | m_LightmapEditorSettings: 57 | serializedVersion: 12 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_AtlasSize: 1024 61 | m_AO: 0 62 | m_AOMaxDistance: 1 63 | m_CompAOExponent: 1 64 | m_CompAOExponentDirect: 0 65 | m_ExtractAmbientOcclusion: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 1 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 512 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 256 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 1 83 | m_PVRDenoiserTypeDirect: 1 84 | m_PVRDenoiserTypeIndirect: 1 85 | m_PVRDenoiserTypeAO: 1 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 1 90 | m_PVRCulling: 1 91 | m_PVRFilteringGaussRadiusDirect: 1 92 | m_PVRFilteringGaussRadiusIndirect: 5 93 | m_PVRFilteringGaussRadiusAO: 2 94 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 95 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 96 | m_PVRFilteringAtrousPositionSigmaAO: 1 97 | m_ShowResolutionOverlay: 1 98 | m_ExportTrainingData: 0 99 | m_LightingDataAsset: {fileID: 0} 100 | m_UseShadowmask: 1 101 | --- !u!196 &4 102 | NavMeshSettings: 103 | serializedVersion: 2 104 | m_ObjectHideFlags: 0 105 | m_BuildSettings: 106 | serializedVersion: 2 107 | agentTypeID: 0 108 | agentRadius: 0.5 109 | agentHeight: 2 110 | agentSlope: 45 111 | agentClimb: 0.4 112 | ledgeDropHeight: 0 113 | maxJumpAcrossDistance: 0 114 | minRegionArea: 2 115 | manualCellSize: 0 116 | cellSize: 0.16666667 117 | manualTileSize: 0 118 | tileSize: 256 119 | accuratePlacement: 0 120 | debug: 121 | m_Flags: 0 122 | m_NavMeshData: {fileID: 0} 123 | --- !u!1 &1267267674 124 | GameObject: 125 | m_ObjectHideFlags: 0 126 | m_CorrespondingSourceObject: {fileID: 0} 127 | m_PrefabInstance: {fileID: 0} 128 | m_PrefabAsset: {fileID: 0} 129 | serializedVersion: 6 130 | m_Component: 131 | - component: {fileID: 1267267676} 132 | - component: {fileID: 1267267675} 133 | - component: {fileID: 1267267677} 134 | m_Layer: 0 135 | m_Name: Timeline 136 | m_TagString: Untagged 137 | m_Icon: {fileID: 0} 138 | m_NavMeshLayer: 0 139 | m_StaticEditorFlags: 0 140 | m_IsActive: 1 141 | --- !u!320 &1267267675 142 | PlayableDirector: 143 | m_ObjectHideFlags: 0 144 | m_CorrespondingSourceObject: {fileID: 0} 145 | m_PrefabInstance: {fileID: 0} 146 | m_PrefabAsset: {fileID: 0} 147 | m_GameObject: {fileID: 1267267674} 148 | m_Enabled: 1 149 | serializedVersion: 3 150 | m_PlayableAsset: {fileID: 11400000, guid: 1765174f1b9fbd54b905feb1f189de99, type: 2} 151 | m_InitialState: 1 152 | m_WrapMode: 0 153 | m_DirectorUpdateMode: 1 154 | m_InitialTime: 0 155 | m_SceneBindings: 156 | - key: {fileID: 1267940806772012855, guid: 1765174f1b9fbd54b905feb1f189de99, type: 2} 157 | value: {fileID: 1267267674} 158 | m_ExposedReferences: 159 | m_References: [] 160 | --- !u!4 &1267267676 161 | Transform: 162 | m_ObjectHideFlags: 0 163 | m_CorrespondingSourceObject: {fileID: 0} 164 | m_PrefabInstance: {fileID: 0} 165 | m_PrefabAsset: {fileID: 0} 166 | m_GameObject: {fileID: 1267267674} 167 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 168 | m_LocalPosition: {x: 0, y: 3, z: 0} 169 | m_LocalScale: {x: 1, y: 1, z: 1} 170 | m_Children: [] 171 | m_Father: {fileID: 0} 172 | m_RootOrder: 0 173 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 174 | --- !u!114 &1267267677 175 | MonoBehaviour: 176 | m_ObjectHideFlags: 0 177 | m_CorrespondingSourceObject: {fileID: 0} 178 | m_PrefabInstance: {fileID: 0} 179 | m_PrefabAsset: {fileID: 0} 180 | m_GameObject: {fileID: 1267267674} 181 | m_Enabled: 1 182 | m_EditorHideFlags: 0 183 | m_Script: {fileID: 11500000, guid: d9e7defa5a3840e2b28166e95d08b339, type: 3} 184 | m_Name: 185 | m_EditorClassIdentifier: 186 | -------------------------------------------------------------------------------- /Assets/6-JumpMarker/JumpMarker.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 37caf139ff9fa3246bf1da201c746224 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/6-JumpMarker/JumpMarkerTimeline.playable: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &-8789850407703574744 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 1 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: fc6b2e762b2d45c695fa4597f6db49b8, type: 3} 13 | m_Name: DestinationMarker2 14 | m_EditorClassIdentifier: 15 | m_Time: 1.4833333333333334 16 | active: 0 17 | --- !u!114 &-4630321012543260061 18 | MonoBehaviour: 19 | m_ObjectHideFlags: 1 20 | m_CorrespondingSourceObject: {fileID: 0} 21 | m_PrefabInstance: {fileID: 0} 22 | m_PrefabAsset: {fileID: 0} 23 | m_GameObject: {fileID: 0} 24 | m_Enabled: 1 25 | m_EditorHideFlags: 0 26 | m_Script: {fileID: 11500000, guid: fc6b2e762b2d45c695fa4597f6db49b8, type: 3} 27 | m_Name: Destination 28 | m_EditorClassIdentifier: 29 | m_Time: 0.5 30 | active: 1 31 | --- !u!114 &-3980832302304139884 32 | MonoBehaviour: 33 | m_ObjectHideFlags: 1 34 | m_CorrespondingSourceObject: {fileID: 0} 35 | m_PrefabInstance: {fileID: 0} 36 | m_PrefabAsset: {fileID: 0} 37 | m_GameObject: {fileID: 0} 38 | m_Enabled: 1 39 | m_EditorHideFlags: 0 40 | m_Script: {fileID: 11500000, guid: fc6b2e762b2d45c695fa4597f6db49b8, type: 3} 41 | m_Name: DestinationMarker 42 | m_EditorClassIdentifier: 43 | m_Time: 0.6666666666666666 44 | active: 0 45 | --- !u!114 &11400000 46 | MonoBehaviour: 47 | m_ObjectHideFlags: 0 48 | m_CorrespondingSourceObject: {fileID: 0} 49 | m_PrefabInstance: {fileID: 0} 50 | m_PrefabAsset: {fileID: 0} 51 | m_GameObject: {fileID: 0} 52 | m_Enabled: 1 53 | m_EditorHideFlags: 0 54 | m_Script: {fileID: 11500000, guid: bfda56da833e2384a9677cd3c976a436, type: 3} 55 | m_Name: JumpMarkerTimeline 56 | m_EditorClassIdentifier: 57 | m_Version: 0 58 | m_Tracks: [] 59 | m_FixedDuration: 1.8 60 | m_EditorSettings: 61 | m_Framerate: 60 62 | m_DurationMode: 1 63 | m_MarkerTrack: {fileID: 1267940806772012855} 64 | --- !u!114 &660111206773506302 65 | MonoBehaviour: 66 | m_ObjectHideFlags: 1 67 | m_CorrespondingSourceObject: {fileID: 0} 68 | m_PrefabInstance: {fileID: 0} 69 | m_PrefabAsset: {fileID: 0} 70 | m_GameObject: {fileID: 0} 71 | m_Enabled: 1 72 | m_EditorHideFlags: 0 73 | m_Script: {fileID: 11500000, guid: fc6b2e762b2d45c695fa4597f6db49b8, type: 3} 74 | m_Name: DestinationMarker2 75 | m_EditorClassIdentifier: 76 | m_Time: 1.7333333333333334 77 | active: 0 78 | --- !u!114 &1267940806772012855 79 | MonoBehaviour: 80 | m_ObjectHideFlags: 1 81 | m_CorrespondingSourceObject: {fileID: 0} 82 | m_PrefabInstance: {fileID: 0} 83 | m_PrefabAsset: {fileID: 0} 84 | m_GameObject: {fileID: 0} 85 | m_Enabled: 1 86 | m_EditorHideFlags: 0 87 | m_Script: {fileID: 11500000, guid: 2a16748d9461eae46a725db9776d5390, type: 3} 88 | m_Name: Markers 89 | m_EditorClassIdentifier: 90 | m_Version: 3 91 | m_AnimClip: {fileID: 0} 92 | m_Locked: 0 93 | m_Muted: 0 94 | m_CustomPlayableFullTypename: 95 | m_Curves: {fileID: 0} 96 | m_Parent: {fileID: 11400000} 97 | m_Children: [] 98 | m_Clips: [] 99 | m_Markers: 100 | m_Objects: 101 | - {fileID: -4630321012543260061} 102 | - {fileID: 2863567827779196227} 103 | --- !u!114 &2863567827779196227 104 | MonoBehaviour: 105 | m_ObjectHideFlags: 1 106 | m_CorrespondingSourceObject: {fileID: 0} 107 | m_PrefabInstance: {fileID: 0} 108 | m_PrefabAsset: {fileID: 0} 109 | m_GameObject: {fileID: 0} 110 | m_Enabled: 1 111 | m_EditorHideFlags: 0 112 | m_Script: {fileID: 11500000, guid: 03608073322ad4049bf674d9d133510a, type: 3} 113 | m_Name: Jump/JumpMarker 114 | m_EditorClassIdentifier: 115 | m_Time: 1.5 116 | destinationMarker: {fileID: -4630321012543260061} 117 | emitOnce: 1 118 | emitInEditor: 1 119 | --- !u!114 &4151137987406247013 120 | MonoBehaviour: 121 | m_ObjectHideFlags: 1 122 | m_CorrespondingSourceObject: {fileID: 0} 123 | m_PrefabInstance: {fileID: 0} 124 | m_PrefabAsset: {fileID: 0} 125 | m_GameObject: {fileID: 0} 126 | m_Enabled: 1 127 | m_EditorHideFlags: 0 128 | m_Script: {fileID: 11500000, guid: 03608073322ad4049bf674d9d133510a, type: 3} 129 | m_Name: Go To Marker 130 | m_EditorClassIdentifier: 131 | m_Time: 3.3 132 | destinationMarker: {fileID: 0} 133 | emitOnce: 0 134 | emitInEditor: 0 135 | --- !u!114 &5329275881803133001 136 | MonoBehaviour: 137 | m_ObjectHideFlags: 1 138 | m_CorrespondingSourceObject: {fileID: 0} 139 | m_PrefabInstance: {fileID: 0} 140 | m_PrefabAsset: {fileID: 0} 141 | m_GameObject: {fileID: 0} 142 | m_Enabled: 1 143 | m_EditorHideFlags: 0 144 | m_Script: {fileID: 11500000, guid: fc6b2e762b2d45c695fa4597f6db49b8, type: 3} 145 | m_Name: DestinationMarker 146 | m_EditorClassIdentifier: 147 | m_Time: 0.9166666666666666 148 | active: 0 149 | --- !u!114 &5461648023094296445 150 | MonoBehaviour: 151 | m_ObjectHideFlags: 1 152 | m_CorrespondingSourceObject: {fileID: 0} 153 | m_PrefabInstance: {fileID: 0} 154 | m_PrefabAsset: {fileID: 0} 155 | m_GameObject: {fileID: 0} 156 | m_Enabled: 1 157 | m_EditorHideFlags: 0 158 | m_Script: {fileID: 11500000, guid: 03608073322ad4049bf674d9d133510a, type: 3} 159 | m_Name: Go To Marker 160 | m_EditorClassIdentifier: 161 | m_Time: 3.55 162 | destinationMarker: {fileID: 0} 163 | emitOnce: 0 164 | emitInEditor: 0 165 | -------------------------------------------------------------------------------- /Assets/6-JumpMarker/JumpMarkerTimeline.playable.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1765174f1b9fbd54b905feb1f189de99 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/6-JumpMarker/JumpReceiver.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.Playables; 3 | 4 | public class JumpReceiver : MonoBehaviour, INotificationReceiver 5 | { 6 | public void OnNotify(Playable origin, INotification notification, object context) 7 | { 8 | var jumpMarker = notification as JumpMarker; 9 | if (jumpMarker == null) return; 10 | 11 | var destinationMarker = jumpMarker.destinationMarker; 12 | if (destinationMarker != null && destinationMarker.active) 13 | { 14 | var timelinePlayable = origin.GetGraph().GetRootPlayable(0); 15 | timelinePlayable.SetTime(destinationMarker.time); 16 | } 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /Assets/6-JumpMarker/JumpReceiver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d9e7defa5a3840e2b28166e95d08b339 3 | timeCreated: 1559330888 -------------------------------------------------------------------------------- /Assets/7-ClipNotification.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dda0a505c6747e048ae560842a75f998 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/7-ClipNotification/ClipNotification.playable: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: bfda56da833e2384a9677cd3c976a436, type: 3} 13 | m_Name: ClipNotification 14 | m_EditorClassIdentifier: 15 | m_Version: 0 16 | m_Tracks: 17 | - {fileID: 2537208495323654954} 18 | m_FixedDuration: 0 19 | m_EditorSettings: 20 | m_Framerate: 60 21 | m_DurationMode: 0 22 | m_MarkerTrack: {fileID: 7819450765965530313} 23 | --- !u!114 &2537208495323654954 24 | MonoBehaviour: 25 | m_ObjectHideFlags: 1 26 | m_CorrespondingSourceObject: {fileID: 0} 27 | m_PrefabInstance: {fileID: 0} 28 | m_PrefabAsset: {fileID: 0} 29 | m_GameObject: {fileID: 0} 30 | m_Enabled: 1 31 | m_EditorHideFlags: 0 32 | m_Script: {fileID: 11500000, guid: 3074c03b8b2c46be893799e9ee6f9418, type: 3} 33 | m_Name: Clip Notification Track 34 | m_EditorClassIdentifier: 35 | m_Version: 3 36 | m_AnimClip: {fileID: 0} 37 | m_Locked: 0 38 | m_Muted: 0 39 | m_CustomPlayableFullTypename: 40 | m_Curves: {fileID: 0} 41 | m_Parent: {fileID: 11400000} 42 | m_Children: [] 43 | m_Clips: 44 | - m_Version: 1 45 | m_Start: 0 46 | m_ClipIn: 0 47 | m_Asset: {fileID: 2552469263044686335} 48 | m_Duration: 5 49 | m_TimeScale: 1 50 | m_ParentTrack: {fileID: 2537208495323654954} 51 | m_EaseInDuration: 0 52 | m_EaseOutDuration: 0 53 | m_BlendInDuration: -1 54 | m_BlendOutDuration: -1 55 | m_MixInCurve: 56 | serializedVersion: 2 57 | m_Curve: 58 | - serializedVersion: 3 59 | time: 0 60 | value: 0 61 | inSlope: 0 62 | outSlope: 0 63 | tangentMode: 0 64 | weightedMode: 0 65 | inWeight: 0 66 | outWeight: 0 67 | - serializedVersion: 3 68 | time: 1 69 | value: 1 70 | inSlope: 0 71 | outSlope: 0 72 | tangentMode: 0 73 | weightedMode: 0 74 | inWeight: 0 75 | outWeight: 0 76 | m_PreInfinity: 2 77 | m_PostInfinity: 2 78 | m_RotationOrder: 4 79 | m_MixOutCurve: 80 | serializedVersion: 2 81 | m_Curve: 82 | - serializedVersion: 3 83 | time: 0 84 | value: 1 85 | inSlope: 0 86 | outSlope: 0 87 | tangentMode: 0 88 | weightedMode: 0 89 | inWeight: 0 90 | outWeight: 0 91 | - serializedVersion: 3 92 | time: 1 93 | value: 0 94 | inSlope: 0 95 | outSlope: 0 96 | tangentMode: 0 97 | weightedMode: 0 98 | inWeight: 0 99 | outWeight: 0 100 | m_PreInfinity: 2 101 | m_PostInfinity: 2 102 | m_RotationOrder: 4 103 | m_BlendInCurveMode: 0 104 | m_BlendOutCurveMode: 0 105 | m_ExposedParameterNames: [] 106 | m_AnimationCurves: {fileID: 0} 107 | m_Recordable: 0 108 | m_PostExtrapolationMode: 0 109 | m_PreExtrapolationMode: 0 110 | m_PostExtrapolationTime: 0 111 | m_PreExtrapolationTime: 0 112 | m_DisplayName: ClipNotificationAsset 113 | m_Markers: 114 | m_Objects: [] 115 | --- !u!114 &2552469263044686335 116 | MonoBehaviour: 117 | m_ObjectHideFlags: 1 118 | m_CorrespondingSourceObject: {fileID: 0} 119 | m_PrefabInstance: {fileID: 0} 120 | m_PrefabAsset: {fileID: 0} 121 | m_GameObject: {fileID: 0} 122 | m_Enabled: 1 123 | m_EditorHideFlags: 0 124 | m_Script: {fileID: 11500000, guid: 5c278591452d8d04ebf51d43594018db, type: 3} 125 | m_Name: ClipNotificationAsset 126 | m_EditorClassIdentifier: 127 | --- !u!114 &7819450765965530313 128 | MonoBehaviour: 129 | m_ObjectHideFlags: 1 130 | m_CorrespondingSourceObject: {fileID: 0} 131 | m_PrefabInstance: {fileID: 0} 132 | m_PrefabAsset: {fileID: 0} 133 | m_GameObject: {fileID: 0} 134 | m_Enabled: 1 135 | m_EditorHideFlags: 0 136 | m_Script: {fileID: 11500000, guid: 2a16748d9461eae46a725db9776d5390, type: 3} 137 | m_Name: Markers 138 | m_EditorClassIdentifier: 139 | m_Version: 3 140 | m_AnimClip: {fileID: 0} 141 | m_Locked: 0 142 | m_Muted: 0 143 | m_CustomPlayableFullTypename: 144 | m_Curves: {fileID: 0} 145 | m_Parent: {fileID: 11400000} 146 | m_Children: [] 147 | m_Clips: [] 148 | m_Markers: 149 | m_Objects: [] 150 | -------------------------------------------------------------------------------- /Assets/7-ClipNotification/ClipNotification.playable.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 578624d8892740b4abd0b19935589fcb 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/7-ClipNotification/ClipNotification.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 9 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 0 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 0} 41 | m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 11 47 | m_GIWorkflowMode: 1 48 | m_GISettings: 49 | serializedVersion: 2 50 | m_BounceScale: 1 51 | m_IndirectOutputScale: 1 52 | m_AlbedoBoost: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 1 55 | m_EnableRealtimeLightmaps: 1 56 | m_LightmapEditorSettings: 57 | serializedVersion: 12 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_AtlasSize: 1024 61 | m_AO: 0 62 | m_AOMaxDistance: 1 63 | m_CompAOExponent: 1 64 | m_CompAOExponentDirect: 0 65 | m_ExtractAmbientOcclusion: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 1 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 512 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 256 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 1 83 | m_PVRDenoiserTypeDirect: 1 84 | m_PVRDenoiserTypeIndirect: 1 85 | m_PVRDenoiserTypeAO: 1 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 1 90 | m_PVRCulling: 1 91 | m_PVRFilteringGaussRadiusDirect: 1 92 | m_PVRFilteringGaussRadiusIndirect: 5 93 | m_PVRFilteringGaussRadiusAO: 2 94 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 95 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 96 | m_PVRFilteringAtrousPositionSigmaAO: 1 97 | m_ShowResolutionOverlay: 1 98 | m_ExportTrainingData: 0 99 | m_LightingDataAsset: {fileID: 0} 100 | m_UseShadowmask: 1 101 | --- !u!196 &4 102 | NavMeshSettings: 103 | serializedVersion: 2 104 | m_ObjectHideFlags: 0 105 | m_BuildSettings: 106 | serializedVersion: 2 107 | agentTypeID: 0 108 | agentRadius: 0.5 109 | agentHeight: 2 110 | agentSlope: 45 111 | agentClimb: 0.4 112 | ledgeDropHeight: 0 113 | maxJumpAcrossDistance: 0 114 | minRegionArea: 2 115 | manualCellSize: 0 116 | cellSize: 0.16666667 117 | manualTileSize: 0 118 | tileSize: 256 119 | accuratePlacement: 0 120 | debug: 121 | m_Flags: 0 122 | m_NavMeshData: {fileID: 0} 123 | --- !u!1 &331680451 124 | GameObject: 125 | m_ObjectHideFlags: 0 126 | m_CorrespondingSourceObject: {fileID: 0} 127 | m_PrefabInstance: {fileID: 0} 128 | m_PrefabAsset: {fileID: 0} 129 | serializedVersion: 6 130 | m_Component: 131 | - component: {fileID: 331680454} 132 | - component: {fileID: 331680453} 133 | - component: {fileID: 331680452} 134 | m_Layer: 0 135 | m_Name: Timeline 136 | m_TagString: Untagged 137 | m_Icon: {fileID: 0} 138 | m_NavMeshLayer: 0 139 | m_StaticEditorFlags: 0 140 | m_IsActive: 1 141 | --- !u!95 &331680452 142 | Animator: 143 | serializedVersion: 3 144 | m_ObjectHideFlags: 0 145 | m_CorrespondingSourceObject: {fileID: 0} 146 | m_PrefabInstance: {fileID: 0} 147 | m_PrefabAsset: {fileID: 0} 148 | m_GameObject: {fileID: 331680451} 149 | m_Enabled: 1 150 | m_Avatar: {fileID: 0} 151 | m_Controller: {fileID: 0} 152 | m_CullingMode: 0 153 | m_UpdateMode: 0 154 | m_ApplyRootMotion: 0 155 | m_LinearVelocityBlending: 0 156 | m_WarningMessage: 157 | m_HasTransformHierarchy: 1 158 | m_AllowConstantClipSamplingOptimization: 1 159 | m_KeepAnimatorControllerStateOnDisable: 0 160 | --- !u!320 &331680453 161 | PlayableDirector: 162 | m_ObjectHideFlags: 0 163 | m_CorrespondingSourceObject: {fileID: 0} 164 | m_PrefabInstance: {fileID: 0} 165 | m_PrefabAsset: {fileID: 0} 166 | m_GameObject: {fileID: 331680451} 167 | m_Enabled: 1 168 | serializedVersion: 3 169 | m_PlayableAsset: {fileID: 11400000, guid: 578624d8892740b4abd0b19935589fcb, type: 2} 170 | m_InitialState: 1 171 | m_WrapMode: 2 172 | m_DirectorUpdateMode: 1 173 | m_InitialTime: 0 174 | m_SceneBindings: 175 | - key: {fileID: 2537208495323654954, guid: 578624d8892740b4abd0b19935589fcb, type: 2} 176 | value: {fileID: 705632821} 177 | m_ExposedReferences: 178 | m_References: [] 179 | --- !u!4 &331680454 180 | Transform: 181 | m_ObjectHideFlags: 0 182 | m_CorrespondingSourceObject: {fileID: 0} 183 | m_PrefabInstance: {fileID: 0} 184 | m_PrefabAsset: {fileID: 0} 185 | m_GameObject: {fileID: 331680451} 186 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 187 | m_LocalPosition: {x: 0, y: 0, z: 0} 188 | m_LocalScale: {x: 1, y: 1, z: 1} 189 | m_Children: [] 190 | m_Father: {fileID: 0} 191 | m_RootOrder: 0 192 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 193 | --- !u!1 &705632820 194 | GameObject: 195 | m_ObjectHideFlags: 0 196 | m_CorrespondingSourceObject: {fileID: 0} 197 | m_PrefabInstance: {fileID: 0} 198 | m_PrefabAsset: {fileID: 0} 199 | serializedVersion: 6 200 | m_Component: 201 | - component: {fileID: 705632822} 202 | - component: {fileID: 705632821} 203 | m_Layer: 0 204 | m_Name: Receiver 205 | m_TagString: Untagged 206 | m_Icon: {fileID: 0} 207 | m_NavMeshLayer: 0 208 | m_StaticEditorFlags: 0 209 | m_IsActive: 1 210 | --- !u!114 &705632821 211 | MonoBehaviour: 212 | m_ObjectHideFlags: 0 213 | m_CorrespondingSourceObject: {fileID: 0} 214 | m_PrefabInstance: {fileID: 0} 215 | m_PrefabAsset: {fileID: 0} 216 | m_GameObject: {fileID: 705632820} 217 | m_Enabled: 1 218 | m_EditorHideFlags: 0 219 | m_Script: {fileID: 11500000, guid: fd02d602364344b7a1c4d26d9ca551a5, type: 3} 220 | m_Name: 221 | m_EditorClassIdentifier: 222 | --- !u!4 &705632822 223 | Transform: 224 | m_ObjectHideFlags: 0 225 | m_CorrespondingSourceObject: {fileID: 0} 226 | m_PrefabInstance: {fileID: 0} 227 | m_PrefabAsset: {fileID: 0} 228 | m_GameObject: {fileID: 705632820} 229 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 230 | m_LocalPosition: {x: 0, y: 0, z: 0} 231 | m_LocalScale: {x: 1, y: 1, z: 1} 232 | m_Children: [] 233 | m_Father: {fileID: 0} 234 | m_RootOrder: 1 235 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 236 | -------------------------------------------------------------------------------- /Assets/7-ClipNotification/ClipNotification.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 02fe99fd5729224438d398230a4b678c 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/7-ClipNotification/ClipNotificationAsset.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.Playables; 3 | 4 | namespace ClipNotification 5 | { 6 | public class ClipNotificationAsset : PlayableAsset 7 | { 8 | public override Playable CreatePlayable(PlayableGraph graph, GameObject owner) 9 | { 10 | return ScriptPlayable.Create(graph); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Assets/7-ClipNotification/ClipNotificationAsset.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5c278591452d8d04ebf51d43594018db 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/7-ClipNotification/ClipNotificationBehaviour.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine.Playables; 2 | 3 | namespace ClipNotification 4 | { 5 | public class ClipNotificationBehaviour : PlayableBehaviour 6 | { 7 | double m_PreviousTime; 8 | 9 | public override void OnGraphStart(Playable playable) 10 | { 11 | m_PreviousTime = 0; 12 | } 13 | 14 | public override void ProcessFrame(Playable playable, FrameData info, object playerData) 15 | { 16 | if ((int)m_PreviousTime < (int)playable.GetTime()) 17 | { 18 | info.output.PushNotification(playable, new MyNotification()); 19 | } 20 | 21 | m_PreviousTime = playable.GetTime(); 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Assets/7-ClipNotification/ClipNotificationBehaviour.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7b9fad1f4eb84ec2a391703051f6a9b5 3 | timeCreated: 1559077015 -------------------------------------------------------------------------------- /Assets/7-ClipNotification/ClipNotificationTrack.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine.Timeline; 2 | 3 | namespace ClipNotification 4 | { 5 | [TrackBindingType(typeof(NotificationReceiver))] 6 | [TrackClipType(typeof(ClipNotificationAsset))] 7 | public class ClipNotificationTrack : TrackAsset { } 8 | } 9 | -------------------------------------------------------------------------------- /Assets/7-ClipNotification/ClipNotificationTrack.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3074c03b8b2c46be893799e9ee6f9418 3 | timeCreated: 1559077943 -------------------------------------------------------------------------------- /Assets/Common.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8853000912e75f0489c9ff001b752583 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Common/MyNotification.cs: -------------------------------------------------------------------------------- 1 | 2 | using UnityEngine; 3 | using UnityEngine.Playables; 4 | 5 | public class MyNotification : INotification 6 | { 7 | public PropertyName id { get; } 8 | } -------------------------------------------------------------------------------- /Assets/Common/MyNotification.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0f4b348027c24e928c4edb5fd4f83364 3 | timeCreated: 1559075276 -------------------------------------------------------------------------------- /Assets/Common/NotificationReceiver.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.Playables; 3 | 4 | class NotificationReceiver: MonoBehaviour, INotificationReceiver 5 | { 6 | public void OnNotify(Playable origin, INotification notification, object context) 7 | { 8 | if (notification != null) 9 | { 10 | double time = origin.IsValid() ? origin.GetTime() : 0.0; 11 | Debug.LogFormat("Received notification of type {0} at time {1}", notification.GetType(), time); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Assets/Common/NotificationReceiver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fd02d602364344b7a1c4d26d9ca551a5 3 | timeCreated: 1559075950 -------------------------------------------------------------------------------- /Assets/Common/ReceiverExample.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.Playables; 3 | 4 | class ReceiverExample : INotificationReceiver 5 | { 6 | public void OnNotify(Playable origin, INotification notification, object context) 7 | { 8 | if (notification != null) 9 | { 10 | double time = origin.IsValid() ? origin.GetTime() : 0.0; 11 | Debug.LogFormat("Received notification of type {0} at time {1}", notification.GetType(), time); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Assets/Common/ReceiverExample.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d0d7d11c15e3407490311d6d2caeac84 3 | timeCreated: 1558432175 -------------------------------------------------------------------------------- /Assets/Tools.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cecfbe85997eb074fa082cb3361513d2 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Tools/PlayableGraphVisualizer.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3f0ea932ebd726446a1d47da16e2ecee 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Tools/PlayableGraphVisualizer/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e1ae3c2603fc5134591e3725b7318950 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Tools/PlayableGraphVisualizer/Editor/Graph.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 569c993bef0ef6146b1b8cbb904bdfde 3 | folderAsset: yes 4 | timeCreated: 1478032057 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Tools/PlayableGraphVisualizer/Editor/Graph/Graph.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using System.Collections.ObjectModel; 4 | 5 | namespace GraphVisualizer 6 | { 7 | public abstract class Graph : IEnumerable 8 | { 9 | private readonly List m_Nodes = new List(); 10 | 11 | public ReadOnlyCollection nodes 12 | { 13 | get { return m_Nodes.AsReadOnly(); } 14 | } 15 | 16 | protected class NodeWeight 17 | { 18 | public object node { get; set; } 19 | public float weight { get; set; } 20 | } 21 | 22 | // Derived class should specify the children of a given node. 23 | protected abstract IEnumerable GetChildren(Node node); 24 | 25 | // Derived class should implement how to populate this graph (usually by calling AddNodeHierarchy()). 26 | protected abstract void Populate(); 27 | 28 | public void AddNodeHierarchy(Node root) 29 | { 30 | AddNode(root); 31 | 32 | IEnumerable children = GetChildren(root); 33 | if (children == null) 34 | return; 35 | 36 | foreach (Node child in children) 37 | { 38 | root.AddChild(child); 39 | AddNodeHierarchy(child); 40 | } 41 | } 42 | 43 | public void AddNode(Node node) 44 | { 45 | m_Nodes.Add(node); 46 | } 47 | 48 | public void Clear() 49 | { 50 | m_Nodes.Clear(); 51 | } 52 | 53 | public void Refresh() 54 | { 55 | // TODO optimize? 56 | Clear(); 57 | Populate(); 58 | } 59 | 60 | public IEnumerator GetEnumerator() 61 | { 62 | return m_Nodes.GetEnumerator(); 63 | } 64 | 65 | IEnumerator IEnumerable.GetEnumerator() 66 | { 67 | return m_Nodes.GetEnumerator(); 68 | } 69 | 70 | public bool IsEmpty() 71 | { 72 | return m_Nodes.Count == 0; 73 | } 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /Assets/Tools/PlayableGraphVisualizer/Editor/Graph/Graph.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 147d962da65506442b417599ddc1ca7e 3 | timeCreated: 1478627468 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Tools/PlayableGraphVisualizer/Editor/Graph/Layouts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1ba77f7c2ab935748b7f3d4559ed450c 3 | folderAsset: yes 4 | timeCreated: 1478627467 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Tools/PlayableGraphVisualizer/Editor/Graph/Layouts/IGraphLayout.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using UnityEngine; 3 | 4 | namespace GraphVisualizer 5 | { 6 | // Interface for a generic graph layout. 7 | public interface IGraphLayout 8 | { 9 | IEnumerable vertices { get; } 10 | IEnumerable edges { get; } 11 | 12 | bool leftToRight { get; } 13 | 14 | void CalculateLayout(Graph graph); 15 | } 16 | 17 | public class Edge 18 | { 19 | // Indices in the vertex array of the layout algorithm. 20 | public Edge(Vertex src, Vertex dest) 21 | { 22 | source = src; 23 | destination = dest; 24 | } 25 | 26 | public Vertex source { get; private set; } 27 | 28 | public Vertex destination { get; private set; } 29 | } 30 | 31 | // One vertex is associated to each node in the graph. 32 | public class Vertex 33 | { 34 | // Center of the node in the graph layout. 35 | public Vector2 position { get; set; } 36 | 37 | // The Node represented by the vertex. 38 | public Node node { get; private set; } 39 | 40 | public Vertex(Node node) 41 | { 42 | this.node = node; 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /Assets/Tools/PlayableGraphVisualizer/Editor/Graph/Layouts/IGraphLayout.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5171cb2fc868cda4bbfd28e24fe5d37c 3 | timeCreated: 1478627880 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Tools/PlayableGraphVisualizer/Editor/Graph/Layouts/ReingoldTilford.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Linq; 3 | using UnityEngine; 4 | 5 | namespace GraphVisualizer 6 | { 7 | // Implementation of Reingold and Tilford algorithm for graph layout 8 | // "Tidier Drawings of Trees", IEEE Transactions on Software Engineering Vol SE-7 No.2, March 1981 9 | // The implementation has been customized to support graphs with multiple roots and unattached nodes. 10 | public class ReingoldTilford : IGraphLayout 11 | { 12 | // By convention, all graph layout algorithms should have a minimum distance of 1 unit between nodes 13 | private static readonly float s_DistanceBetweenNodes = 1.0f; 14 | 15 | // Used to specify the vertical distance two non-attached trees in the graph. 16 | private static readonly float s_VerticalDistanceBetweenTrees = 3.0f; 17 | 18 | // Used to lengthen the wire when lots of children are connected. If 1, all levels will be evenly separated 19 | private static readonly float s_WireLengthFactorForLargeSpanningTrees = 3.0f; 20 | 21 | private static readonly float s_MaxChildrenThreshold = 6.0f; 22 | 23 | // Helper structure to easily find the vertex associated to a given Node. 24 | private readonly Dictionary m_NodeVertexLookup = new Dictionary(); 25 | 26 | public ReingoldTilford(bool leftToRight = true) 27 | { 28 | this.leftToRight = leftToRight; 29 | } 30 | 31 | public IEnumerable vertices 32 | { 33 | get { return m_NodeVertexLookup.Values; } 34 | } 35 | 36 | public IEnumerable edges 37 | { 38 | get 39 | { 40 | var edgesList = new List(); 41 | foreach (var node in m_NodeVertexLookup) 42 | { 43 | Vertex v = node.Value; 44 | foreach (Node child in v.node.children) 45 | { 46 | edgesList.Add(new Edge(m_NodeVertexLookup[child], v)); 47 | } 48 | } 49 | return edgesList; 50 | } 51 | } 52 | 53 | public bool leftToRight { get; private set; } 54 | 55 | // Main entry point of the algorithm 56 | public void CalculateLayout(Graph graph) 57 | { 58 | m_NodeVertexLookup.Clear(); 59 | foreach (Node node in graph) 60 | { 61 | m_NodeVertexLookup.Add(node, new Vertex(node)); 62 | } 63 | 64 | if (m_NodeVertexLookup.Count == 0) return; 65 | 66 | IList horizontalPositions = ComputeHorizontalPositionForEachLevel(); 67 | 68 | List roots = m_NodeVertexLookup.Keys.Where(n => n.parent == null).ToList(); 69 | 70 | for (int i = 0; i < roots.Count; ++i) 71 | { 72 | RecursiveLayout(roots[i], 0, horizontalPositions); 73 | 74 | if (i > 0) 75 | { 76 | Vector2 previousRootRange = ComputeRangeRecursive(roots[i - 1]); 77 | RecursiveMoveSubtree(roots[i], previousRootRange.y + s_VerticalDistanceBetweenTrees + s_DistanceBetweenNodes); 78 | } 79 | } 80 | } 81 | 82 | // Precompute the horizontal position for each level. 83 | // Levels with few wires (as measured by the maximum number of children for one node) are placed closer 84 | // apart; very cluttered levels are placed further apart. 85 | private float[] ComputeHorizontalPositionForEachLevel() 86 | { 87 | // Gather information about depths. 88 | var maxDepth = int.MinValue; 89 | var nodeDepths = new Dictionary>(); 90 | foreach (Node node in m_NodeVertexLookup.Keys) 91 | { 92 | int d = node.depth; 93 | List nodes; 94 | if (!nodeDepths.TryGetValue(d, out nodes)) 95 | { 96 | nodeDepths[d] = nodes = new List(); 97 | } 98 | nodes.Add(node); 99 | maxDepth = Mathf.Max(d, maxDepth); 100 | } 101 | 102 | // Bake the left to right horizontal positions. 103 | var horizontalPositionForDepth = new float[maxDepth]; 104 | horizontalPositionForDepth[0] = 0; 105 | for (int d = 1; d < maxDepth; ++d) 106 | { 107 | IEnumerable nodesOnThisLevel = nodeDepths[d + 1]; 108 | 109 | int maxChildren = nodesOnThisLevel.Max(x => x.children.Count); 110 | 111 | float wireLengthHeuristic = Mathf.Lerp(1, s_WireLengthFactorForLargeSpanningTrees, 112 | Mathf.Min(1, maxChildren / s_MaxChildrenThreshold)); 113 | 114 | horizontalPositionForDepth[d] = horizontalPositionForDepth[d - 1] + 115 | s_DistanceBetweenNodes * wireLengthHeuristic; 116 | } 117 | 118 | return leftToRight ? horizontalPositionForDepth : horizontalPositionForDepth.Reverse().ToArray(); 119 | } 120 | 121 | // Traverse the graph and place all nodes according to the algorithm 122 | private void RecursiveLayout(Node node, int depth, IList horizontalPositions) 123 | { 124 | IList children = node.children; 125 | foreach (Node child in children) 126 | { 127 | RecursiveLayout(child, depth + 1, horizontalPositions); 128 | } 129 | 130 | var yPos = 0.0f; 131 | if (children.Count > 0) 132 | { 133 | SeparateSubtrees(children); 134 | yPos = GetAveragePosition(children).y; 135 | } 136 | 137 | var pos = new Vector2(horizontalPositions[depth], yPos); 138 | m_NodeVertexLookup[node].position = pos; 139 | } 140 | 141 | private Vector2 ComputeRangeRecursive(Node node) 142 | { 143 | var range = Vector2.one * m_NodeVertexLookup[node].position.y; 144 | foreach (Node child in node.children) 145 | { 146 | Vector2 childRange = ComputeRangeRecursive(child); 147 | range.x = Mathf.Min(range.x, childRange.x); 148 | range.y = Mathf.Max(range.y, childRange.y); 149 | } 150 | return range; 151 | } 152 | 153 | // Determine parent's vertical position based on its children 154 | private Vector2 GetAveragePosition(ICollection children) 155 | { 156 | Vector2 centroid = new Vector2(); 157 | 158 | centroid = children.Aggregate(centroid, (current, n) => current + m_NodeVertexLookup[n].position); 159 | 160 | if (children.Count > 0) 161 | centroid /= children.Count; 162 | 163 | return centroid; 164 | } 165 | 166 | // Separate the given subtrees so they do not overlap 167 | private void SeparateSubtrees(IList subroots) 168 | { 169 | if (subroots.Count < 2) 170 | return; 171 | 172 | Node upperNode = subroots[0]; 173 | 174 | Dictionary upperTreeBoundaries = GetBoundaryPositions(upperNode); 175 | for (int s = 0; s < subroots.Count - 1; s++) 176 | { 177 | Node lowerNode = subroots[s + 1]; 178 | Dictionary lowerTreeBoundaries = GetBoundaryPositions(lowerNode); 179 | 180 | int minDepth = upperTreeBoundaries.Keys.Min(); 181 | if (minDepth != lowerTreeBoundaries.Keys.Min()) 182 | Debug.LogError("Cannot separate subtrees which do not start at the same root depth"); 183 | 184 | int lowerMaxDepth = lowerTreeBoundaries.Keys.Max(); 185 | int upperMaxDepth = upperTreeBoundaries.Keys.Max(); 186 | int maxDepth = System.Math.Min(upperMaxDepth, lowerMaxDepth); 187 | 188 | for (int depth = minDepth; depth <= maxDepth; depth++) 189 | { 190 | float delta = s_DistanceBetweenNodes - (lowerTreeBoundaries[depth].x - upperTreeBoundaries[depth].y); 191 | delta = System.Math.Max(delta, 0); 192 | RecursiveMoveSubtree(lowerNode, delta); 193 | for (int i = minDepth; i <= lowerMaxDepth; i++) 194 | lowerTreeBoundaries[i] += new Vector2(delta, delta); 195 | } 196 | upperTreeBoundaries = CombineBoundaryPositions(upperTreeBoundaries, lowerTreeBoundaries); 197 | } 198 | } 199 | 200 | // Using a Vector2 at each depth to hold the extrema vertical positions 201 | private Dictionary GetBoundaryPositions(Node subTreeRoot) 202 | { 203 | var extremePositions = new Dictionary(); 204 | 205 | IEnumerable descendants = GetSubtreeNodes(subTreeRoot); 206 | 207 | foreach (var node in descendants) 208 | { 209 | int depth = m_NodeVertexLookup[node].node.depth; 210 | float pos = m_NodeVertexLookup[node].position.y; 211 | if (extremePositions.ContainsKey(depth)) 212 | extremePositions[depth] = new Vector2(Mathf.Min(extremePositions[depth].x, pos), 213 | Mathf.Max(extremePositions[depth].y, pos)); 214 | else 215 | extremePositions[depth] = new Vector2(pos, pos); 216 | } 217 | 218 | return extremePositions; 219 | } 220 | 221 | // Includes all descendants and the subtree root itself 222 | private IEnumerable GetSubtreeNodes(Node root) 223 | { 224 | var allDescendants = new List { root }; 225 | foreach (Node child in root.children) 226 | { 227 | allDescendants.AddRange(GetSubtreeNodes(child)); 228 | } 229 | return allDescendants; 230 | } 231 | 232 | // After adjusting a subtree, compute its new boundary positions 233 | private Dictionary CombineBoundaryPositions(Dictionary upperTree, Dictionary lowerTree) 234 | { 235 | var combined = new Dictionary(); 236 | int minDepth = upperTree.Keys.Min(); 237 | int maxDepth = System.Math.Max(upperTree.Keys.Max(), lowerTree.Keys.Max()); 238 | 239 | for (int d = minDepth; d <= maxDepth; d++) 240 | { 241 | float upperBoundary = upperTree.ContainsKey(d) ? upperTree[d].x : lowerTree[d].x; 242 | float lowerBoundary = lowerTree.ContainsKey(d) ? lowerTree[d].y : upperTree[d].y; 243 | combined[d] = new Vector2(upperBoundary, lowerBoundary); 244 | } 245 | return combined; 246 | } 247 | 248 | // Apply a vertical delta to all nodes in a subtree 249 | private void RecursiveMoveSubtree(Node subtreeRoot, float yDelta) 250 | { 251 | Vector2 pos = m_NodeVertexLookup[subtreeRoot].position; 252 | m_NodeVertexLookup[subtreeRoot].position = new Vector2(pos.x, pos.y + yDelta); 253 | 254 | foreach (Node child in subtreeRoot.children) 255 | { 256 | RecursiveMoveSubtree(child, yDelta); 257 | } 258 | } 259 | } 260 | } 261 | -------------------------------------------------------------------------------- /Assets/Tools/PlayableGraphVisualizer/Editor/Graph/Layouts/ReingoldTilford.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 51bcffb11720b2748b8b520d55c94a12 3 | timeCreated: 1478032057 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Tools/PlayableGraphVisualizer/Editor/Graph/Node.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using UnityEngine; 5 | 6 | namespace GraphVisualizer 7 | { 8 | public class Node 9 | { 10 | public object content { get; private set; } 11 | public float weight { get; set; } 12 | public bool active { get; private set; } 13 | public Node parent { get; private set; } 14 | public IList children { get; private set; } 15 | 16 | public Node(object content, float weight = 1.0f, bool active = false) 17 | { 18 | this.content = content; 19 | this.weight = weight; 20 | this.active = active; 21 | children = new List(); 22 | } 23 | 24 | public void AddChild(Node child) 25 | { 26 | if (child == this) throw new Exception("Circular graphs not supported."); 27 | if (child.parent == this) return; 28 | 29 | children.Add(child); 30 | child.parent = this; 31 | } 32 | 33 | public int depth 34 | { 35 | get { return GetDepthRecursive(this); } 36 | } 37 | 38 | private static int GetDepthRecursive(Node node) 39 | { 40 | if (node.parent == null) return 1; 41 | return 1 + GetDepthRecursive(node.parent); 42 | } 43 | 44 | public virtual Type GetContentType() 45 | { 46 | return content == null ? null : content.GetType(); 47 | } 48 | 49 | public virtual string GetContentTypeName() 50 | { 51 | Type type = GetContentType(); 52 | return type == null ? "Null" : type.ToString(); 53 | } 54 | 55 | public virtual string GetContentTypeShortName() 56 | { 57 | return GetContentTypeName().Split('.').Last(); 58 | } 59 | 60 | public override string ToString() 61 | { 62 | return "Node content: " + GetContentTypeName(); 63 | } 64 | 65 | public virtual Color GetColor() 66 | { 67 | Type type = GetContentType(); 68 | if (type == null) 69 | return Color.red; 70 | 71 | string shortName = type.ToString().Split('.').Last(); 72 | float h = (float)Math.Abs(shortName.GetHashCode()) / int.MaxValue; 73 | return Color.HSVToRGB(h, 0.6f, 1.0f); 74 | } 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /Assets/Tools/PlayableGraphVisualizer/Editor/Graph/Node.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0a5e939f109486342a621dfffb0e92a4 3 | timeCreated: 1478627468 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Tools/PlayableGraphVisualizer/Editor/Graph/Renderer.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6e6f7481b1110e348aafbed5c3c6f137 3 | folderAsset: yes 4 | timeCreated: 1478627880 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Tools/PlayableGraphVisualizer/Editor/Graph/Renderer/DefaultGraphRenderer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text.RegularExpressions; 5 | using UnityEditor; 6 | using UnityEngine; 7 | 8 | namespace GraphVisualizer 9 | { 10 | public class DefaultGraphRenderer : IGraphRenderer 11 | { 12 | protected event Action nodeClicked; 13 | private static readonly Color s_EdgeColorMin = new Color(1.0f, 1.0f, 1.0f, 0.1f); 14 | private static readonly Color s_EdgeColorMax = Color.white; 15 | private static readonly Color s_LegendBackground = new Color(0, 0, 0, 0.1f); 16 | 17 | private static readonly float s_BorderSize = 15; 18 | private static readonly float s_LegendFixedOverheadWidth = 100; 19 | private static readonly float s_DefaultMaximumNormalizedNodeSize = 0.8f; 20 | private static readonly float s_DefaultMaximumNodeSizeInPixels = 100.0f; 21 | private static readonly float s_DefaultAspectRatio = 1.5f; 22 | 23 | private static readonly int s_NodeMaxFontSize = 14; 24 | 25 | private GUIStyle m_LegendLabelStyle; 26 | private GUIStyle m_SubTitleStyle; 27 | private GUIStyle m_InspectorStyle; 28 | private GUIStyle m_NodeRectStyle; 29 | 30 | private static readonly int s_ActiveNodeThickness = 2; 31 | private static readonly int s_SelectedNodeThickness = 4; 32 | private static readonly Color s_ActiveNodeColor = Color.white; 33 | private static readonly Color s_SelectedNodeColor = Color.yellow; 34 | 35 | private readonly Dictionary m_LegendForType = new Dictionary(); 36 | 37 | private Node m_SelectedNode; 38 | 39 | private Texture2D m_ColorBar; 40 | Vector2 m_ScrollPos; 41 | 42 | private struct NodeTypeLegend 43 | { 44 | public Color color; 45 | public string label; 46 | } 47 | 48 | public DefaultGraphRenderer() 49 | { 50 | InitializeStyles(); 51 | } 52 | 53 | public void Reset() 54 | { 55 | m_SelectedNode = null; 56 | } 57 | 58 | public void Draw(IGraphLayout graphLayout, Rect drawingArea) 59 | { 60 | GraphSettings defaults; 61 | defaults.maximumNormalizedNodeSize = s_DefaultMaximumNormalizedNodeSize; 62 | defaults.maximumNodeSizeInPixels = s_DefaultMaximumNodeSizeInPixels; 63 | defaults.aspectRatio = s_DefaultAspectRatio; 64 | defaults.showInspector = true; 65 | defaults.showLegend = true; 66 | Draw(graphLayout, drawingArea, defaults); 67 | } 68 | 69 | public void Draw(IGraphLayout graphLayout, Rect totalDrawingArea, GraphSettings graphSettings) 70 | { 71 | var legendArea = new Rect(); 72 | var drawingArea = new Rect(totalDrawingArea); 73 | 74 | PrepareLegend(graphLayout.vertices); 75 | 76 | if (graphSettings.showInspector) 77 | { 78 | legendArea = new Rect(totalDrawingArea) 79 | { 80 | width = Mathf.Max(EstimateLegendWidth(), drawingArea.width * 0.25f) + s_BorderSize * 2 81 | }; 82 | 83 | legendArea.x = drawingArea.xMax - legendArea.width; 84 | drawingArea.width -= legendArea.width; // + s_BorderSize; 85 | 86 | DrawLegend(graphSettings, legendArea); 87 | } 88 | 89 | if (m_SelectedNode != null) 90 | { 91 | Event currentEvent = Event.current; 92 | if (currentEvent.type == EventType.MouseUp && currentEvent.button == 0) 93 | { 94 | Vector2 mousePos = currentEvent.mousePosition; 95 | if (drawingArea.Contains(mousePos)) 96 | { 97 | m_SelectedNode = null; 98 | 99 | if (nodeClicked != null) 100 | nodeClicked(m_SelectedNode); 101 | } 102 | } 103 | } 104 | 105 | DrawGraph(graphLayout, drawingArea, graphSettings); 106 | } 107 | 108 | private void InitializeStyles() 109 | { 110 | m_LegendLabelStyle = new GUIStyle(GUI.skin.label) 111 | { 112 | margin = { top = 0 }, 113 | alignment = TextAnchor.UpperLeft 114 | }; 115 | 116 | m_NodeRectStyle = new GUIStyle 117 | { 118 | normal = 119 | { 120 | background = (Texture2D)Resources.Load("Node"), 121 | textColor = Color.black, 122 | }, 123 | border = new RectOffset(10, 10, 10, 10), 124 | alignment = TextAnchor.MiddleCenter, 125 | wordWrap = true, 126 | clipping = TextClipping.Clip 127 | }; 128 | 129 | m_SubTitleStyle = EditorStyles.boldLabel; 130 | 131 | m_InspectorStyle = new GUIStyle 132 | { 133 | normal = 134 | { 135 | textColor = Color.white, 136 | }, 137 | richText = true, 138 | alignment = TextAnchor.MiddleLeft, 139 | wordWrap = true, 140 | clipping = TextClipping.Clip 141 | }; 142 | } 143 | 144 | private void PrepareLegend(IEnumerable vertices) 145 | { 146 | m_LegendForType.Clear(); 147 | foreach (Vertex v in vertices) 148 | { 149 | if (v.node == null) 150 | continue; 151 | 152 | string nodeType = v.node.GetContentTypeName(); 153 | 154 | if (m_LegendForType.ContainsKey(nodeType)) 155 | continue; 156 | 157 | m_LegendForType[nodeType] = new NodeTypeLegend 158 | { 159 | label = v.node.GetContentTypeShortName(), 160 | color = v.node.GetColor() 161 | }; 162 | } 163 | } 164 | 165 | private float EstimateLegendWidth() 166 | { 167 | float legendWidth = 0; 168 | foreach (NodeTypeLegend legend in m_LegendForType.Values) 169 | { 170 | legendWidth = Mathf.Max(legendWidth, GUI.skin.label.CalcSize(new GUIContent(legend.label)).x); 171 | } 172 | 173 | legendWidth += s_LegendFixedOverheadWidth; 174 | return legendWidth; 175 | } 176 | 177 | public void DrawRect(Rect rect, Color color, string text, bool active, bool selected = false) 178 | { 179 | var originalColor = GUI.color; 180 | 181 | if (selected) 182 | { 183 | GUI.color = s_SelectedNodeColor; 184 | float t = s_SelectedNodeThickness + (active ? s_ActiveNodeThickness : 0.0f); 185 | GUI.Box(new Rect(rect.x - t, rect.y - t, rect.width + 2 * t, rect.height + 2 * t), 186 | string.Empty, m_NodeRectStyle); 187 | } 188 | 189 | if (active) 190 | { 191 | GUI.color = s_ActiveNodeColor; 192 | GUI.Box(new Rect(rect.x - s_ActiveNodeThickness, rect.y - s_ActiveNodeThickness, 193 | rect.width + 2 * s_ActiveNodeThickness, rect.height + 2 * s_ActiveNodeThickness), 194 | string.Empty, m_NodeRectStyle); 195 | } 196 | 197 | // Body + Text 198 | GUI.color = color; 199 | m_NodeRectStyle.fontSize = ComputeFontSize(rect.size, text); 200 | GUI.Box(rect, text, m_NodeRectStyle); 201 | 202 | GUI.color = originalColor; 203 | } 204 | 205 | private void DrawLegend(GraphSettings graphSettings, Rect legendArea) 206 | { 207 | EditorGUI.DrawRect(legendArea, s_LegendBackground); 208 | 209 | // Add a border around legend area 210 | legendArea.x += s_BorderSize; 211 | legendArea.width -= s_BorderSize * 2; 212 | legendArea.y += s_BorderSize; 213 | legendArea.height -= s_BorderSize * 2; 214 | 215 | GUILayout.BeginArea(legendArea); 216 | GUILayout.BeginVertical(); 217 | 218 | if (graphSettings.showInspector) 219 | { 220 | GUILayout.Label("Inspector", m_SubTitleStyle); 221 | 222 | if (m_SelectedNode != null) 223 | { 224 | using (var scrollView = new EditorGUILayout.ScrollViewScope(m_ScrollPos)) 225 | { 226 | m_ScrollPos = scrollView.scrollPosition; 227 | GUILayout.Label(m_SelectedNode.ToString(), m_InspectorStyle); 228 | } 229 | } 230 | else 231 | { 232 | GUILayout.Label("Click on a node\nto display its details."); 233 | } 234 | } 235 | 236 | GUILayout.FlexibleSpace(); 237 | 238 | if (graphSettings.showLegend) 239 | { 240 | GUILayout.Label("Legend", m_SubTitleStyle); 241 | 242 | foreach (var pair in m_LegendForType) 243 | { 244 | DrawLegendEntry(pair.Value.color, pair.Value.label, false); 245 | } 246 | 247 | DrawLegendEntry(Color.gray, "Playing", true); 248 | 249 | GUILayout.Space(20); 250 | 251 | GUILayout.Label("Edge weight", m_SubTitleStyle); 252 | GUILayout.BeginHorizontal(); 253 | GUILayout.Label("0"); 254 | GUILayout.FlexibleSpace(); 255 | GUILayout.Label("1"); 256 | GUILayout.EndHorizontal(); 257 | 258 | DrawEdgeWeightColorBar(legendArea.width); 259 | 260 | GUILayout.Space(20); 261 | } 262 | 263 | GUILayout.EndVertical(); 264 | GUILayout.EndArea(); 265 | } 266 | 267 | private void DrawLegendEntry(Color color, string label, bool active) 268 | { 269 | GUILayout.Space(5); 270 | GUILayout.BeginHorizontal(GUILayout.Height(20)); 271 | 272 | Rect legendIconRect = GUILayoutUtility.GetRect(1, 1, GUILayout.Width(20), GUILayout.Height(20)); 273 | DrawRect(legendIconRect, color, string.Empty, active); 274 | 275 | GUILayout.Label(label, m_LegendLabelStyle); 276 | 277 | GUILayout.EndHorizontal(); 278 | } 279 | 280 | private void DrawEdgeWeightColorBar(float width) 281 | { 282 | const int nbLevels = 64; 283 | 284 | if (m_ColorBar == null) 285 | { 286 | m_ColorBar = new Texture2D(nbLevels, 1) 287 | { 288 | wrapMode = TextureWrapMode.Clamp 289 | }; 290 | 291 | var cols = m_ColorBar.GetPixels(); 292 | for (int x = 0; x < nbLevels; x++) 293 | { 294 | Color c = Color.Lerp(s_EdgeColorMin, s_EdgeColorMax, (float)x / nbLevels); 295 | cols[x] = c; 296 | } 297 | 298 | m_ColorBar.SetPixels(cols); 299 | m_ColorBar.Apply(false); 300 | } 301 | 302 | const int colorbarHeight = 20; 303 | GUI.DrawTexture(GUILayoutUtility.GetRect(width, colorbarHeight), m_ColorBar); 304 | } 305 | 306 | // Draw the graph and returns the selected Node if there's any. 307 | private void DrawGraph(IGraphLayout graphLayout, Rect drawingArea, GraphSettings graphSettings) 308 | { 309 | // add border, except on right-hand side where the legend will provide necessary padding 310 | drawingArea = new Rect(drawingArea.x + s_BorderSize, 311 | drawingArea.y + s_BorderSize, 312 | drawingArea.width - s_BorderSize * 2, 313 | drawingArea.height - s_BorderSize * 2); 314 | 315 | var b = new Bounds(Vector3.zero, Vector3.zero); 316 | foreach (Vertex v in graphLayout.vertices) 317 | { 318 | b.Encapsulate(new Vector3(v.position.x, v.position.y, 0.0f)); 319 | } 320 | 321 | // Increase b by maximum node size (since b is measured between node centers) 322 | b.Expand(new Vector3(graphSettings.maximumNormalizedNodeSize, graphSettings.maximumNormalizedNodeSize, 0)); 323 | 324 | var scale = new Vector2(drawingArea.width / b.size.x, drawingArea.height / b.size.y); 325 | var offset = new Vector2(-b.min.x, -b.min.y); 326 | 327 | Vector2 nodeSize = ComputeNodeSize(scale, graphSettings); 328 | 329 | GUI.BeginGroup(drawingArea); 330 | 331 | foreach (var e in graphLayout.edges) 332 | { 333 | Vector2 v0 = ScaleVertex(e.source.position, offset, scale); 334 | Vector2 v1 = ScaleVertex(e.destination.position, offset, scale); 335 | Node node = e.source.node; 336 | 337 | if (graphLayout.leftToRight) 338 | DrawEdge(v1, v0, node.weight); 339 | else 340 | DrawEdge(v0, v1, node.weight); 341 | } 342 | 343 | Event currentEvent = Event.current; 344 | 345 | bool oldSelectionFound = false; 346 | Node newSelectedNode = null; 347 | 348 | foreach (Vertex v in graphLayout.vertices) 349 | { 350 | Vector2 nodeCenter = ScaleVertex(v.position, offset, scale) - nodeSize / 2; 351 | var nodeRect = new Rect(nodeCenter.x, nodeCenter.y, nodeSize.x, nodeSize.y); 352 | 353 | bool clicked = false; 354 | if (currentEvent.type == EventType.MouseUp && currentEvent.button == 0) 355 | { 356 | Vector2 mousePos = currentEvent.mousePosition; 357 | if (nodeRect.Contains(mousePos)) 358 | { 359 | clicked = true; 360 | currentEvent.Use(); 361 | } 362 | } 363 | 364 | bool currentSelection = (m_SelectedNode != null) 365 | && v.node.content.Equals(m_SelectedNode.content); // Make sure to use Equals() and not == to call any overriden comparison operator in the content type. 366 | 367 | DrawNode(nodeRect, v.node, currentSelection || clicked); 368 | 369 | if (currentSelection) 370 | { 371 | // Previous selection still there. 372 | oldSelectionFound = true; 373 | } 374 | else if (clicked) 375 | { 376 | // Just Selected a new node. 377 | newSelectedNode = v.node; 378 | } 379 | } 380 | 381 | if (newSelectedNode != null) 382 | { 383 | m_SelectedNode = newSelectedNode; 384 | 385 | if (nodeClicked != null) 386 | nodeClicked(m_SelectedNode); 387 | } 388 | else if (!oldSelectionFound) 389 | { 390 | m_SelectedNode = null; 391 | } 392 | 393 | GUI.EndGroup(); 394 | } 395 | 396 | // Apply node constraints to node size 397 | private static Vector2 ComputeNodeSize(Vector2 scale, GraphSettings graphSettings) 398 | { 399 | var extraTickness = (s_SelectedNodeThickness + s_ActiveNodeThickness) * 2.0f; 400 | var nodeSize = new Vector2(graphSettings.maximumNormalizedNodeSize * scale.x - extraTickness, 401 | graphSettings.maximumNormalizedNodeSize * scale.y - extraTickness); 402 | 403 | // Adjust aspect ratio after scaling 404 | float currentAspectRatio = nodeSize.x / nodeSize.y; 405 | 406 | if (currentAspectRatio > graphSettings.aspectRatio) 407 | { 408 | // Shrink x dimension 409 | nodeSize.x = nodeSize.y * graphSettings.aspectRatio; 410 | } 411 | else 412 | { 413 | // Shrink y dimension 414 | nodeSize.y = nodeSize.x / graphSettings.aspectRatio; 415 | } 416 | 417 | // If node size is still too big, scale down 418 | if (nodeSize.x > graphSettings.maximumNodeSizeInPixels) 419 | { 420 | nodeSize *= graphSettings.maximumNodeSizeInPixels / nodeSize.x; 421 | } 422 | 423 | if (nodeSize.y > graphSettings.maximumNodeSizeInPixels) 424 | { 425 | nodeSize *= graphSettings.maximumNodeSizeInPixels / nodeSize.y; 426 | } 427 | 428 | return nodeSize; 429 | } 430 | 431 | private static int ComputeFontSize(Vector2 nodeSize, string text) 432 | { 433 | if (string.IsNullOrEmpty(text)) 434 | return s_NodeMaxFontSize; 435 | 436 | string[] words = text.Split('\n'); 437 | int nbLignes = words.Length; 438 | int longuestWord = words.Max(s => s.Length); 439 | 440 | // Approximate the text rectangle size using magic values. 441 | int width = longuestWord * (int)(0.8f * s_NodeMaxFontSize); 442 | int height = nbLignes * (int)(1.5f * s_NodeMaxFontSize); 443 | 444 | float factor = Math.Min(nodeSize.x / width, nodeSize.y / height); 445 | 446 | factor = Mathf.Clamp01(factor); 447 | 448 | return Mathf.CeilToInt(s_NodeMaxFontSize * factor); 449 | } 450 | 451 | // Convert vertex position from normalized layout to render rect 452 | private static Vector2 ScaleVertex(Vector2 v, Vector2 offset, Vector2 scaleFactor) 453 | { 454 | return new Vector2((v.x + offset.x) * scaleFactor.x, (v.y + offset.y) * scaleFactor.y); 455 | } 456 | 457 | // Draw a node an return true if it has been clicked 458 | private void DrawNode(Rect nodeRect, Node node, bool selected) 459 | { 460 | string nodeType = node.GetContentTypeName(); 461 | NodeTypeLegend nodeTypeLegend = m_LegendForType[nodeType]; 462 | string formattedLabel = Regex.Replace(nodeTypeLegend.label, "((? GetChildren(Node node) 33 | { 34 | // Children are the Playable Inputs. 35 | if(node is PlayableNode) 36 | return GetInputsFromPlayableNode((Playable)node.content); 37 | if(node is PlayableOutputNode) 38 | return GetInputsFromPlayableOutputNode((PlayableOutput)node.content); 39 | 40 | return new List(); 41 | } 42 | 43 | private List GetInputsFromPlayableNode(Playable h) 44 | { 45 | var inputs = new List(); 46 | if (h.IsValid()) 47 | { 48 | for (int port = 0; port < h.GetInputCount(); ++port) 49 | { 50 | Playable playable = h.GetInput(port); 51 | if (playable.IsValid()) 52 | { 53 | float weight = h.GetInputWeight(port); 54 | Node node = CreateNodeFromPlayable(playable, weight); 55 | inputs.Add(node); 56 | } 57 | } 58 | } 59 | return inputs; 60 | } 61 | 62 | private List GetInputsFromPlayableOutputNode(PlayableOutput h) 63 | { 64 | var inputs = new List(); 65 | if (h.IsOutputValid()) 66 | { 67 | Playable playable = h.GetSourcePlayable(); 68 | if (playable.IsValid()) 69 | { 70 | Node node = CreateNodeFromPlayable(playable, 1); 71 | inputs.Add(node); 72 | } 73 | } 74 | return inputs; 75 | } 76 | 77 | private PlayableNode CreateNodeFromPlayable(Playable h, float weight) 78 | { 79 | var type = h.GetPlayableType(); 80 | if (type == typeof(AnimationClipPlayable)) 81 | return new AnimationClipPlayableNode(h, weight); 82 | if (type == typeof(AnimationLayerMixerPlayable)) 83 | return new AnimationLayerMixerPlayableNode(h, weight); 84 | return new PlayableNode(h, weight); 85 | } 86 | 87 | private PlayableOutputNode CreateNodeFromPlayableOutput(PlayableOutput h) 88 | { 89 | return new PlayableOutputNode(h); 90 | } 91 | } 92 | } 93 | -------------------------------------------------------------------------------- /Assets/Tools/PlayableGraphVisualizer/Editor/PlayableGraphVisualizer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6916b006634cd21469ca63e6425c528b 3 | timeCreated: 1478627468 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Tools/PlayableGraphVisualizer/Editor/PlayableGraphVisualizerWindow.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Linq; 3 | using UnityEngine; 4 | using UnityEngine.Playables; 5 | using UnityEditor; 6 | 7 | namespace GraphVisualizer 8 | { 9 | public class PlayableGraphVisualizerWindow : EditorWindow, IHasCustomMenu 10 | { 11 | private IGraphRenderer m_Renderer; 12 | private IGraphLayout m_Layout; 13 | 14 | private List m_Graphs; 15 | private PlayableGraph m_CurrentGraph; 16 | private GraphSettings m_GraphSettings; 17 | 18 | #region Configuration 19 | 20 | private static readonly float s_ToolbarHeight = 17f; 21 | private static readonly float s_DefaultMaximumNormalizedNodeSize = 0.8f; 22 | private static readonly float s_DefaultMaximumNodeSizeInPixels = 100.0f; 23 | private static readonly float s_DefaultAspectRatio = 1.5f; 24 | 25 | #endregion 26 | 27 | private PlayableGraphVisualizerWindow() 28 | { 29 | m_GraphSettings.maximumNormalizedNodeSize = s_DefaultMaximumNormalizedNodeSize; 30 | m_GraphSettings.maximumNodeSizeInPixels = s_DefaultMaximumNodeSizeInPixels; 31 | m_GraphSettings.aspectRatio = s_DefaultAspectRatio; 32 | m_GraphSettings.showInspector = true; 33 | m_GraphSettings.showLegend = true; 34 | } 35 | 36 | [MenuItem("Window/Analysis/PlayableGraph Visualizer")] 37 | public static void ShowWindow() 38 | { 39 | GetWindow("PlayableGraph Visualizer"); 40 | } 41 | 42 | private PlayableGraph GetSelectedGraphInToolBar(List graphs, PlayableGraph currentGraph) 43 | { 44 | EditorGUILayout.BeginHorizontal(EditorStyles.toolbar, GUILayout.Width(position.width)); 45 | 46 | List options = new List(graphs.Count); 47 | foreach (var graph in graphs) 48 | { 49 | string name = graph.GetEditorName(); 50 | options.Add(name.Length != 0 ? name : "[Unnamed]"); 51 | } 52 | 53 | int currentSelection = graphs.IndexOf(currentGraph); 54 | int newSelection = EditorGUILayout.Popup(currentSelection != -1 ? currentSelection : 0, options.ToArray(), GUILayout.Width(200)); 55 | 56 | PlayableGraph selectedGraph = new PlayableGraph(); 57 | if (newSelection != -1) 58 | selectedGraph = graphs[newSelection]; 59 | 60 | GUILayout.FlexibleSpace(); 61 | EditorGUILayout.EndHorizontal(); 62 | 63 | return selectedGraph; 64 | } 65 | 66 | private static void ShowMessage(string msg) 67 | { 68 | GUILayout.BeginVertical(); 69 | GUILayout.FlexibleSpace(); 70 | 71 | GUILayout.BeginHorizontal(); 72 | GUILayout.FlexibleSpace(); 73 | 74 | GUILayout.Label(msg); 75 | 76 | GUILayout.FlexibleSpace(); 77 | GUILayout.EndHorizontal(); 78 | 79 | GUILayout.FlexibleSpace(); 80 | GUILayout.EndVertical(); 81 | } 82 | 83 | void Update() 84 | { 85 | // If in Play mode, refresh the graph each update. 86 | if (EditorApplication.isPlaying) 87 | Repaint(); 88 | } 89 | 90 | void OnInspectorUpdate() 91 | { 92 | // If not in Play mode, refresh the graph less frequently. 93 | if (!EditorApplication.isPlaying) 94 | Repaint(); 95 | } 96 | 97 | void OnEnable() 98 | { 99 | m_Graphs = new List(UnityEditor.Playables.Utility.GetAllGraphs()); 100 | 101 | UnityEditor.Playables.Utility.graphCreated += OnGraphCreated; 102 | UnityEditor.Playables.Utility.destroyingGraph += OnDestroyingGraph; 103 | } 104 | 105 | void OnGraphCreated(PlayableGraph graph) 106 | { 107 | if (!m_Graphs.Contains(graph)) 108 | m_Graphs.Add(graph); 109 | } 110 | 111 | void OnDestroyingGraph(PlayableGraph graph) 112 | { 113 | m_Graphs.Remove(graph); 114 | } 115 | 116 | void OnDisable() 117 | { 118 | UnityEditor.Playables.Utility.graphCreated -= OnGraphCreated; 119 | UnityEditor.Playables.Utility.destroyingGraph -= OnDestroyingGraph; 120 | } 121 | 122 | void OnGUI() 123 | { 124 | // Early out if there is no graphs. 125 | var selectedGraphs = GetGraphList(); 126 | if (selectedGraphs.Count == 0) 127 | { 128 | ShowMessage("No PlayableGraph in the scene"); 129 | return; 130 | } 131 | 132 | GUILayout.BeginVertical(); 133 | m_CurrentGraph = GetSelectedGraphInToolBar(selectedGraphs, m_CurrentGraph); 134 | GUILayout.EndVertical(); 135 | 136 | if (!m_CurrentGraph.IsValid()) 137 | { 138 | ShowMessage("Selected PlayableGraph is invalid"); 139 | return; 140 | } 141 | 142 | var graph = new PlayableGraphVisualizer(m_CurrentGraph); 143 | graph.Refresh(); 144 | 145 | if (graph.IsEmpty()) 146 | { 147 | ShowMessage("Selected PlayableGraph is empty"); 148 | return; 149 | } 150 | 151 | if (m_Layout == null) 152 | m_Layout = new ReingoldTilford(); 153 | 154 | m_Layout.CalculateLayout(graph); 155 | 156 | var graphRect = new Rect(0, s_ToolbarHeight, position.width, position.height - s_ToolbarHeight); 157 | 158 | if (m_Renderer == null) 159 | m_Renderer = new DefaultGraphRenderer(); 160 | 161 | m_Renderer.Draw(m_Layout, graphRect, m_GraphSettings); 162 | } 163 | 164 | private List GetGraphList() 165 | { 166 | var selectedGraphs = new List(); 167 | foreach (var clientGraph in GraphVisualizerClient.GetGraphs()) 168 | { 169 | if (clientGraph.IsValid()) 170 | selectedGraphs.Add(clientGraph); 171 | } 172 | 173 | if (selectedGraphs.Count == 0) 174 | selectedGraphs = m_Graphs.ToList(); 175 | 176 | return selectedGraphs; 177 | } 178 | 179 | #region Custom_Menu 180 | 181 | public virtual void AddItemsToMenu(GenericMenu menu) 182 | { 183 | menu.AddItem(new GUIContent("Inspector"), m_GraphSettings.showInspector, ToggleInspector); 184 | menu.AddItem(new GUIContent("Legend"), m_GraphSettings.showLegend, ToggleLegend); 185 | } 186 | 187 | void ToggleInspector() 188 | { 189 | m_GraphSettings.showInspector = !m_GraphSettings.showInspector; 190 | } 191 | 192 | void ToggleLegend() 193 | { 194 | m_GraphSettings.showLegend = !m_GraphSettings.showLegend; 195 | } 196 | 197 | #endregion 198 | } 199 | } 200 | -------------------------------------------------------------------------------- /Assets/Tools/PlayableGraphVisualizer/Editor/PlayableGraphVisualizerWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0d5877bb4ffe3464b96f021ac399d1a9 3 | timeCreated: 1429717867 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Tools/PlayableGraphVisualizer/Editor/PlayableNodes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6de1d78f98164fba9586bb01c76f0633 3 | timeCreated: 1532111318 -------------------------------------------------------------------------------- /Assets/Tools/PlayableGraphVisualizer/Editor/PlayableNodes/AnimationClipPlayableNode.cs: -------------------------------------------------------------------------------- 1 | using System.Text; 2 | using UnityEngine.Animations; 3 | using UnityEngine.Playables; 4 | 5 | namespace GraphVisualizer 6 | { 7 | public class AnimationClipPlayableNode : PlayableNode 8 | { 9 | public AnimationClipPlayableNode(Playable content, float weight = 1.0f) 10 | : base(content, weight) 11 | { 12 | } 13 | 14 | public override string ToString() 15 | { 16 | var sb = new StringBuilder(); 17 | 18 | sb.AppendLine(base.ToString()); 19 | 20 | var p = (Playable) content; 21 | if (p.IsValid()) 22 | { 23 | var acp = (AnimationClipPlayable) p; 24 | var clip = acp.GetAnimationClip(); 25 | sb.AppendLine(InfoString("Clip", clip ? clip.name : "(none)")); 26 | if (clip) 27 | { 28 | sb.AppendLine(InfoString("ClipLength", clip.length)); 29 | } 30 | sb.AppendLine(InfoString("ApplyFootIK", acp.GetApplyFootIK())); 31 | sb.AppendLine(InfoString("ApplyPlayableIK", acp.GetApplyPlayableIK())); 32 | } 33 | 34 | return sb.ToString(); 35 | } 36 | } 37 | } -------------------------------------------------------------------------------- /Assets/Tools/PlayableGraphVisualizer/Editor/PlayableNodes/AnimationClipPlayableNode.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c8a64993dff7471c82e0857c60d771f9 3 | timeCreated: 1532111483 -------------------------------------------------------------------------------- /Assets/Tools/PlayableGraphVisualizer/Editor/PlayableNodes/AnimationLayerMixerPlayableNode.cs: -------------------------------------------------------------------------------- 1 | using System.Text; 2 | using UnityEngine.Animations; 3 | using UnityEngine.Playables; 4 | 5 | namespace GraphVisualizer 6 | { 7 | public class AnimationLayerMixerPlayableNode : PlayableNode 8 | { 9 | public AnimationLayerMixerPlayableNode(Playable content, float weight = 1.0f) 10 | : base(content, weight) 11 | { 12 | } 13 | 14 | public override string ToString() 15 | { 16 | var sb = new StringBuilder(); 17 | 18 | sb.AppendLine(base.ToString()); 19 | 20 | var p = (Playable) content; 21 | if (p.IsValid()) 22 | { 23 | var almp = (AnimationLayerMixerPlayable) p; 24 | for (uint i = 0; i < almp.GetInputCount(); ++i) 25 | sb.AppendLine(InfoString(string.Format("IsLayerAdditive #{0}", i + 1), almp.IsLayerAdditive(i))); 26 | } 27 | 28 | return sb.ToString(); 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /Assets/Tools/PlayableGraphVisualizer/Editor/PlayableNodes/AnimationLayerMixerPlayableNode.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a7134908431664a5f93c280d29638fe6 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Tools/PlayableGraphVisualizer/Editor/PlayableNodes/PlayableNode.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Text; 3 | using UnityEngine.Playables; 4 | 5 | namespace GraphVisualizer 6 | { 7 | public class PlayableNode : SharedPlayableNode 8 | { 9 | public PlayableNode(Playable content, float weight = 1.0f) 10 | : base(content, weight, content.GetPlayState() == PlayState.Playing) 11 | { 12 | } 13 | 14 | public override Type GetContentType() 15 | { 16 | Playable p = Playable.Null; 17 | try 18 | { 19 | p = (Playable) content; 20 | } 21 | catch 22 | { 23 | // Ignore. 24 | } 25 | 26 | return p.IsValid() ? p.GetPlayableType() : null; 27 | } 28 | 29 | public override string GetContentTypeShortName() 30 | { 31 | // Remove the extra Playable at the end of the Playable types. 32 | string shortName = base.GetContentTypeShortName(); 33 | string cleanName = RemoveFromEnd(shortName, "Playable"); 34 | return string.IsNullOrEmpty(cleanName) ? shortName : cleanName; 35 | } 36 | 37 | public override string ToString() 38 | { 39 | var sb = new StringBuilder(); 40 | 41 | sb.AppendLine(InfoString("Handle", GetContentTypeShortName())); 42 | 43 | var p = (Playable) content; 44 | sb.AppendLine(InfoString("IsValid", p.IsValid())); 45 | if (p.IsValid()) 46 | { 47 | sb.AppendLine(InfoString("IsDone", p.IsDone())); 48 | sb.AppendLine(InfoString("InputCount", p.GetInputCount())); 49 | sb.AppendLine(InfoString("OutputCount", p.GetOutputCount())); 50 | sb.AppendLine(InfoString("PlayState", p.GetPlayState())); 51 | sb.AppendLine(InfoString("Speed", p.GetSpeed())); 52 | sb.AppendLine(InfoString("Duration", p.GetDuration())); 53 | sb.AppendLine(InfoString("Time", p.GetTime())); 54 | } 55 | 56 | return sb.ToString(); 57 | } 58 | } 59 | } -------------------------------------------------------------------------------- /Assets/Tools/PlayableGraphVisualizer/Editor/PlayableNodes/PlayableNode.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0e774d676f04404684f86d6345ff0db4 3 | timeCreated: 1532111427 -------------------------------------------------------------------------------- /Assets/Tools/PlayableGraphVisualizer/Editor/PlayableNodes/PlayableOutputNode.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Text; 3 | using UnityEngine.Playables; 4 | using UnityEditor.Playables; 5 | 6 | namespace GraphVisualizer 7 | { 8 | public class PlayableOutputNode : SharedPlayableNode 9 | { 10 | public PlayableOutputNode(PlayableOutput content) 11 | : base(content, content.GetWeight(), true) 12 | { 13 | } 14 | 15 | public override Type GetContentType() 16 | { 17 | PlayableOutput po = PlayableOutput.Null; 18 | try 19 | { 20 | po = (PlayableOutput) content; 21 | } 22 | catch 23 | { 24 | // Ignore. 25 | } 26 | 27 | return po.IsOutputValid() ? po.GetPlayableOutputType() : null; 28 | } 29 | 30 | public override string GetContentTypeShortName() 31 | { 32 | // Remove the extra Playable at the end of the Playable types. 33 | string shortName = base.GetContentTypeShortName(); 34 | string cleanName = RemoveFromEnd(shortName, "PlayableOutput") + "Output"; 35 | return string.IsNullOrEmpty(cleanName) ? shortName : cleanName; 36 | } 37 | 38 | public override string ToString() 39 | { 40 | var sb = new StringBuilder(); 41 | 42 | sb.AppendLine(InfoString("Handle", GetContentTypeShortName())); 43 | 44 | var po = (PlayableOutput) content; 45 | if (po.IsOutputValid()) 46 | { 47 | #if UNITY_2019_1_OR_NEWER 48 | sb.AppendLine(InfoString("Name", po.GetEditorName())); 49 | #endif 50 | sb.AppendLine(InfoString("IsValid", po.IsOutputValid())); 51 | sb.AppendLine(InfoString("Weight", po.GetWeight())); 52 | #if UNITY_2018_2_OR_NEWER 53 | sb.AppendLine(InfoString("SourceOutputPort", po.GetSourceOutputPort())); 54 | #else 55 | sb.AppendLine(InfoString("SourceInputPort", po.GetSourceInputPort())); 56 | #endif 57 | } 58 | 59 | return sb.ToString(); 60 | } 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /Assets/Tools/PlayableGraphVisualizer/Editor/PlayableNodes/PlayableOutputNode.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c833ea0f9e2c4e728025d542f53eb505 3 | timeCreated: 1532111540 -------------------------------------------------------------------------------- /Assets/Tools/PlayableGraphVisualizer/Editor/PlayableNodes/SharedPlayableNode.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace GraphVisualizer 4 | { 5 | public class SharedPlayableNode : Node 6 | { 7 | public SharedPlayableNode(object content, float weight = 1.0f, bool active = false) 8 | : base(content, weight, active) 9 | { 10 | } 11 | 12 | protected static string InfoString(string key, double value) 13 | { 14 | if (Math.Abs(value) < 100000.0) 15 | return string.Format("{0}: {1:#.###}", key, value); 16 | if (value == double.MaxValue) 17 | return string.Format("{0}: +Inf", key); 18 | if (value == double.MinValue) 19 | return string.Format("{0}: -Inf", key); 20 | return string.Format("{0}: {1:E4}", key, value); 21 | } 22 | 23 | protected static string InfoString(string key, int value) 24 | { 25 | return string.Format("{0}: {1:D}", key, value); 26 | } 27 | 28 | protected static string InfoString(string key, object value) 29 | { 30 | return "" + key + ": " + (value ?? "(none)"); 31 | } 32 | 33 | protected static string RemoveFromEnd(string str, string suffix) 34 | { 35 | if (str.EndsWith(suffix)) 36 | { 37 | return str.Substring(0, str.Length - suffix.Length); 38 | } 39 | 40 | return str; 41 | } 42 | } 43 | } -------------------------------------------------------------------------------- /Assets/Tools/PlayableGraphVisualizer/Editor/PlayableNodes/SharedPlayableNode.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6c8170737f3d421585799e0ea80b4549 3 | timeCreated: 1532111367 -------------------------------------------------------------------------------- /Assets/Tools/PlayableGraphVisualizer/Editor/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 45ead97298b414d48a80edc5808f19d8 3 | folderAsset: yes 4 | timeCreated: 1478547578 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Tools/PlayableGraphVisualizer/Editor/Resources/Node.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/TimelineMarkerCustomization/c95d8f00ed7d3b27403446d133c841853d018108/Assets/Tools/PlayableGraphVisualizer/Editor/Resources/Node.png -------------------------------------------------------------------------------- /Assets/Tools/PlayableGraphVisualizer/Editor/Resources/Node.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3fa46d96b130e304983151d9c178b928 3 | timeCreated: 1478701872 4 | licenseType: Pro 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | serializedVersion: 4 8 | mipmaps: 9 | mipMapMode: 0 10 | enableMipMap: 1 11 | sRGBTexture: 1 12 | linearTexture: 0 13 | fadeOut: 0 14 | borderMipMap: 0 15 | mipMapFadeDistanceStart: 1 16 | mipMapFadeDistanceEnd: 3 17 | bumpmap: 18 | convertToNormalMap: 0 19 | externalNormalMap: 0 20 | heightScale: 0.25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 6 25 | cubemapConvolution: 0 26 | seamlessCubemap: 0 27 | textureFormat: 1 28 | maxTextureSize: 2048 29 | textureSettings: 30 | filterMode: -1 31 | aniso: -1 32 | mipBias: -1 33 | wrapMode: -1 34 | nPOTScale: 1 35 | lightmap: 0 36 | compressionQuality: 50 37 | spriteMode: 0 38 | spriteExtrude: 1 39 | spriteMeshType: 1 40 | alignment: 0 41 | spritePivot: {x: 0.5, y: 0.5} 42 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 43 | spritePixelsToUnits: 100 44 | alphaUsage: 1 45 | alphaIsTransparency: 0 46 | spriteTessellationDetail: -1 47 | textureType: 0 48 | textureShape: 1 49 | maxTextureSizeSet: 0 50 | compressionQualitySet: 0 51 | textureFormatSet: 0 52 | platformSettings: 53 | - buildTarget: DefaultTexturePlatform 54 | maxTextureSize: 2048 55 | textureFormat: -1 56 | textureCompression: 1 57 | compressionQuality: 50 58 | crunchedCompression: 0 59 | allowsAlphaSplitting: 0 60 | overridden: 0 61 | spriteSheet: 62 | serializedVersion: 2 63 | sprites: [] 64 | outline: [] 65 | spritePackingTag: 66 | userData: 67 | assetBundleName: 68 | assetBundleVariant: 69 | -------------------------------------------------------------------------------- /Assets/Tools/PlayableGraphVisualizer/Editor/Unity.PlayableGraphVisualizer.Editor.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Unity.PlayableGraphVisualizer.Editor", 3 | "references": [ 4 | "Unity.PlayableGraphVisualizer" 5 | ], 6 | "includePlatforms": [ 7 | "Editor" 8 | ], 9 | "excludePlatforms": [] 10 | } 11 | -------------------------------------------------------------------------------- /Assets/Tools/PlayableGraphVisualizer/Editor/Unity.PlayableGraphVisualizer.Editor.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2702b94ed25b25fdda2226e5c974e9e8 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Tools/PlayableGraphVisualizer/Runtime.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ca693c90f4268ed46a9c9d31dd4d03d8 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Tools/PlayableGraphVisualizer/Runtime/GraphVisualizerClient.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using UnityEngine.Playables; 3 | 4 | // Bridge between runtime and editor code: the graph created in runtime code can call GraphVisualizerClient.Show(...) 5 | // and the EditorWindow will register itself with the client to display any available graph. 6 | public class GraphVisualizerClient 7 | { 8 | private static GraphVisualizerClient s_Instance; 9 | private List m_Graphs = new List(); 10 | 11 | public static GraphVisualizerClient instance 12 | { 13 | get 14 | { 15 | if (s_Instance == null) 16 | s_Instance = new GraphVisualizerClient(); 17 | return s_Instance; 18 | } 19 | } 20 | 21 | ~GraphVisualizerClient() 22 | { 23 | m_Graphs.Clear(); 24 | } 25 | 26 | public static void Show(PlayableGraph graph) 27 | { 28 | if (!instance.m_Graphs.Contains(graph)) 29 | { 30 | instance.m_Graphs.Add(graph); 31 | } 32 | } 33 | 34 | public static void Hide(PlayableGraph graph) 35 | { 36 | if (instance.m_Graphs.Contains(graph)) 37 | { 38 | instance.m_Graphs.Remove(graph); 39 | } 40 | } 41 | 42 | public static void ClearGraphs() 43 | { 44 | instance.m_Graphs.Clear(); 45 | } 46 | 47 | public static IEnumerable GetGraphs() 48 | { 49 | return instance.m_Graphs; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /Assets/Tools/PlayableGraphVisualizer/Runtime/GraphVisualizerClient.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9114e458dd675a840b81a836551082c4 3 | timeCreated: 1432743245 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Tools/PlayableGraphVisualizer/Runtime/Unity.PlayableGraphVisualizer.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Unity.PlayableGraphVisualizer", 3 | "references": [], 4 | "includePlatforms": [], 5 | "excludePlatforms": [] 6 | } 7 | -------------------------------------------------------------------------------- /Assets/Tools/PlayableGraphVisualizer/Runtime/Unity.PlayableGraphVisualizer.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d8e7b33ba1e4a89fc8a64b6b1e97a6ac 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Tools/Reload.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Linq; 3 | using System.Reflection; 4 | using UnityEditor; 5 | using UnityEngine; 6 | 7 | static class Utils 8 | { 9 | static Type s_InternalEditorUtility; 10 | static Action s_DomainReload; 11 | static Action s_RepainAllViews; 12 | 13 | static Utils() 14 | { 15 | var editorAssembly = typeof(EditorGUIUtility).Assembly; 16 | s_InternalEditorUtility = editorAssembly.GetTypes().First(t => t.Name == "InternalEditorUtility"); 17 | var domainReload = s_InternalEditorUtility.GetMethod("RequestScriptReload", BindingFlags.Public | BindingFlags.Static); 18 | s_DomainReload = () => domainReload.Invoke(null, new object[0]); 19 | 20 | var repaintAllViews = s_InternalEditorUtility.GetMethod("RequestScriptReload", BindingFlags.Public | BindingFlags.Static); 21 | s_RepainAllViews = () => repaintAllViews.Invoke(null, new object[0]); 22 | } 23 | 24 | [MenuItem("Tools/Reload Styles &r", false, 17000)] 25 | static void ReloadEditorResourcesBundle() 26 | { 27 | Debug.Log("Refreshing..."); 28 | EditorApplication.delayCall += () => 29 | { 30 | AssetDatabase.Refresh(); 31 | s_DomainReload(); 32 | s_RepainAllViews(); 33 | }; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /Assets/Tools/Reload.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6564ccf0736b2124b858e1c32c2ad227 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Docs/jumpMarker.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/TimelineMarkerCustomization/c95d8f00ed7d3b27403446d133c841853d018108/Docs/jumpMarker.gif -------------------------------------------------------------------------------- /Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.ads": "2.0.8", 4 | "com.unity.analytics": "3.3.2", 5 | "com.unity.collab-proxy": "1.2.16", 6 | "com.unity.package-manager-ui": "2.1.2", 7 | "com.unity.purchasing": "2.0.6", 8 | "com.unity.textmeshpro": "2.0.1", 9 | "com.unity.timeline": "1.0.0", 10 | "com.unity.modules.ai": "1.0.0", 11 | "com.unity.modules.animation": "1.0.0", 12 | "com.unity.modules.assetbundle": "1.0.0", 13 | "com.unity.modules.audio": "1.0.0", 14 | "com.unity.modules.cloth": "1.0.0", 15 | "com.unity.modules.director": "1.0.0", 16 | "com.unity.modules.imageconversion": "1.0.0", 17 | "com.unity.modules.imgui": "1.0.0", 18 | "com.unity.modules.jsonserialize": "1.0.0", 19 | "com.unity.modules.particlesystem": "1.0.0", 20 | "com.unity.modules.physics": "1.0.0", 21 | "com.unity.modules.physics2d": "1.0.0", 22 | "com.unity.modules.screencapture": "1.0.0", 23 | "com.unity.modules.terrain": "1.0.0", 24 | "com.unity.modules.terrainphysics": "1.0.0", 25 | "com.unity.modules.tilemap": "1.0.0", 26 | "com.unity.modules.ui": "1.0.0", 27 | "com.unity.modules.uielements": "1.0.0", 28 | "com.unity.modules.umbra": "1.0.0", 29 | "com.unity.modules.unityanalytics": "1.0.0", 30 | "com.unity.modules.unitywebrequest": "1.0.0", 31 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 32 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 33 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 34 | "com.unity.modules.unitywebrequestwww": "1.0.0", 35 | "com.unity.modules.vehicles": "1.0.0", 36 | "com.unity.modules.video": "1.0.0", 37 | "com.unity.modules.vr": "1.0.0", 38 | "com.unity.modules.wind": "1.0.0", 39 | "com.unity.modules.xr": "1.0.0" 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | m_Volume: 1 7 | Rolloff Scale: 1 8 | Doppler Factor: 1 9 | Default Speaker Mode: 2 10 | m_SampleRate: 0 11 | m_DSPBufferSize: 1024 12 | m_VirtualVoiceCount: 512 13 | m_RealVoiceCount: 32 14 | m_SpatializerPlugin: 15 | m_AmbisonicDecoderPlugin: 16 | m_DisableAudio: 0 17 | m_VirtualizeEffects: 1 18 | -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 13 7 | m_Gravity: {x: 0, y: -9.81, z: 0} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_BounceThreshold: 2 10 | m_SleepThreshold: 0.005 11 | m_DefaultContactOffset: 0.01 12 | m_DefaultSolverIterations: 6 13 | m_DefaultSolverVelocityIterations: 1 14 | m_QueriesHitBackfaces: 0 15 | m_QueriesHitTriggers: 1 16 | m_EnableAdaptiveForce: 0 17 | m_ClothInterCollisionDistance: 0 18 | m_ClothInterCollisionStiffness: 0 19 | m_ContactsGeneration: 1 20 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 21 | m_AutoSimulation: 1 22 | m_AutoSyncTransforms: 0 23 | m_ReuseCollisionCallbacks: 0 24 | m_ClothInterCollisionSettingsToggle: 0 25 | m_ClothGravity: {x: 0, y: -9.81, z: 0} 26 | m_ContactPairsMode: 0 27 | m_BroadphaseType: 0 28 | m_WorldBounds: 29 | m_Center: {x: 0, y: 0, z: 0} 30 | m_Extent: {x: 250, y: 250, z: 250} 31 | m_WorldSubdivisions: 8 32 | m_FrictionType: 0 33 | m_EnableEnhancedDeterminism: 0 34 | m_EnableUnifiedHeightmaps: 1 35 | m_DefaultMaxAngularSpeed: 50 36 | -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: [] 8 | m_configObjects: {} 9 | -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 7 7 | m_ExternalVersionControlSupport: Hidden Meta Files 8 | m_SerializationMode: 2 9 | m_LineEndingsForNewScripts: 2 10 | m_DefaultBehaviorMode: 0 11 | m_PrefabRegularEnvironment: {fileID: 0} 12 | m_PrefabUIEnvironment: {fileID: 0} 13 | m_SpritePackerMode: 0 14 | m_SpritePackerPaddingPower: 1 15 | m_EtcTextureCompressorBehavior: 1 16 | m_EtcTextureFastCompressor: 1 17 | m_EtcTextureNormalCompressor: 2 18 | m_EtcTextureBestCompressor: 4 19 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;rsp 20 | m_ProjectGenerationRootNamespace: 21 | m_CollabEditorSettings: 22 | inProgressEnabled: 1 23 | m_EnableTextureStreamingInEditMode: 1 24 | m_EnableTextureStreamingInPlayMode: 1 25 | m_AsyncShaderCompilation: 1 26 | -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 12 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_DeferredReflections: 11 | m_Mode: 1 12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} 13 | m_ScreenSpaceShadows: 14 | m_Mode: 1 15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} 16 | m_LegacyDeferred: 17 | m_Mode: 1 18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 19 | m_DepthNormals: 20 | m_Mode: 1 21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 22 | m_MotionVectors: 23 | m_Mode: 1 24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LightHalo: 26 | m_Mode: 1 27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 28 | m_LensFlare: 29 | m_Mode: 1 30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 31 | m_AlwaysIncludedShaders: 32 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 37 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 38 | - {fileID: 10783, guid: 0000000000000000f000000000000000, type: 0} 39 | m_PreloadedShaders: [] 40 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 41 | type: 0} 42 | m_CustomRenderPipeline: {fileID: 0} 43 | m_TransparencySortMode: 0 44 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 45 | m_DefaultRenderingPath: 1 46 | m_DefaultMobileRenderingPath: 1 47 | m_TierSettings: [] 48 | m_LightmapStripping: 0 49 | m_FogStripping: 0 50 | m_InstancingStripping: 0 51 | m_LightmapKeepPlain: 1 52 | m_LightmapKeepDirCombined: 1 53 | m_LightmapKeepDynamicPlain: 1 54 | m_LightmapKeepDynamicDirCombined: 1 55 | m_LightmapKeepShadowMask: 1 56 | m_LightmapKeepSubtractive: 1 57 | m_FogKeepLinear: 1 58 | m_FogKeepExp: 1 59 | m_FogKeepExp2: 1 60 | m_AlbedoSwatchInfos: [] 61 | m_LightsUseLinearIntensity: 0 62 | m_LightsUseColorTemperature: 0 63 | -------------------------------------------------------------------------------- /ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!13 &1 4 | InputManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Axes: 8 | - serializedVersion: 3 9 | m_Name: Horizontal 10 | descriptiveName: 11 | descriptiveNegativeName: 12 | negativeButton: left 13 | positiveButton: right 14 | altNegativeButton: a 15 | altPositiveButton: d 16 | gravity: 3 17 | dead: 0.001 18 | sensitivity: 3 19 | snap: 1 20 | invert: 0 21 | type: 0 22 | axis: 0 23 | joyNum: 0 24 | - serializedVersion: 3 25 | m_Name: Vertical 26 | descriptiveName: 27 | descriptiveNegativeName: 28 | negativeButton: down 29 | positiveButton: up 30 | altNegativeButton: s 31 | altPositiveButton: w 32 | gravity: 3 33 | dead: 0.001 34 | sensitivity: 3 35 | snap: 1 36 | invert: 0 37 | type: 0 38 | axis: 0 39 | joyNum: 0 40 | - serializedVersion: 3 41 | m_Name: Fire1 42 | descriptiveName: 43 | descriptiveNegativeName: 44 | negativeButton: 45 | positiveButton: left ctrl 46 | altNegativeButton: 47 | altPositiveButton: mouse 0 48 | gravity: 1000 49 | dead: 0.001 50 | sensitivity: 1000 51 | snap: 0 52 | invert: 0 53 | type: 0 54 | axis: 0 55 | joyNum: 0 56 | - serializedVersion: 3 57 | m_Name: Fire2 58 | descriptiveName: 59 | descriptiveNegativeName: 60 | negativeButton: 61 | positiveButton: left alt 62 | altNegativeButton: 63 | altPositiveButton: mouse 1 64 | gravity: 1000 65 | dead: 0.001 66 | sensitivity: 1000 67 | snap: 0 68 | invert: 0 69 | type: 0 70 | axis: 0 71 | joyNum: 0 72 | - serializedVersion: 3 73 | m_Name: Fire3 74 | descriptiveName: 75 | descriptiveNegativeName: 76 | negativeButton: 77 | positiveButton: left shift 78 | altNegativeButton: 79 | altPositiveButton: mouse 2 80 | gravity: 1000 81 | dead: 0.001 82 | sensitivity: 1000 83 | snap: 0 84 | invert: 0 85 | type: 0 86 | axis: 0 87 | joyNum: 0 88 | - serializedVersion: 3 89 | m_Name: Jump 90 | descriptiveName: 91 | descriptiveNegativeName: 92 | negativeButton: 93 | positiveButton: space 94 | altNegativeButton: 95 | altPositiveButton: 96 | gravity: 1000 97 | dead: 0.001 98 | sensitivity: 1000 99 | snap: 0 100 | invert: 0 101 | type: 0 102 | axis: 0 103 | joyNum: 0 104 | - serializedVersion: 3 105 | m_Name: Mouse X 106 | descriptiveName: 107 | descriptiveNegativeName: 108 | negativeButton: 109 | positiveButton: 110 | altNegativeButton: 111 | altPositiveButton: 112 | gravity: 0 113 | dead: 0 114 | sensitivity: 0.1 115 | snap: 0 116 | invert: 0 117 | type: 1 118 | axis: 0 119 | joyNum: 0 120 | - serializedVersion: 3 121 | m_Name: Mouse Y 122 | descriptiveName: 123 | descriptiveNegativeName: 124 | negativeButton: 125 | positiveButton: 126 | altNegativeButton: 127 | altPositiveButton: 128 | gravity: 0 129 | dead: 0 130 | sensitivity: 0.1 131 | snap: 0 132 | invert: 0 133 | type: 1 134 | axis: 1 135 | joyNum: 0 136 | - serializedVersion: 3 137 | m_Name: Mouse ScrollWheel 138 | descriptiveName: 139 | descriptiveNegativeName: 140 | negativeButton: 141 | positiveButton: 142 | altNegativeButton: 143 | altPositiveButton: 144 | gravity: 0 145 | dead: 0 146 | sensitivity: 0.1 147 | snap: 0 148 | invert: 0 149 | type: 1 150 | axis: 2 151 | joyNum: 0 152 | - serializedVersion: 3 153 | m_Name: Horizontal 154 | descriptiveName: 155 | descriptiveNegativeName: 156 | negativeButton: 157 | positiveButton: 158 | altNegativeButton: 159 | altPositiveButton: 160 | gravity: 0 161 | dead: 0.19 162 | sensitivity: 1 163 | snap: 0 164 | invert: 0 165 | type: 2 166 | axis: 0 167 | joyNum: 0 168 | - serializedVersion: 3 169 | m_Name: Vertical 170 | descriptiveName: 171 | descriptiveNegativeName: 172 | negativeButton: 173 | positiveButton: 174 | altNegativeButton: 175 | altPositiveButton: 176 | gravity: 0 177 | dead: 0.19 178 | sensitivity: 1 179 | snap: 0 180 | invert: 1 181 | type: 2 182 | axis: 1 183 | joyNum: 0 184 | - serializedVersion: 3 185 | m_Name: Fire1 186 | descriptiveName: 187 | descriptiveNegativeName: 188 | negativeButton: 189 | positiveButton: joystick button 0 190 | altNegativeButton: 191 | altPositiveButton: 192 | gravity: 1000 193 | dead: 0.001 194 | sensitivity: 1000 195 | snap: 0 196 | invert: 0 197 | type: 0 198 | axis: 0 199 | joyNum: 0 200 | - serializedVersion: 3 201 | m_Name: Fire2 202 | descriptiveName: 203 | descriptiveNegativeName: 204 | negativeButton: 205 | positiveButton: joystick button 1 206 | altNegativeButton: 207 | altPositiveButton: 208 | gravity: 1000 209 | dead: 0.001 210 | sensitivity: 1000 211 | snap: 0 212 | invert: 0 213 | type: 0 214 | axis: 0 215 | joyNum: 0 216 | - serializedVersion: 3 217 | m_Name: Fire3 218 | descriptiveName: 219 | descriptiveNegativeName: 220 | negativeButton: 221 | positiveButton: joystick button 2 222 | altNegativeButton: 223 | altPositiveButton: 224 | gravity: 1000 225 | dead: 0.001 226 | sensitivity: 1000 227 | snap: 0 228 | invert: 0 229 | type: 0 230 | axis: 0 231 | joyNum: 0 232 | - serializedVersion: 3 233 | m_Name: Jump 234 | descriptiveName: 235 | descriptiveNegativeName: 236 | negativeButton: 237 | positiveButton: joystick button 3 238 | altNegativeButton: 239 | altPositiveButton: 240 | gravity: 1000 241 | dead: 0.001 242 | sensitivity: 1000 243 | snap: 0 244 | invert: 0 245 | type: 0 246 | axis: 0 247 | joyNum: 0 248 | - serializedVersion: 3 249 | m_Name: Submit 250 | descriptiveName: 251 | descriptiveNegativeName: 252 | negativeButton: 253 | positiveButton: return 254 | altNegativeButton: 255 | altPositiveButton: joystick button 0 256 | gravity: 1000 257 | dead: 0.001 258 | sensitivity: 1000 259 | snap: 0 260 | invert: 0 261 | type: 0 262 | axis: 0 263 | joyNum: 0 264 | - serializedVersion: 3 265 | m_Name: Submit 266 | descriptiveName: 267 | descriptiveNegativeName: 268 | negativeButton: 269 | positiveButton: enter 270 | altNegativeButton: 271 | altPositiveButton: space 272 | gravity: 1000 273 | dead: 0.001 274 | sensitivity: 1000 275 | snap: 0 276 | invert: 0 277 | type: 0 278 | axis: 0 279 | joyNum: 0 280 | - serializedVersion: 3 281 | m_Name: Cancel 282 | descriptiveName: 283 | descriptiveNegativeName: 284 | negativeButton: 285 | positiveButton: escape 286 | altNegativeButton: 287 | altPositiveButton: joystick button 1 288 | gravity: 1000 289 | dead: 0.001 290 | sensitivity: 1000 291 | snap: 0 292 | invert: 0 293 | type: 0 294 | axis: 0 295 | joyNum: 0 296 | -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshProjectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | areas: 8 | - name: Walkable 9 | cost: 1 10 | - name: Not Walkable 11 | cost: 1 12 | - name: Jump 13 | cost: 2 14 | - name: 15 | cost: 1 16 | - name: 17 | cost: 1 18 | - name: 19 | cost: 1 20 | - name: 21 | cost: 1 22 | - name: 23 | cost: 1 24 | - name: 25 | cost: 1 26 | - name: 27 | cost: 1 28 | - name: 29 | cost: 1 30 | - name: 31 | cost: 1 32 | - name: 33 | cost: 1 34 | - name: 35 | cost: 1 36 | - name: 37 | cost: 1 38 | - name: 39 | cost: 1 40 | - name: 41 | cost: 1 42 | - name: 43 | cost: 1 44 | - name: 45 | cost: 1 46 | - name: 47 | cost: 1 48 | - name: 49 | cost: 1 50 | - name: 51 | cost: 1 52 | - name: 53 | cost: 1 54 | - name: 55 | cost: 1 56 | - name: 57 | cost: 1 58 | - name: 59 | cost: 1 60 | - name: 61 | cost: 1 62 | - name: 63 | cost: 1 64 | - name: 65 | cost: 1 66 | - name: 67 | cost: 1 68 | - name: 69 | cost: 1 70 | - name: 71 | cost: 1 72 | m_LastAgentTypeID: -887442657 73 | m_Settings: 74 | - serializedVersion: 2 75 | agentTypeID: 0 76 | agentRadius: 0.5 77 | agentHeight: 2 78 | agentSlope: 45 79 | agentClimb: 0.75 80 | ledgeDropHeight: 0 81 | maxJumpAcrossDistance: 0 82 | minRegionArea: 2 83 | manualCellSize: 0 84 | cellSize: 0.16666667 85 | manualTileSize: 0 86 | tileSize: 256 87 | accuratePlacement: 0 88 | debug: 89 | m_Flags: 0 90 | m_SettingNames: 91 | - Humanoid 92 | -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 4 7 | m_Gravity: {x: 0, y: -9.81} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_VelocityIterations: 8 10 | m_PositionIterations: 3 11 | m_VelocityThreshold: 1 12 | m_MaxLinearCorrection: 0.2 13 | m_MaxAngularCorrection: 8 14 | m_MaxTranslationSpeed: 100 15 | m_MaxRotationSpeed: 360 16 | m_BaumgarteScale: 0.2 17 | m_BaumgarteTimeOfImpactScale: 0.75 18 | m_TimeToSleep: 0.5 19 | m_LinearSleepTolerance: 0.01 20 | m_AngularSleepTolerance: 2 21 | m_DefaultContactOffset: 0.01 22 | m_JobOptions: 23 | serializedVersion: 2 24 | useMultithreading: 0 25 | useConsistencySorting: 0 26 | m_InterpolationPosesPerJob: 100 27 | m_NewContactsPerJob: 30 28 | m_CollideContactsPerJob: 100 29 | m_ClearFlagsPerJob: 200 30 | m_ClearBodyForcesPerJob: 200 31 | m_SyncDiscreteFixturesPerJob: 50 32 | m_SyncContinuousFixturesPerJob: 50 33 | m_FindNearestContactsPerJob: 100 34 | m_UpdateTriggerContactsPerJob: 100 35 | m_IslandSolverCostThreshold: 100 36 | m_IslandSolverBodyCostScale: 1 37 | m_IslandSolverContactCostScale: 10 38 | m_IslandSolverJointCostScale: 10 39 | m_IslandSolverBodiesPerJob: 50 40 | m_IslandSolverContactsPerJob: 50 41 | m_AutoSimulation: 1 42 | m_QueriesHitTriggers: 1 43 | m_QueriesStartInColliders: 1 44 | m_CallbacksOnDisable: 1 45 | m_ReuseCollisionCallbacks: 0 46 | m_AutoSyncTransforms: 0 47 | m_AlwaysShowColliders: 0 48 | m_ShowColliderSleep: 1 49 | m_ShowColliderContacts: 0 50 | m_ShowColliderAABB: 0 51 | m_ContactArrowScale: 0.2 52 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 53 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 54 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 55 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 56 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 57 | -------------------------------------------------------------------------------- /ProjectSettings/PresetManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1386491679 &1 4 | PresetManager: 5 | m_ObjectHideFlags: 0 6 | m_DefaultList: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2019.1.7f1 2 | m_EditorVersionWithRevision: 2019.1.7f1 (f3c4928e5742) 3 | -------------------------------------------------------------------------------- /ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!47 &1 4 | QualitySettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 5 7 | m_CurrentQuality: 5 8 | m_QualitySettings: 9 | - serializedVersion: 2 10 | name: Very Low 11 | pixelLightCount: 0 12 | shadows: 0 13 | shadowResolution: 0 14 | shadowProjection: 1 15 | shadowCascades: 1 16 | shadowDistance: 15 17 | shadowNearPlaneOffset: 3 18 | shadowCascade2Split: 0.33333334 19 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 20 | shadowmaskMode: 0 21 | skinWeights: 1 22 | textureQuality: 1 23 | anisotropicTextures: 0 24 | antiAliasing: 0 25 | softParticles: 0 26 | softVegetation: 0 27 | realtimeReflectionProbes: 0 28 | billboardsFaceCameraPosition: 0 29 | vSyncCount: 0 30 | lodBias: 0.3 31 | maximumLODLevel: 0 32 | streamingMipmapsActive: 0 33 | streamingMipmapsAddAllCameras: 1 34 | streamingMipmapsMemoryBudget: 512 35 | streamingMipmapsRenderersPerFrame: 512 36 | streamingMipmapsMaxLevelReduction: 2 37 | streamingMipmapsMaxFileIORequests: 1024 38 | particleRaycastBudget: 4 39 | asyncUploadTimeSlice: 2 40 | asyncUploadBufferSize: 16 41 | asyncUploadPersistentBuffer: 1 42 | resolutionScalingFixedDPIFactor: 1 43 | excludedTargetPlatforms: [] 44 | - serializedVersion: 2 45 | name: Low 46 | pixelLightCount: 0 47 | shadows: 0 48 | shadowResolution: 0 49 | shadowProjection: 1 50 | shadowCascades: 1 51 | shadowDistance: 20 52 | shadowNearPlaneOffset: 3 53 | shadowCascade2Split: 0.33333334 54 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 55 | shadowmaskMode: 0 56 | skinWeights: 2 57 | textureQuality: 0 58 | anisotropicTextures: 0 59 | antiAliasing: 0 60 | softParticles: 0 61 | softVegetation: 0 62 | realtimeReflectionProbes: 0 63 | billboardsFaceCameraPosition: 0 64 | vSyncCount: 0 65 | lodBias: 0.4 66 | maximumLODLevel: 0 67 | streamingMipmapsActive: 0 68 | streamingMipmapsAddAllCameras: 1 69 | streamingMipmapsMemoryBudget: 512 70 | streamingMipmapsRenderersPerFrame: 512 71 | streamingMipmapsMaxLevelReduction: 2 72 | streamingMipmapsMaxFileIORequests: 1024 73 | particleRaycastBudget: 16 74 | asyncUploadTimeSlice: 2 75 | asyncUploadBufferSize: 16 76 | asyncUploadPersistentBuffer: 1 77 | resolutionScalingFixedDPIFactor: 1 78 | excludedTargetPlatforms: [] 79 | - serializedVersion: 2 80 | name: Medium 81 | pixelLightCount: 1 82 | shadows: 1 83 | shadowResolution: 0 84 | shadowProjection: 1 85 | shadowCascades: 1 86 | shadowDistance: 20 87 | shadowNearPlaneOffset: 3 88 | shadowCascade2Split: 0.33333334 89 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 90 | shadowmaskMode: 0 91 | skinWeights: 2 92 | textureQuality: 0 93 | anisotropicTextures: 1 94 | antiAliasing: 0 95 | softParticles: 0 96 | softVegetation: 0 97 | realtimeReflectionProbes: 0 98 | billboardsFaceCameraPosition: 0 99 | vSyncCount: 1 100 | lodBias: 0.7 101 | maximumLODLevel: 0 102 | streamingMipmapsActive: 0 103 | streamingMipmapsAddAllCameras: 1 104 | streamingMipmapsMemoryBudget: 512 105 | streamingMipmapsRenderersPerFrame: 512 106 | streamingMipmapsMaxLevelReduction: 2 107 | streamingMipmapsMaxFileIORequests: 1024 108 | particleRaycastBudget: 64 109 | asyncUploadTimeSlice: 2 110 | asyncUploadBufferSize: 16 111 | asyncUploadPersistentBuffer: 1 112 | resolutionScalingFixedDPIFactor: 1 113 | excludedTargetPlatforms: [] 114 | - serializedVersion: 2 115 | name: High 116 | pixelLightCount: 2 117 | shadows: 2 118 | shadowResolution: 1 119 | shadowProjection: 1 120 | shadowCascades: 2 121 | shadowDistance: 40 122 | shadowNearPlaneOffset: 3 123 | shadowCascade2Split: 0.33333334 124 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 125 | shadowmaskMode: 1 126 | skinWeights: 2 127 | textureQuality: 0 128 | anisotropicTextures: 1 129 | antiAliasing: 0 130 | softParticles: 0 131 | softVegetation: 1 132 | realtimeReflectionProbes: 1 133 | billboardsFaceCameraPosition: 1 134 | vSyncCount: 1 135 | lodBias: 1 136 | maximumLODLevel: 0 137 | streamingMipmapsActive: 0 138 | streamingMipmapsAddAllCameras: 1 139 | streamingMipmapsMemoryBudget: 512 140 | streamingMipmapsRenderersPerFrame: 512 141 | streamingMipmapsMaxLevelReduction: 2 142 | streamingMipmapsMaxFileIORequests: 1024 143 | particleRaycastBudget: 256 144 | asyncUploadTimeSlice: 2 145 | asyncUploadBufferSize: 16 146 | asyncUploadPersistentBuffer: 1 147 | resolutionScalingFixedDPIFactor: 1 148 | excludedTargetPlatforms: [] 149 | - serializedVersion: 2 150 | name: Very High 151 | pixelLightCount: 3 152 | shadows: 2 153 | shadowResolution: 2 154 | shadowProjection: 1 155 | shadowCascades: 2 156 | shadowDistance: 70 157 | shadowNearPlaneOffset: 3 158 | shadowCascade2Split: 0.33333334 159 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 160 | shadowmaskMode: 1 161 | skinWeights: 4 162 | textureQuality: 0 163 | anisotropicTextures: 2 164 | antiAliasing: 2 165 | softParticles: 1 166 | softVegetation: 1 167 | realtimeReflectionProbes: 1 168 | billboardsFaceCameraPosition: 1 169 | vSyncCount: 1 170 | lodBias: 1.5 171 | maximumLODLevel: 0 172 | streamingMipmapsActive: 0 173 | streamingMipmapsAddAllCameras: 1 174 | streamingMipmapsMemoryBudget: 512 175 | streamingMipmapsRenderersPerFrame: 512 176 | streamingMipmapsMaxLevelReduction: 2 177 | streamingMipmapsMaxFileIORequests: 1024 178 | particleRaycastBudget: 1024 179 | asyncUploadTimeSlice: 2 180 | asyncUploadBufferSize: 16 181 | asyncUploadPersistentBuffer: 1 182 | resolutionScalingFixedDPIFactor: 1 183 | excludedTargetPlatforms: [] 184 | - serializedVersion: 2 185 | name: Ultra 186 | pixelLightCount: 4 187 | shadows: 2 188 | shadowResolution: 2 189 | shadowProjection: 1 190 | shadowCascades: 4 191 | shadowDistance: 150 192 | shadowNearPlaneOffset: 3 193 | shadowCascade2Split: 0.33333334 194 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 195 | shadowmaskMode: 1 196 | skinWeights: 255 197 | textureQuality: 0 198 | anisotropicTextures: 2 199 | antiAliasing: 2 200 | softParticles: 1 201 | softVegetation: 1 202 | realtimeReflectionProbes: 1 203 | billboardsFaceCameraPosition: 1 204 | vSyncCount: 1 205 | lodBias: 2 206 | maximumLODLevel: 0 207 | streamingMipmapsActive: 0 208 | streamingMipmapsAddAllCameras: 1 209 | streamingMipmapsMemoryBudget: 512 210 | streamingMipmapsRenderersPerFrame: 512 211 | streamingMipmapsMaxLevelReduction: 2 212 | streamingMipmapsMaxFileIORequests: 1024 213 | particleRaycastBudget: 4096 214 | asyncUploadTimeSlice: 2 215 | asyncUploadBufferSize: 16 216 | asyncUploadPersistentBuffer: 1 217 | resolutionScalingFixedDPIFactor: 1 218 | excludedTargetPlatforms: [] 219 | m_PerPlatformDefaultQuality: 220 | Android: 2 221 | Lumin: 5 222 | Nintendo Switch: 5 223 | PS4: 5 224 | Standalone: 5 225 | WebGL: 3 226 | Windows Store Apps: 5 227 | XboxOne: 5 228 | iPhone: 2 229 | tvOS: 2 230 | -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | serializedVersion: 2 6 | tags: [] 7 | layers: 8 | - Default 9 | - TransparentFX 10 | - Ignore Raycast 11 | - 12 | - Water 13 | - UI 14 | - 15 | - 16 | - 17 | - 18 | - 19 | - 20 | - 21 | - 22 | - 23 | - 24 | - 25 | - 26 | - 27 | - 28 | - 29 | - 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - 38 | - 39 | - 40 | m_SortingLayers: 41 | - name: Default 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: 0.02 7 | Maximum Allowed Timestep: 0.33333334 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 1 7 | m_Enabled: 0 8 | m_TestMode: 0 9 | m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events 10 | m_EventUrl: https://cdp.cloud.unity3d.com/v1/events 11 | m_ConfigUrl: https://config.uca.cloud.unity3d.com 12 | m_TestInitMode: 0 13 | CrashReportingSettings: 14 | m_EventUrl: https://perf-events.cloud.unity3d.com 15 | m_Enabled: 0 16 | m_LogBufferSize: 10 17 | m_CaptureEditorExceptions: 1 18 | UnityPurchasingSettings: 19 | m_Enabled: 0 20 | m_TestMode: 0 21 | UnityAnalyticsSettings: 22 | m_Enabled: 0 23 | m_TestMode: 0 24 | m_InitializeOnStartup: 1 25 | UnityAdsSettings: 26 | m_Enabled: 0 27 | m_InitializeOnStartup: 1 28 | m_TestMode: 0 29 | m_IosGameId: 30 | m_AndroidGameId: 31 | m_GameIds: {} 32 | m_GameId: 33 | PerformanceReportingSettings: 34 | m_Enabled: 0 35 | -------------------------------------------------------------------------------- /ProjectSettings/VFXManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!937362698 &1 4 | VFXManager: 5 | m_ObjectHideFlags: 0 6 | m_IndirectShader: {fileID: 0} 7 | m_CopyBufferShader: {fileID: 0} 8 | m_SortShader: {fileID: 0} 9 | m_RenderPipeSettingsPath: 10 | m_FixedTimeStep: 0.016666668 11 | m_MaxDeltaTime: 0.05 12 | -------------------------------------------------------------------------------- /ProjectSettings/XRSettings.asset: -------------------------------------------------------------------------------- 1 | { 2 | "m_SettingKeys": [ 3 | "VR Device Disabled", 4 | "VR Device User Alert" 5 | ], 6 | "m_SettingValues": [ 7 | "False", 8 | "False" 9 | ] 10 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # TimelineMarkerCustomization 2 | 3 | ![Alt text](Docs/jumpMarker.gif?raw=true "Title") 4 | 5 | Examples to show how markers and notifications work. 6 | Read the [Timeline Marker Customization blog post](https://blogs.unity3d.com/2019/06/25/how-to-create-custom-timeline-markers/) for more details. 7 | 8 | *Built with Unity 2019.1.7f1* 9 | --------------------------------------------------------------------------------