test
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#if TEXT_TRACK_REQUIRES_TEXTMESH_PRO
|
||||
|
||||
using UnityEditor.Timeline;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Timeline;
|
||||
|
||||
namespace Timeline.Samples
|
||||
{
|
||||
// Editor used by the TimelineEditor to customize the view of a TextPlayableAsset
|
||||
[CustomTimelineEditor(typeof(TextPlayableAsset))]
|
||||
public class TextPlayableAssetClipEditor : ClipEditor
|
||||
{
|
||||
// Called when a clip value, it's attached PlayableAsset, or an animation curve on a template is changed from the TimelineEditor.
|
||||
// This is used to keep the displayName of the clip matching the text of the PlayableAsset.
|
||||
public override void OnClipChanged(TimelineClip clip)
|
||||
{
|
||||
var textPlayableasset = clip.asset as TextPlayableAsset;
|
||||
if (textPlayableasset != null && !string.IsNullOrEmpty(textPlayableasset.template.text))
|
||||
clip.displayName = textPlayableasset.template.text;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ea4a94b44f92fb443bea87f1902ee5af
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"name": "Timeline.Samples.Text.Editor",
|
||||
"references": [
|
||||
"GUID:f06555f75b070af458a003d92f9efb00",
|
||||
"GUID:02f771204943f4a40949438e873e3eff",
|
||||
"GUID:da34477545da90248a78a4ea3240faef"
|
||||
],
|
||||
"includePlatforms": [
|
||||
"Editor"
|
||||
],
|
||||
"excludePlatforms": [],
|
||||
"allowUnsafeCode": false,
|
||||
"overrideReferences": false,
|
||||
"precompiledReferences": [],
|
||||
"autoReferenced": true,
|
||||
"defineConstraints": [],
|
||||
"versionDefines": [
|
||||
{
|
||||
"name": "com.unity.textmeshpro",
|
||||
"expression": "1.0.0",
|
||||
"define": "TEXT_TRACK_REQUIRES_TEXTMESH_PRO"
|
||||
},
|
||||
{
|
||||
"name": "com.unity.ugui",
|
||||
"expression": "2.0.0",
|
||||
"define": "TEXT_TRACK_REQUIRES_TEXTMESH_PRO"
|
||||
}
|
||||
],
|
||||
"noEngineReferences": false
|
||||
}
|
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ae3df4209b2e9a740aedb8c25386ffcb
|
||||
AssemblyDefinitionImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in New Issue
Block a user