[Asset] Update Asset
This commit is contained in:
parent
b2f9b187a6
commit
4dd300648c
20
BlueWater/Assets/02.Scripts/Npc/EngineRunState.cs
Normal file
20
BlueWater/Assets/02.Scripts/Npc/EngineRunState.cs
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
namespace BlueWaterProject
|
||||||
|
{
|
||||||
|
public class EngineRunState : INpcState
|
||||||
|
{
|
||||||
|
public void OnEnter(NpcStateMachine npcStateMachine)
|
||||||
|
{
|
||||||
|
throw new System.NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnUpdate(NpcStateMachine npcStateMachine)
|
||||||
|
{
|
||||||
|
throw new System.NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnExit(NpcStateMachine npcStateMachine)
|
||||||
|
{
|
||||||
|
throw new System.NotImplementedException();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
3
BlueWater/Assets/02.Scripts/Npc/EngineRunState.cs.meta
Normal file
3
BlueWater/Assets/02.Scripts/Npc/EngineRunState.cs.meta
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 9d777820c0674a439501d6e19cb644a1
|
||||||
|
timeCreated: 1701911756
|
@ -23,7 +23,7 @@ namespace BlueWaterProject
|
|||||||
|
|
||||||
private IEnumerator HitStopCoroutine(float duration)
|
private IEnumerator HitStopCoroutine(float duration)
|
||||||
{
|
{
|
||||||
var originalTimeScale = Time.timeScale;
|
var originalTimeScale = 1;
|
||||||
Time.timeScale = 0.05f;
|
Time.timeScale = 0.05f;
|
||||||
yield return new WaitForSecondsRealtime(duration);
|
yield return new WaitForSecondsRealtime(duration);
|
||||||
Time.timeScale = originalTimeScale;
|
Time.timeScale = originalTimeScale;
|
||||||
|
BIN
BlueWater/Assets/03.Images/Maps/Unknown22.png
Normal file
BIN
BlueWater/Assets/03.Images/Maps/Unknown22.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.8 MiB |
112
BlueWater/Assets/03.Images/Maps/Unknown22.png.meta
Normal file
112
BlueWater/Assets/03.Images/Maps/Unknown22.png.meta
Normal file
@ -0,0 +1,112 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 7790166950642443c9895ff9b9dea860
|
||||||
|
TextureImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 12
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 1
|
||||||
|
sRGBTexture: 0
|
||||||
|
linearTexture: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapsPreserveCoverage: 0
|
||||||
|
alphaTestReferenceValue: 0.5
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
flipGreenChannel: 0
|
||||||
|
isReadable: 0
|
||||||
|
streamingMipmaps: 0
|
||||||
|
streamingMipmapsPriority: 0
|
||||||
|
vTOnly: 0
|
||||||
|
ignoreMipmapLimit: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 6
|
||||||
|
cubemapConvolution: 0
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: 1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
filterMode: 1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: 0
|
||||||
|
wrapU: 0
|
||||||
|
wrapV: 0
|
||||||
|
wrapW: 0
|
||||||
|
nPOTScale: 1
|
||||||
|
lightmap: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
spriteMode: 0
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot: {x: 0.5, y: 0.5}
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
spriteGenerateFallbackPhysicsShape: 1
|
||||||
|
alphaUsage: 1
|
||||||
|
alphaIsTransparency: 0
|
||||||
|
spriteTessellationDetail: -1
|
||||||
|
textureType: 1
|
||||||
|
textureShape: 1
|
||||||
|
singleChannelComponent: 0
|
||||||
|
flipbookRows: 1
|
||||||
|
flipbookColumns: 1
|
||||||
|
maxTextureSizeSet: 0
|
||||||
|
compressionQualitySet: 0
|
||||||
|
textureFormatSet: 0
|
||||||
|
ignorePngGamma: 0
|
||||||
|
applyGammaDecoding: 0
|
||||||
|
swizzle: 50462976
|
||||||
|
cookieLightType: 0
|
||||||
|
platformSettings:
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: DefaultTexturePlatform
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: Standalone
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
physicsShape: []
|
||||||
|
bones: []
|
||||||
|
spriteID:
|
||||||
|
internalID: 0
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
secondaryTextures: []
|
||||||
|
nameFileIdTable: {}
|
||||||
|
mipmapLimitGroupName:
|
||||||
|
pSDRemoveMatte: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -99,7 +99,7 @@ Material:
|
|||||||
- _FogIntensity1: 1
|
- _FogIntensity1: 1
|
||||||
- _FogOffset: 0.85
|
- _FogOffset: 0.85
|
||||||
- _FogOffset1: 1
|
- _FogOffset1: 1
|
||||||
- _FogSmoothness: 17265.787
|
- _FogSmoothness: 21469.799
|
||||||
- _FogSmoothness1: 100
|
- _FogSmoothness1: 100
|
||||||
- _GlossMapScale: 1
|
- _GlossMapScale: 1
|
||||||
- _Glossiness: 0.5
|
- _Glossiness: 0.5
|
||||||
|
@ -237,7 +237,7 @@ Material:
|
|||||||
- _SecondLayer: {r: 0.9056604, g: 0.9056604, b: 0.9056604, a: 0}
|
- _SecondLayer: {r: 0.9056604, g: 0.9056604, b: 0.9056604, a: 0}
|
||||||
- _SecondLayer1: {r: 0.8396226, g: 0.8396226, b: 0.8396226, a: 0}
|
- _SecondLayer1: {r: 0.8396226, g: 0.8396226, b: 0.8396226, a: 0}
|
||||||
- _ShadowDirection: {r: 0, g: 0, b: 0, a: 0}
|
- _ShadowDirection: {r: 0, g: 0, b: 0, a: 0}
|
||||||
- _StormDirection: {r: -0.85142297, g: -0, b: -0.5244796, a: 0}
|
- _StormDirection: {r: 0.95393425, g: -0, b: 0.30001578, a: 0}
|
||||||
- _SunDirection: {r: 0.034127682, g: 0.9526184, b: 0.30224794, a: 0}
|
- _SunDirection: {r: 0.034127682, g: 0.9526184, b: 0.30224794, a: 0}
|
||||||
- _SunDirection1: {r: 0, g: 0, b: 0, a: 0}
|
- _SunDirection1: {r: 0, g: 0, b: 0, a: 0}
|
||||||
- _TexturePanDirection: {r: 0.1, g: 1, b: 0.1, a: 0}
|
- _TexturePanDirection: {r: 0.1, g: 1, b: 0.1, a: 0}
|
||||||
|
@ -90,6 +90,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 11672
|
productId: 11672
|
||||||
packageName: Dialogue System for Unity
|
packageName: Dialogue System for Unity
|
||||||
packageVersion: 2.2.40.2
|
packageVersion: 2.2.41.1
|
||||||
assetPath: Assets/Editor Default Resources/Dialogue System/Conditions.png
|
assetPath: Assets/Editor Default Resources/Dialogue System/Conditions.png
|
||||||
uploadId: 616804
|
uploadId: 626932
|
||||||
|
@ -47,7 +47,7 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 11672
|
productId: 11672
|
||||||
packageName: Dialogue System for Unity
|
packageName: Dialogue System for Unity
|
||||||
packageVersion: 2.2.40.2
|
packageVersion: 2.2.41.1
|
||||||
assetPath: Assets/Editor Default Resources/Dialogue System/DialogueManager Inspector
|
assetPath: Assets/Editor Default Resources/Dialogue System/DialogueManager Inspector
|
||||||
Dark.png
|
Dark.png
|
||||||
uploadId: 616804
|
uploadId: 626932
|
||||||
|
@ -47,7 +47,7 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 11672
|
productId: 11672
|
||||||
packageName: Dialogue System for Unity
|
packageName: Dialogue System for Unity
|
||||||
packageVersion: 2.2.40.2
|
packageVersion: 2.2.41.1
|
||||||
assetPath: Assets/Editor Default Resources/Dialogue System/DialogueManager Inspector
|
assetPath: Assets/Editor Default Resources/Dialogue System/DialogueManager Inspector
|
||||||
Light.png
|
Light.png
|
||||||
uploadId: 616804
|
uploadId: 626932
|
||||||
|
@ -60,6 +60,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 11672
|
productId: 11672
|
||||||
packageName: Dialogue System for Unity
|
packageName: Dialogue System for Unity
|
||||||
packageVersion: 2.2.40.2
|
packageVersion: 2.2.41.1
|
||||||
assetPath: Assets/Editor Default Resources/Dialogue System/EditorNode.png
|
assetPath: Assets/Editor Default Resources/Dialogue System/EditorNode.png
|
||||||
uploadId: 616804
|
uploadId: 626932
|
||||||
|
@ -90,6 +90,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 11672
|
productId: 11672
|
||||||
packageName: Dialogue System for Unity
|
packageName: Dialogue System for Unity
|
||||||
packageVersion: 2.2.40.2
|
packageVersion: 2.2.41.1
|
||||||
assetPath: Assets/Editor Default Resources/Dialogue System/Event.png
|
assetPath: Assets/Editor Default Resources/Dialogue System/Event.png
|
||||||
uploadId: 616804
|
uploadId: 626932
|
||||||
|
@ -90,6 +90,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 11672
|
productId: 11672
|
||||||
packageName: Dialogue System for Unity
|
packageName: Dialogue System for Unity
|
||||||
packageVersion: 2.2.40.2
|
packageVersion: 2.2.41.1
|
||||||
assetPath: Assets/Editor Default Resources/Dialogue System/Resize.png
|
assetPath: Assets/Editor Default Resources/Dialogue System/Resize.png
|
||||||
uploadId: 616804
|
uploadId: 626932
|
||||||
|
@ -90,6 +90,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 11672
|
productId: 11672
|
||||||
packageName: Dialogue System for Unity
|
packageName: Dialogue System for Unity
|
||||||
packageVersion: 2.2.40.2
|
packageVersion: 2.2.41.1
|
||||||
assetPath: Assets/Editor Default Resources/Dialogue System/Script.png
|
assetPath: Assets/Editor Default Resources/Dialogue System/Script.png
|
||||||
uploadId: 616804
|
uploadId: 626932
|
||||||
|
@ -90,6 +90,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 11672
|
productId: 11672
|
||||||
packageName: Dialogue System for Unity
|
packageName: Dialogue System for Unity
|
||||||
packageVersion: 2.2.40.2
|
packageVersion: 2.2.41.1
|
||||||
assetPath: Assets/Editor Default Resources/Dialogue System/Sequence.png
|
assetPath: Assets/Editor Default Resources/Dialogue System/Sequence.png
|
||||||
uploadId: 616804
|
uploadId: 626932
|
||||||
|
@ -47,6 +47,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 11672
|
productId: 11672
|
||||||
packageName: Dialogue System for Unity
|
packageName: Dialogue System for Unity
|
||||||
packageVersion: 2.2.40.2
|
packageVersion: 2.2.41.1
|
||||||
assetPath: Assets/Gizmos/DialogueDatabase Icon.png
|
assetPath: Assets/Gizmos/DialogueDatabase Icon.png
|
||||||
uploadId: 616804
|
uploadId: 626932
|
||||||
|
@ -49,6 +49,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 11672
|
productId: 11672
|
||||||
packageName: Dialogue System for Unity
|
packageName: Dialogue System for Unity
|
||||||
packageVersion: 2.2.40.2
|
packageVersion: 2.2.41.1
|
||||||
assetPath: Assets/Gizmos/StringAsset Icon.png
|
assetPath: Assets/Gizmos/StringAsset Icon.png
|
||||||
uploadId: 616804
|
uploadId: 626932
|
||||||
|
@ -49,6 +49,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 11672
|
productId: 11672
|
||||||
packageName: Dialogue System for Unity
|
packageName: Dialogue System for Unity
|
||||||
packageVersion: 2.2.40.2
|
packageVersion: 2.2.41.1
|
||||||
assetPath: Assets/Gizmos/TextTable Icon.png
|
assetPath: Assets/Gizmos/TextTable Icon.png
|
||||||
uploadId: 616804
|
uploadId: 626932
|
||||||
|
@ -13,6 +13,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Attributes/Editor/CharsDisplayTimeAttributeDrawer.cs
|
assetPath: Assets/Plugins/Febucci/Text Animator/Attributes/Editor/CharsDisplayTimeAttributeDrawer.cs
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -9,6 +9,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Attributes/Editor/Febucci.Attributes.Editor.asmdef
|
assetPath: Assets/Plugins/Febucci/Text Animator/Attributes/Editor/Febucci.Attributes.Editor.asmdef
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -13,6 +13,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Attributes/Editor/MinValueAttributeDrawer.cs
|
assetPath: Assets/Plugins/Febucci/Text Animator/Attributes/Editor/MinValueAttributeDrawer.cs
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -13,6 +13,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Attributes/Editor/NotZeroAttributeDrawer.cs
|
assetPath: Assets/Plugins/Febucci/Text Animator/Attributes/Editor/NotZeroAttributeDrawer.cs
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -13,6 +13,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Attributes/Editor/PositiveValueAttributeDrawer.cs
|
assetPath: Assets/Plugins/Febucci/Text Animator/Attributes/Editor/PositiveValueAttributeDrawer.cs
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -13,6 +13,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Attributes/Runtime/CharsDisplayTimeAttribute.cs
|
assetPath: Assets/Plugins/Febucci/Text Animator/Attributes/Runtime/CharsDisplayTimeAttribute.cs
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -9,6 +9,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Attributes/Runtime/Febucci.Attributes.Runtime.asmdef
|
assetPath: Assets/Plugins/Febucci/Text Animator/Attributes/Runtime/Febucci.Attributes.Runtime.asmdef
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -13,6 +13,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Attributes/Runtime/MinValueAttribute.cs
|
assetPath: Assets/Plugins/Febucci/Text Animator/Attributes/Runtime/MinValueAttribute.cs
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -13,6 +13,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Attributes/Runtime/NotZeroAttribute.cs
|
assetPath: Assets/Plugins/Febucci/Text Animator/Attributes/Runtime/NotZeroAttribute.cs
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -13,6 +13,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Attributes/Runtime/PositiveValueAttribute.cs
|
assetPath: Assets/Plugins/Febucci/Text Animator/Attributes/Runtime/PositiveValueAttribute.cs
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -485,6 +485,8 @@ MonoBehaviour:
|
|||||||
databaseBehaviors: {fileID: 11400000, guid: 143063c9d42da4bb3bdef3e969df1633, type: 2}
|
databaseBehaviors: {fileID: 11400000, guid: 143063c9d42da4bb3bdef3e969df1633, type: 2}
|
||||||
databaseAppearances: {fileID: 11400000, guid: efcefe34ffbda4c5eb7e39d858738fbc,
|
databaseAppearances: {fileID: 11400000, guid: efcefe34ffbda4c5eb7e39d858738fbc,
|
||||||
type: 2}
|
type: 2}
|
||||||
|
useDefaultStyleSheet: 1
|
||||||
|
styleSheet: {fileID: 0}
|
||||||
databaseActions: {fileID: 11400000, guid: 59963a936d6fb4257a79cffca6bafcbb, type: 2}
|
databaseActions: {fileID: 11400000, guid: 59963a936d6fb4257a79cffca6bafcbb, type: 2}
|
||||||
defaultAppearancesTags:
|
defaultAppearancesTags:
|
||||||
- size
|
- size
|
||||||
|
@ -9,6 +9,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Example/00 - Welcome.unity
|
assetPath: Assets/Plugins/Febucci/Text Animator/Example/00 - Welcome.unity
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -570,6 +570,8 @@ MonoBehaviour:
|
|||||||
databaseBehaviors: {fileID: 11400000, guid: 143063c9d42da4bb3bdef3e969df1633, type: 2}
|
databaseBehaviors: {fileID: 11400000, guid: 143063c9d42da4bb3bdef3e969df1633, type: 2}
|
||||||
databaseAppearances: {fileID: 11400000, guid: efcefe34ffbda4c5eb7e39d858738fbc,
|
databaseAppearances: {fileID: 11400000, guid: efcefe34ffbda4c5eb7e39d858738fbc,
|
||||||
type: 2}
|
type: 2}
|
||||||
|
useDefaultStyleSheet: 1
|
||||||
|
styleSheet: {fileID: 0}
|
||||||
databaseActions: {fileID: 11400000, guid: 59963a936d6fb4257a79cffca6bafcbb, type: 2}
|
databaseActions: {fileID: 11400000, guid: 59963a936d6fb4257a79cffca6bafcbb, type: 2}
|
||||||
defaultAppearancesTags:
|
defaultAppearancesTags:
|
||||||
- size
|
- size
|
||||||
|
@ -9,6 +9,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Example/Example 1A - Effects.unity
|
assetPath: Assets/Plugins/Febucci/Text Animator/Example/Example 1A - Effects.unity
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -642,6 +642,8 @@ MonoBehaviour:
|
|||||||
databaseBehaviors: {fileID: 11400000, guid: 143063c9d42da4bb3bdef3e969df1633, type: 2}
|
databaseBehaviors: {fileID: 11400000, guid: 143063c9d42da4bb3bdef3e969df1633, type: 2}
|
||||||
databaseAppearances: {fileID: 11400000, guid: efcefe34ffbda4c5eb7e39d858738fbc,
|
databaseAppearances: {fileID: 11400000, guid: efcefe34ffbda4c5eb7e39d858738fbc,
|
||||||
type: 2}
|
type: 2}
|
||||||
|
useDefaultStyleSheet: 1
|
||||||
|
styleSheet: {fileID: 0}
|
||||||
databaseActions: {fileID: 11400000, guid: 59963a936d6fb4257a79cffca6bafcbb, type: 2}
|
databaseActions: {fileID: 11400000, guid: 59963a936d6fb4257a79cffca6bafcbb, type: 2}
|
||||||
defaultAppearancesTags:
|
defaultAppearancesTags:
|
||||||
- rdir
|
- rdir
|
||||||
|
@ -9,6 +9,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Example/Example 1B - Stacks.unity
|
assetPath: Assets/Plugins/Febucci/Text Animator/Example/Example 1B - Stacks.unity
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -189,10 +189,10 @@ MonoBehaviour:
|
|||||||
|
|
||||||
<wiggle>wiggle1</> <wiggle a=2 f=2>wiggle2</>
|
<wiggle>wiggle1</> <wiggle a=2 f=2>wiggle2</>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
In
|
|
||||||
the previous example, the first tag is "<color=red><noparse><wiggle></noparse></color>".
|
In the
|
||||||
|
previous example, the first tag is "<color=red><noparse><wiggle></noparse></color>".
|
||||||
|
|
||||||
The
|
The
|
||||||
second tag is "<color=red><noparse><wiggle</noparse><color=blue> a=2 </color><color=#005500>f=2</color><noparse>></noparse></color>",
|
second tag is "<color=red><noparse><wiggle</noparse><color=blue> a=2 </color><color=#005500>f=2</color><noparse>></noparse></color>",
|
||||||
@ -585,6 +585,8 @@ MonoBehaviour:
|
|||||||
databaseBehaviors: {fileID: 11400000, guid: 143063c9d42da4bb3bdef3e969df1633, type: 2}
|
databaseBehaviors: {fileID: 11400000, guid: 143063c9d42da4bb3bdef3e969df1633, type: 2}
|
||||||
databaseAppearances: {fileID: 11400000, guid: efcefe34ffbda4c5eb7e39d858738fbc,
|
databaseAppearances: {fileID: 11400000, guid: efcefe34ffbda4c5eb7e39d858738fbc,
|
||||||
type: 2}
|
type: 2}
|
||||||
|
useDefaultStyleSheet: 1
|
||||||
|
styleSheet: {fileID: 0}
|
||||||
databaseActions: {fileID: 11400000, guid: 59963a936d6fb4257a79cffca6bafcbb, type: 2}
|
databaseActions: {fileID: 11400000, guid: 59963a936d6fb4257a79cffca6bafcbb, type: 2}
|
||||||
defaultAppearancesTags:
|
defaultAppearancesTags:
|
||||||
- vertexp
|
- vertexp
|
||||||
|
@ -9,6 +9,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Example/Example 1C - Attributes.unity
|
assetPath: Assets/Plugins/Febucci/Text Animator/Example/Example 1C - Attributes.unity
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -527,6 +527,8 @@ MonoBehaviour:
|
|||||||
useDefaultDatabases: 1
|
useDefaultDatabases: 1
|
||||||
databaseBehaviors: {fileID: 0}
|
databaseBehaviors: {fileID: 0}
|
||||||
databaseAppearances: {fileID: 0}
|
databaseAppearances: {fileID: 0}
|
||||||
|
useDefaultStyleSheet: 1
|
||||||
|
styleSheet: {fileID: 0}
|
||||||
databaseActions: {fileID: 0}
|
databaseActions: {fileID: 0}
|
||||||
defaultAppearancesTags:
|
defaultAppearancesTags:
|
||||||
- diagexp
|
- diagexp
|
||||||
|
@ -9,6 +9,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Example/Example 2 - Events.unity
|
assetPath: Assets/Plugins/Febucci/Text Animator/Example/Example 2 - Events.unity
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -43,7 +43,7 @@ RenderSettings:
|
|||||||
--- !u!157 &3
|
--- !u!157 &3
|
||||||
LightmapSettings:
|
LightmapSettings:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
serializedVersion: 11
|
serializedVersion: 12
|
||||||
m_GIWorkflowMode: 1
|
m_GIWorkflowMode: 1
|
||||||
m_GISettings:
|
m_GISettings:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
@ -54,7 +54,7 @@ LightmapSettings:
|
|||||||
m_EnableBakedLightmaps: 0
|
m_EnableBakedLightmaps: 0
|
||||||
m_EnableRealtimeLightmaps: 0
|
m_EnableRealtimeLightmaps: 0
|
||||||
m_LightmapEditorSettings:
|
m_LightmapEditorSettings:
|
||||||
serializedVersion: 10
|
serializedVersion: 12
|
||||||
m_Resolution: 2
|
m_Resolution: 2
|
||||||
m_BakeResolution: 40
|
m_BakeResolution: 40
|
||||||
m_AtlasSize: 1024
|
m_AtlasSize: 1024
|
||||||
@ -62,6 +62,7 @@ LightmapSettings:
|
|||||||
m_AOMaxDistance: 1
|
m_AOMaxDistance: 1
|
||||||
m_CompAOExponent: 1
|
m_CompAOExponent: 1
|
||||||
m_CompAOExponentDirect: 0
|
m_CompAOExponentDirect: 0
|
||||||
|
m_ExtractAmbientOcclusion: 0
|
||||||
m_Padding: 2
|
m_Padding: 2
|
||||||
m_LightmapParameters: {fileID: 0}
|
m_LightmapParameters: {fileID: 0}
|
||||||
m_LightmapsBakeMode: 1
|
m_LightmapsBakeMode: 1
|
||||||
@ -76,10 +77,16 @@ LightmapSettings:
|
|||||||
m_PVRDirectSampleCount: 32
|
m_PVRDirectSampleCount: 32
|
||||||
m_PVRSampleCount: 500
|
m_PVRSampleCount: 500
|
||||||
m_PVRBounces: 2
|
m_PVRBounces: 2
|
||||||
|
m_PVREnvironmentSampleCount: 500
|
||||||
|
m_PVREnvironmentReferencePointCount: 2048
|
||||||
|
m_PVRFilteringMode: 2
|
||||||
|
m_PVRDenoiserTypeDirect: 0
|
||||||
|
m_PVRDenoiserTypeIndirect: 0
|
||||||
|
m_PVRDenoiserTypeAO: 0
|
||||||
m_PVRFilterTypeDirect: 0
|
m_PVRFilterTypeDirect: 0
|
||||||
m_PVRFilterTypeIndirect: 0
|
m_PVRFilterTypeIndirect: 0
|
||||||
m_PVRFilterTypeAO: 0
|
m_PVRFilterTypeAO: 0
|
||||||
m_PVRFilteringMode: 2
|
m_PVREnvironmentMIS: 0
|
||||||
m_PVRCulling: 1
|
m_PVRCulling: 1
|
||||||
m_PVRFilteringGaussRadiusDirect: 1
|
m_PVRFilteringGaussRadiusDirect: 1
|
||||||
m_PVRFilteringGaussRadiusIndirect: 5
|
m_PVRFilteringGaussRadiusIndirect: 5
|
||||||
@ -87,9 +94,12 @@ LightmapSettings:
|
|||||||
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
||||||
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
||||||
m_PVRFilteringAtrousPositionSigmaAO: 1
|
m_PVRFilteringAtrousPositionSigmaAO: 1
|
||||||
m_ShowResolutionOverlay: 1
|
m_ExportTrainingData: 0
|
||||||
|
m_TrainingDataDestination: TrainingData
|
||||||
|
m_LightProbeSampleCountMultiplier: 4
|
||||||
m_LightingDataAsset: {fileID: 0}
|
m_LightingDataAsset: {fileID: 0}
|
||||||
m_UseShadowmask: 1
|
m_LightingSettings: {fileID: 4890085278179872738, guid: badfc58f508f145348bc54e664e484ac,
|
||||||
|
type: 2}
|
||||||
--- !u!196 &4
|
--- !u!196 &4
|
||||||
NavMeshSettings:
|
NavMeshSettings:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
@ -109,6 +119,8 @@ NavMeshSettings:
|
|||||||
manualTileSize: 0
|
manualTileSize: 0
|
||||||
tileSize: 256
|
tileSize: 256
|
||||||
accuratePlacement: 0
|
accuratePlacement: 0
|
||||||
|
maxJobWorkers: 0
|
||||||
|
preserveTilesOutsideBounds: 0
|
||||||
debug:
|
debug:
|
||||||
m_Flags: 0
|
m_Flags: 0
|
||||||
m_NavMeshData: {fileID: 0}
|
m_NavMeshData: {fileID: 0}
|
||||||
@ -122,7 +134,7 @@ GameObject:
|
|||||||
m_Component:
|
m_Component:
|
||||||
- component: {fileID: 333414663}
|
- component: {fileID: 333414663}
|
||||||
m_Layer: 0
|
m_Layer: 0
|
||||||
m_Name: '---------------------'
|
m_Name: ---------------------
|
||||||
m_TagString: EditorOnly
|
m_TagString: EditorOnly
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
@ -181,12 +193,14 @@ MonoBehaviour:
|
|||||||
|
|
||||||
Waiting one second:<waitfor=1> done.
|
Waiting one second:<waitfor=1> done.
|
||||||
|
|
||||||
Waiting three seconds: <waitfor=3> done.
|
Waiting
|
||||||
|
three seconds: <waitfor=3> done.
|
||||||
|
|
||||||
Waiting your input:<waitinput> done.
|
Waiting your input:<waitinput> done.
|
||||||
|
|
||||||
|
|
||||||
You can also create your own (via C#).
|
You
|
||||||
|
can also create your own (via C#).
|
||||||
|
|
||||||
Read the docs for more ^^'
|
Read the docs for more ^^'
|
||||||
--- !u!4 &349547109
|
--- !u!4 &349547109
|
||||||
@ -241,9 +255,10 @@ Camera:
|
|||||||
m_ClearFlags: 2
|
m_ClearFlags: 2
|
||||||
m_BackGroundColor: {r: 1, g: 1, b: 1, a: 0}
|
m_BackGroundColor: {r: 1, g: 1, b: 1, a: 0}
|
||||||
m_projectionMatrixMode: 1
|
m_projectionMatrixMode: 1
|
||||||
|
m_GateFitMode: 2
|
||||||
|
m_FOVAxisMode: 0
|
||||||
m_SensorSize: {x: 36, y: 24}
|
m_SensorSize: {x: 36, y: 24}
|
||||||
m_LensShift: {x: 0, y: 0}
|
m_LensShift: {x: 0, y: 0}
|
||||||
m_GateFitMode: 2
|
|
||||||
m_FocalLength: 50
|
m_FocalLength: 50
|
||||||
m_NormalizedViewPortRect:
|
m_NormalizedViewPortRect:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
@ -353,7 +368,7 @@ GameObject:
|
|||||||
m_Component:
|
m_Component:
|
||||||
- component: {fileID: 923047836}
|
- component: {fileID: 923047836}
|
||||||
m_Layer: 0
|
m_Layer: 0
|
||||||
m_Name: '---------------------'
|
m_Name: ---------------------
|
||||||
m_TagString: EditorOnly
|
m_TagString: EditorOnly
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
@ -427,11 +442,11 @@ MonoBehaviour:
|
|||||||
m_Material: {fileID: 0}
|
m_Material: {fileID: 0}
|
||||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
m_RaycastTarget: 1
|
m_RaycastTarget: 1
|
||||||
|
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
m_Maskable: 1
|
||||||
m_OnCullStateChanged:
|
m_OnCullStateChanged:
|
||||||
m_PersistentCalls:
|
m_PersistentCalls:
|
||||||
m_Calls: []
|
m_Calls: []
|
||||||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
|
||||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
|
||||||
m_text: Press play to test typewriter actions
|
m_text: Press play to test typewriter actions
|
||||||
m_isRightToLeft: 0
|
m_isRightToLeft: 0
|
||||||
m_fontAsset: {fileID: 11400000, guid: 1ffb8c3515fb6dc4688eff5a7e48200f, type: 2}
|
m_fontAsset: {fileID: 11400000, guid: 1ffb8c3515fb6dc4688eff5a7e48200f, type: 2}
|
||||||
@ -454,13 +469,12 @@ MonoBehaviour:
|
|||||||
m_fontColorGradientPreset: {fileID: 0}
|
m_fontColorGradientPreset: {fileID: 0}
|
||||||
m_spriteAsset: {fileID: 0}
|
m_spriteAsset: {fileID: 0}
|
||||||
m_tintAllSprites: 0
|
m_tintAllSprites: 0
|
||||||
|
m_StyleSheet: {fileID: 0}
|
||||||
|
m_TextStyleHashCode: -1183493901
|
||||||
m_overrideHtmlColors: 0
|
m_overrideHtmlColors: 0
|
||||||
m_faceColor:
|
m_faceColor:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
rgba: 4294967295
|
rgba: 4294967295
|
||||||
m_outlineColor:
|
|
||||||
serializedVersion: 2
|
|
||||||
rgba: 4278190080
|
|
||||||
m_fontSize: 72
|
m_fontSize: 72
|
||||||
m_fontSizeBase: 53.61
|
m_fontSizeBase: 53.61
|
||||||
m_fontWeight: 400
|
m_fontWeight: 400
|
||||||
@ -468,7 +482,9 @@ MonoBehaviour:
|
|||||||
m_fontSizeMin: 18
|
m_fontSizeMin: 18
|
||||||
m_fontSizeMax: 72
|
m_fontSizeMax: 72
|
||||||
m_fontStyle: 0
|
m_fontStyle: 0
|
||||||
m_textAlignment: 514
|
m_HorizontalAlignment: 2
|
||||||
|
m_VerticalAlignment: 512
|
||||||
|
m_textAlignment: 65535
|
||||||
m_characterSpacing: 0
|
m_characterSpacing: 0
|
||||||
m_wordSpacing: 0
|
m_wordSpacing: 0
|
||||||
m_lineSpacing: 0
|
m_lineSpacing: 0
|
||||||
@ -478,10 +494,8 @@ MonoBehaviour:
|
|||||||
m_enableWordWrapping: 1
|
m_enableWordWrapping: 1
|
||||||
m_wordWrappingRatios: 0.4
|
m_wordWrappingRatios: 0.4
|
||||||
m_overflowMode: 0
|
m_overflowMode: 0
|
||||||
m_firstOverflowCharacterIndex: -1
|
|
||||||
m_linkedTextComponent: {fileID: 0}
|
m_linkedTextComponent: {fileID: 0}
|
||||||
m_isLinkedTextComponent: 0
|
parentLinkedComponent: {fileID: 0}
|
||||||
m_isTextTruncated: 0
|
|
||||||
m_enableKerning: 1
|
m_enableKerning: 1
|
||||||
m_enableExtraPadding: 0
|
m_enableExtraPadding: 0
|
||||||
checkPaddingRequired: 0
|
checkPaddingRequired: 0
|
||||||
@ -489,40 +503,18 @@ MonoBehaviour:
|
|||||||
m_parseCtrlCharacters: 1
|
m_parseCtrlCharacters: 1
|
||||||
m_isOrthographic: 1
|
m_isOrthographic: 1
|
||||||
m_isCullingEnabled: 0
|
m_isCullingEnabled: 0
|
||||||
m_ignoreRectMaskCulling: 0
|
|
||||||
m_ignoreCulling: 1
|
|
||||||
m_horizontalMapping: 0
|
m_horizontalMapping: 0
|
||||||
m_verticalMapping: 0
|
m_verticalMapping: 0
|
||||||
m_uvLineOffset: 0
|
m_uvLineOffset: 0
|
||||||
m_geometrySortingOrder: 0
|
m_geometrySortingOrder: 0
|
||||||
|
m_IsTextObjectScaleStatic: 0
|
||||||
m_VertexBufferAutoSizeReduction: 1
|
m_VertexBufferAutoSizeReduction: 1
|
||||||
m_firstVisibleCharacter: 0
|
|
||||||
m_useMaxVisibleDescender: 1
|
m_useMaxVisibleDescender: 1
|
||||||
m_pageToDisplay: 1
|
m_pageToDisplay: 1
|
||||||
m_margin: {x: 0, y: 0, z: 0, w: 0}
|
m_margin: {x: 0, y: 0, z: 0, w: 0}
|
||||||
m_textInfo:
|
|
||||||
textComponent: {fileID: 1911804839}
|
|
||||||
characterCount: 37
|
|
||||||
spriteCount: 0
|
|
||||||
spaceCount: 5
|
|
||||||
wordCount: 6
|
|
||||||
linkCount: 0
|
|
||||||
lineCount: 2
|
|
||||||
pageCount: 1
|
|
||||||
materialCount: 1
|
|
||||||
m_isUsingLegacyAnimationComponent: 0
|
m_isUsingLegacyAnimationComponent: 0
|
||||||
m_isVolumetricText: 0
|
m_isVolumetricText: 0
|
||||||
m_spriteAnimator: {fileID: 0}
|
|
||||||
m_hasFontAssetChanged: 0
|
m_hasFontAssetChanged: 0
|
||||||
m_subTextObjects:
|
|
||||||
- {fileID: 0}
|
|
||||||
- {fileID: 0}
|
|
||||||
- {fileID: 0}
|
|
||||||
- {fileID: 0}
|
|
||||||
- {fileID: 0}
|
|
||||||
- {fileID: 0}
|
|
||||||
- {fileID: 0}
|
|
||||||
- {fileID: 0}
|
|
||||||
m_baseMaterial: {fileID: 0}
|
m_baseMaterial: {fileID: 0}
|
||||||
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
||||||
--- !u!222 &1911804840
|
--- !u!222 &1911804840
|
||||||
@ -547,7 +539,6 @@ MonoBehaviour:
|
|||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
useTypeWriter: 1
|
useTypeWriter: 1
|
||||||
startTypewriterMode: 3
|
startTypewriterMode: 3
|
||||||
canSkipTypewriter: 1
|
|
||||||
hideAppearancesOnSkip: 0
|
hideAppearancesOnSkip: 0
|
||||||
triggerEventsOnSkip: 0
|
triggerEventsOnSkip: 0
|
||||||
resetTypingSpeedAtStartup: 1
|
resetTypingSpeedAtStartup: 1
|
||||||
@ -555,23 +546,18 @@ MonoBehaviour:
|
|||||||
onTextShowed:
|
onTextShowed:
|
||||||
m_PersistentCalls:
|
m_PersistentCalls:
|
||||||
m_Calls: []
|
m_Calls: []
|
||||||
m_TypeName: UnityEngine.Events.UnityEvent, UnityEngine.CoreModule, Version=0.0.0.0,
|
|
||||||
Culture=neutral, PublicKeyToken=null
|
|
||||||
onTypewriterStart:
|
onTypewriterStart:
|
||||||
m_PersistentCalls:
|
m_PersistentCalls:
|
||||||
m_Calls: []
|
m_Calls: []
|
||||||
m_TypeName: UnityEngine.Events.UnityEvent, UnityEngine.CoreModule, Version=0.0.0.0,
|
|
||||||
Culture=neutral, PublicKeyToken=null
|
|
||||||
onTextDisappeared:
|
onTextDisappeared:
|
||||||
m_PersistentCalls:
|
m_PersistentCalls:
|
||||||
m_Calls: []
|
m_Calls: []
|
||||||
m_TypeName: UnityEngine.Events.UnityEvent, UnityEngine.CoreModule, Version=0.0.0.0,
|
|
||||||
Culture=neutral, PublicKeyToken=null
|
|
||||||
onCharacterVisible:
|
onCharacterVisible:
|
||||||
m_PersistentCalls:
|
m_PersistentCalls:
|
||||||
m_Calls: []
|
m_Calls: []
|
||||||
m_TypeName: Febucci.UI.Core.CharacterEvent, Febucci.TextAnimator.Runtime, Version=0.0.0.0,
|
onMessage:
|
||||||
Culture=neutral, PublicKeyToken=null
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
waitForNormalChars: 0.03
|
waitForNormalChars: 0.03
|
||||||
waitLong: 0.6
|
waitLong: 0.6
|
||||||
waitMiddle: 0.2
|
waitMiddle: 0.2
|
||||||
@ -593,72 +579,22 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: e8ace8ced0e81c847968cdca0aeda757, type: 3}
|
m_Script: {fileID: 11500000, guid: e8ace8ced0e81c847968cdca0aeda757, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
triggerAnimPlayerOnChange: 0
|
typewriterStartsAutomatically: 0
|
||||||
effectIntensityMultiplier: 100
|
animationLoop: 0
|
||||||
appearancesContainer:
|
timeScale: 0
|
||||||
tagsFallback_Appearances:
|
_text:
|
||||||
- rot
|
|
||||||
- fade
|
|
||||||
tagsFallback_Disappearances:
|
|
||||||
- size
|
|
||||||
values:
|
|
||||||
defaults:
|
|
||||||
sizeDuration: 0.36
|
|
||||||
sizeAmplitude: 2
|
|
||||||
fadeDuration: 0.3
|
|
||||||
verticalExpandDuration: 0.3
|
|
||||||
verticalFromBottom: 0
|
|
||||||
horizontalExpandDuration: 0.3
|
|
||||||
horizontalExpandStart: 0
|
|
||||||
diagonalExpandDuration: 0.3
|
|
||||||
diagonalFromBttmLeft: 0
|
|
||||||
offsetDir: {x: 1, y: 1}
|
|
||||||
offsetDuration: 0.3
|
|
||||||
offsetAmplitude: 1
|
|
||||||
rotationDuration: 0.3
|
|
||||||
rotationStartAngle: 180
|
|
||||||
randomDirDuration: 0.3
|
|
||||||
randomDirAmplitude: 1
|
|
||||||
presets: []
|
|
||||||
tags_fallbackBehaviors: []
|
|
||||||
behaviorValues:
|
|
||||||
defaults:
|
|
||||||
wiggleAmplitude: 0.15
|
|
||||||
wiggleFrequency: 8.9
|
|
||||||
waveFrequency: 4.78
|
|
||||||
waveAmplitude: 0.2
|
|
||||||
waveWaveSize: 0.18
|
|
||||||
angleSpeed: 180
|
|
||||||
angleDiffBetweenChars: 10
|
|
||||||
swingAmplitude: 27.5
|
|
||||||
swingFrequency: 5
|
|
||||||
swingWaveSize: 0
|
|
||||||
shakeStrength: 0.085
|
|
||||||
shakeDelay: 0.04
|
|
||||||
sizeAmplitude: 1.4
|
|
||||||
sizeFrequency: 4.84
|
|
||||||
sizeWaveSize: 0.18
|
|
||||||
slideAmplitude: 0.12
|
|
||||||
slideFrequency: 5
|
|
||||||
slideWaveSize: 0
|
|
||||||
bounceAmplitude: 0.08
|
|
||||||
bounceFrequency: 1
|
|
||||||
bounceWaveSize: 0.08
|
|
||||||
hueShiftSpeed: 0.8
|
|
||||||
hueShiftWaveSize: 0.08
|
|
||||||
fadeDelay: 1.2
|
|
||||||
dangleAmplitude: 0.13
|
|
||||||
dangleFrequency: 2.41
|
|
||||||
dangleWaveSize: 0.18
|
|
||||||
dangleAnchorBottom: 0
|
|
||||||
pendAmplitude: 25
|
|
||||||
pendFrequency: 3
|
|
||||||
pendWaveSize: 0.2
|
|
||||||
pendInverted: 0
|
|
||||||
presets: []
|
|
||||||
scriptable_globalBehaviorsValues: {fileID: 0}
|
|
||||||
scriptable_globalAppearancesValues: {fileID: 0}
|
|
||||||
useDynamicScaling: 0
|
useDynamicScaling: 0
|
||||||
referenceFontSize: -1
|
referenceFontSize: -1
|
||||||
isResettingEffectsOnNewText: 1
|
isResettingTimeOnNewText: 1
|
||||||
timeScale: 0
|
useDefaultDatabases: 1
|
||||||
|
databaseBehaviors: {fileID: 0}
|
||||||
|
databaseAppearances: {fileID: 0}
|
||||||
|
useDefaultStyleSheet: 1
|
||||||
|
styleSheet: {fileID: 0}
|
||||||
|
databaseActions: {fileID: 0}
|
||||||
|
defaultAppearancesTags:
|
||||||
|
- size
|
||||||
|
defaultDisappearancesTags:
|
||||||
|
- fade
|
||||||
|
defaultBehaviorsTags: []
|
||||||
|
defaultTagsMode: 0
|
||||||
|
@ -9,6 +9,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Example/Example 3 - Actions.unity
|
assetPath: Assets/Plugins/Febucci/Text Animator/Example/Example 3 - Actions.unity
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -10,6 +10,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Example/Font/Lato-Regular.asset
|
assetPath: Assets/Plugins/Febucci/Text Animator/Example/Font/Lato-Regular.asset
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -24,6 +24,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Example/Font/Lato-Regular.ttf
|
assetPath: Assets/Plugins/Febucci/Text Animator/Example/Font/Lato-Regular.ttf
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -9,6 +9,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Example/Font/OFL.txt
|
assetPath: Assets/Plugins/Febucci/Text Animator/Example/Font/OFL.txt
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -13,6 +13,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Example/Scripts/Runtime/DefaultEffectsExample.cs
|
assetPath: Assets/Plugins/Febucci/Text Animator/Example/Scripts/Runtime/DefaultEffectsExample.cs
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -13,6 +13,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Example/Scripts/Runtime/ExampleEvents.cs
|
assetPath: Assets/Plugins/Febucci/Text Animator/Example/Scripts/Runtime/ExampleEvents.cs
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -9,6 +9,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Example/Scripts/Runtime/Febucci.TextAnimator.Demo.Runtime.asmdef
|
assetPath: Assets/Plugins/Febucci/Text Animator/Example/Scripts/Runtime/Febucci.TextAnimator.Demo.Runtime.asmdef
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -13,6 +13,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Example/Scripts/Runtime/UsageExample.cs
|
assetPath: Assets/Plugins/Febucci/Text Animator/Example/Scripts/Runtime/UsageExample.cs
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -4,9 +4,9 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Example/Sprites/Circle.png
|
assetPath: Assets/Plugins/Febucci/Text Animator/Example/Sprites/Circle.png
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
TextureImporter:
|
TextureImporter:
|
||||||
internalIDToNameTable:
|
internalIDToNameTable:
|
||||||
- first:
|
- first:
|
||||||
|
@ -4,9 +4,9 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Example/Sprites/Example_sprites.png
|
assetPath: Assets/Plugins/Febucci/Text Animator/Example/Sprites/Example_sprites.png
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
TextureImporter:
|
TextureImporter:
|
||||||
internalIDToNameTable:
|
internalIDToNameTable:
|
||||||
- first:
|
- first:
|
||||||
|
@ -110,6 +110,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Example/Sprites/example_dialoguebox_body.png
|
assetPath: Assets/Plugins/Febucci/Text Animator/Example/Sprites/example_dialoguebox_body.png
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -5,3 +5,10 @@ DefaultImporter:
|
|||||||
userData:
|
userData:
|
||||||
assetBundleName:
|
assetBundleName:
|
||||||
assetBundleVariant:
|
assetBundleVariant:
|
||||||
|
AssetOrigin:
|
||||||
|
serializedVersion: 1
|
||||||
|
productId: 254677
|
||||||
|
packageName: Text Animator for Unity
|
||||||
|
packageVersion: 2.1.0
|
||||||
|
assetPath: Assets/Plugins/Febucci/Text Animator/Extra/Typewriter Sound - Package.unitypackage
|
||||||
|
uploadId: 629291
|
||||||
|
@ -9,6 +9,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Integrations/Integrations.txt
|
assetPath: Assets/Plugins/Febucci/Text Animator/Integrations/Integrations.txt
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -5,3 +5,10 @@ DefaultImporter:
|
|||||||
userData:
|
userData:
|
||||||
assetBundleName:
|
assetBundleName:
|
||||||
assetBundleVariant:
|
assetBundleVariant:
|
||||||
|
AssetOrigin:
|
||||||
|
serializedVersion: 1
|
||||||
|
productId: 254677
|
||||||
|
packageName: Text Animator for Unity
|
||||||
|
packageVersion: 2.1.0
|
||||||
|
assetPath: Assets/Plugins/Febucci/Text Animator/Integrations/PlayMaker - Integration.unitypackage
|
||||||
|
uploadId: 629291
|
||||||
|
@ -5,3 +5,11 @@ DefaultImporter:
|
|||||||
userData:
|
userData:
|
||||||
assetBundleName:
|
assetBundleName:
|
||||||
assetBundleVariant:
|
assetBundleVariant:
|
||||||
|
AssetOrigin:
|
||||||
|
serializedVersion: 1
|
||||||
|
productId: 254677
|
||||||
|
packageName: Text Animator for Unity
|
||||||
|
packageVersion: 2.1.0
|
||||||
|
assetPath: Assets/Plugins/Febucci/Text Animator/Integrations/Visual Scripting -
|
||||||
|
Integration.unitypackage
|
||||||
|
uploadId: 629291
|
||||||
|
@ -9,6 +9,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Quick Start [Offline].pdf
|
assetPath: Assets/Plugins/Febucci/Text Animator/Quick Start [Offline].pdf
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -33,6 +33,9 @@ namespace Febucci.UI.Core
|
|||||||
SerializedProperty databaseActionsField;
|
SerializedProperty databaseActionsField;
|
||||||
DatabaseSharedDrawer databaseActionsDrawer;
|
DatabaseSharedDrawer databaseActionsDrawer;
|
||||||
|
|
||||||
|
SerializedProperty useDefaultStylesheet;
|
||||||
|
SerializedProperty styleSheetField;
|
||||||
|
|
||||||
Core.TAnimCore script;
|
Core.TAnimCore script;
|
||||||
static string[] excludedProperties = new string[]
|
static string[] excludedProperties = new string[]
|
||||||
{
|
{
|
||||||
@ -52,6 +55,8 @@ namespace Febucci.UI.Core
|
|||||||
nameof(TAnimCore.isResettingTimeOnNewText),
|
nameof(TAnimCore.isResettingTimeOnNewText),
|
||||||
"databaseActions",
|
"databaseActions",
|
||||||
"useDefaultDatabases",
|
"useDefaultDatabases",
|
||||||
|
nameof(TAnimCore.useDefaultStyleSheet),
|
||||||
|
"styleSheet"
|
||||||
};
|
};
|
||||||
|
|
||||||
void OnEnable()
|
void OnEnable()
|
||||||
@ -75,6 +80,9 @@ namespace Febucci.UI.Core
|
|||||||
defaultAppearancesTags = serializedObject.FindProperty("defaultAppearancesTags");
|
defaultAppearancesTags = serializedObject.FindProperty("defaultAppearancesTags");
|
||||||
defaultBehaviorsTags = serializedObject.FindProperty("defaultBehaviorsTags");
|
defaultBehaviorsTags = serializedObject.FindProperty("defaultBehaviorsTags");
|
||||||
defaultDisappearancesTags = serializedObject.FindProperty("defaultDisappearancesTags");
|
defaultDisappearancesTags = serializedObject.FindProperty("defaultDisappearancesTags");
|
||||||
|
|
||||||
|
useDefaultStylesheet = serializedObject.FindProperty(nameof(Febucci.UI.Core.TAnimCore.useDefaultStyleSheet));
|
||||||
|
styleSheetField = serializedObject.FindProperty("styleSheet");
|
||||||
|
|
||||||
referenceFontSize = serializedObject.FindProperty(nameof(Febucci.UI.Core.TAnimCore.referenceFontSize));
|
referenceFontSize = serializedObject.FindProperty(nameof(Febucci.UI.Core.TAnimCore.referenceFontSize));
|
||||||
useDynamicScaling = serializedObject.FindProperty(nameof(Febucci.UI.Core.TAnimCore.useDynamicScaling));
|
useDynamicScaling = serializedObject.FindProperty(nameof(Febucci.UI.Core.TAnimCore.useDynamicScaling));
|
||||||
@ -511,8 +519,27 @@ namespace Febucci.UI.Core
|
|||||||
bool editBehaviors = false;
|
bool editBehaviors = false;
|
||||||
bool editAppearances = false;
|
bool editAppearances = false;
|
||||||
bool editActions = false;
|
bool editActions = false;
|
||||||
|
TextAnimatorSettings settings;
|
||||||
SerializedObject settingsObject;
|
SerializedObject settingsObject;
|
||||||
|
|
||||||
|
void CacheSettingsObject()
|
||||||
|
{
|
||||||
|
if (!settings) settings = TextAnimatorSettings.Instance;
|
||||||
|
if(!settings) return;
|
||||||
|
if(settingsObject == null) settingsObject = new SerializedObject(settings);
|
||||||
|
}
|
||||||
|
|
||||||
|
void DrawSettingsFixErrorLabel()
|
||||||
|
{
|
||||||
|
EditorGUILayout.BeginHorizontal();
|
||||||
|
EditorGUILayout.HelpBox("Text Animator Settings not found. Please re-run the setup wizard or click the following button.", MessageType.Error);
|
||||||
|
if (GUILayout.Button("Fix it for me", GUILayout.Width(80)))
|
||||||
|
{
|
||||||
|
TextAnimatorSetupWindow.FixSettingsFileNotFound();
|
||||||
|
}
|
||||||
|
EditorGUILayout.EndHorizontal();
|
||||||
|
}
|
||||||
|
|
||||||
void DrawDatabases()
|
void DrawDatabases()
|
||||||
{
|
{
|
||||||
EditorGUILayout.LabelField("Edit Effects & Actions", EditorStyles.boldLabel);
|
EditorGUILayout.LabelField("Edit Effects & Actions", EditorStyles.boldLabel);
|
||||||
@ -533,7 +560,9 @@ namespace Febucci.UI.Core
|
|||||||
{
|
{
|
||||||
EditorGUI.indentLevel++;
|
EditorGUI.indentLevel++;
|
||||||
EditorGUI.BeginChangeCheck();
|
EditorGUI.BeginChangeCheck();
|
||||||
|
GUI.enabled = !useDefaultDatabases.boolValue;
|
||||||
EditorGUILayout.PropertyField(field);
|
EditorGUILayout.PropertyField(field);
|
||||||
|
GUI.enabled = true;
|
||||||
if (EditorGUI.EndChangeCheck())
|
if (EditorGUI.EndChangeCheck())
|
||||||
ForceDatabaseRefresh();
|
ForceDatabaseRefresh();
|
||||||
drawer.OnInspectorGUI(field);
|
drawer.OnInspectorGUI(field);
|
||||||
@ -543,21 +572,14 @@ namespace Febucci.UI.Core
|
|||||||
|
|
||||||
if (useDefaultDatabases.boolValue)
|
if (useDefaultDatabases.boolValue)
|
||||||
{
|
{
|
||||||
var settings = TextAnimatorSettings.Instance;
|
CacheSettingsObject();
|
||||||
|
|
||||||
if (!settings)
|
if (!settings)
|
||||||
{
|
{
|
||||||
EditorGUILayout.BeginHorizontal();
|
DrawSettingsFixErrorLabel();
|
||||||
EditorGUILayout.HelpBox("Text Animator Settings not found. Please re-run the setup wizard or click the following button.", MessageType.Error);
|
|
||||||
if (GUILayout.Button("Fix it for me", GUILayout.Width(80)))
|
|
||||||
{
|
|
||||||
TextAnimatorSetupWindow.FixSettingsFileNotFound();
|
|
||||||
}
|
|
||||||
EditorGUILayout.EndHorizontal();
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if(settingsObject == null) settingsObject = new SerializedObject(settings);
|
|
||||||
|
|
||||||
//Draws default settings instead
|
//Draws default settings instead
|
||||||
SerializedProperty databaseBehaviorsField = settingsObject.FindProperty(nameof(settings.behaviors)).FindPropertyRelative(nameof(settings.behaviors.defaultDatabase));
|
SerializedProperty databaseBehaviorsField = settingsObject.FindProperty(nameof(settings.behaviors)).FindPropertyRelative(nameof(settings.behaviors.defaultDatabase));
|
||||||
SerializedProperty databaseAppearancesField = settingsObject.FindProperty(nameof(settings.appearances)).FindPropertyRelative(nameof(settings.appearances.defaultDatabase));
|
SerializedProperty databaseAppearancesField = settingsObject.FindProperty(nameof(settings.appearances)).FindPropertyRelative(nameof(settings.appearances.defaultDatabase));
|
||||||
@ -579,6 +601,46 @@ namespace Febucci.UI.Core
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region StyleSheet
|
||||||
|
|
||||||
|
void DrawStyleSheet()
|
||||||
|
{
|
||||||
|
EditorGUILayout.LabelField("Style Sheet", EditorStyles.boldLabel);
|
||||||
|
EditorGUI.indentLevel++;
|
||||||
|
|
||||||
|
EditorGUILayout.BeginHorizontal();
|
||||||
|
EditorGUILayout.PropertyField(useDefaultStylesheet);
|
||||||
|
GUI.enabled = false;
|
||||||
|
EditorGUILayout.LabelField(useDefaultStylesheet.boolValue ? "Using the StyleSheet found in your Settings Scriptable Object" : "Using the specific StyleSheet reference below", EditorStyles.wordWrappedMiniLabel);
|
||||||
|
GUI.enabled = true;
|
||||||
|
EditorGUILayout.EndHorizontal();
|
||||||
|
|
||||||
|
if (useDefaultStylesheet.boolValue)
|
||||||
|
{
|
||||||
|
CacheSettingsObject();
|
||||||
|
|
||||||
|
if (!settings)
|
||||||
|
{
|
||||||
|
DrawSettingsFixErrorLabel();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
GUI.enabled = false;
|
||||||
|
var defaultSettingsField = settingsObject.FindProperty(nameof(settings.defaultStyleSheet));
|
||||||
|
EditorGUILayout.PropertyField(defaultSettingsField);
|
||||||
|
GUI.enabled = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
EditorGUILayout.PropertyField(styleSheetField);
|
||||||
|
}
|
||||||
|
|
||||||
|
EditorGUI.indentLevel--;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
#region Main Settings
|
#region Main Settings
|
||||||
void DrawMainSettings()
|
void DrawMainSettings()
|
||||||
{
|
{
|
||||||
@ -610,6 +672,37 @@ namespace Febucci.UI.Core
|
|||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
void DrawHelpers()
|
||||||
|
{
|
||||||
|
//EditorGUILayout.LabelField("Helpers", EditorStyles.boldLabel);
|
||||||
|
|
||||||
|
EditorGUI.indentLevel++;
|
||||||
|
CacheSettingsObject();
|
||||||
|
EditorGUILayout.BeginHorizontal();
|
||||||
|
|
||||||
|
GUI.enabled = settings;
|
||||||
|
if (GUILayout.Button("Select Global Settings", EditorStyles.helpBox))
|
||||||
|
{
|
||||||
|
Selection.activeObject = settings;
|
||||||
|
EditorGUIUtility.PingObject(settings);
|
||||||
|
}
|
||||||
|
GUI.enabled = true;
|
||||||
|
|
||||||
|
if (GUILayout.Button("Open Documentation", EditorStyles.helpBox))
|
||||||
|
{
|
||||||
|
Application.OpenURL("https://www.febucci.com/text-animator-unity/docs/");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (GUILayout.Button("Join Discord", EditorStyles.helpBox))
|
||||||
|
{
|
||||||
|
Application.OpenURL(TextAnimatorSetupWindow.url_discord);
|
||||||
|
}
|
||||||
|
|
||||||
|
EditorGUILayout.EndHorizontal();
|
||||||
|
|
||||||
|
EditorGUI.indentLevel--;
|
||||||
|
}
|
||||||
|
|
||||||
public override void OnInspectorGUI()
|
public override void OnInspectorGUI()
|
||||||
{
|
{
|
||||||
GUI.enabled = false;
|
GUI.enabled = false;
|
||||||
@ -629,6 +722,12 @@ namespace Febucci.UI.Core
|
|||||||
DrawDatabases();
|
DrawDatabases();
|
||||||
EditorGUILayout.Space();
|
EditorGUILayout.Space();
|
||||||
|
|
||||||
|
DrawStyleSheet();
|
||||||
|
EditorGUILayout.Space();
|
||||||
|
|
||||||
|
DrawHelpers();
|
||||||
|
EditorGUILayout.Space();
|
||||||
|
|
||||||
//--- Draws the rest ---
|
//--- Draws the rest ---
|
||||||
//(in case of custom inspector from child classes etc.)
|
//(in case of custom inspector from child classes etc.)
|
||||||
DrawPropertiesExcluding(serializedObject, excludedProperties);
|
DrawPropertiesExcluding(serializedObject, excludedProperties);
|
||||||
|
@ -13,6 +13,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Drawers/Components/TAnimCoreDrawer.cs
|
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Drawers/Components/TAnimCoreDrawer.cs
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -5,6 +5,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Drawers/Components/TypewriterByCharacterDrawer.cs
|
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Drawers/Components/TypewriterByCharacterDrawer.cs
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -5,6 +5,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Drawers/Components/TypewriterByWordDrawer.cs
|
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Drawers/Components/TypewriterByWordDrawer.cs
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -9,6 +9,7 @@ namespace Febucci.UI.Core.Editors
|
|||||||
SerializedProperty showLettersDinamically;
|
SerializedProperty showLettersDinamically;
|
||||||
SerializedProperty startTypewriterMode;
|
SerializedProperty startTypewriterMode;
|
||||||
SerializedProperty hideAppearancesOnSkip;
|
SerializedProperty hideAppearancesOnSkip;
|
||||||
|
SerializedProperty hideDisappearancesOnSkip;
|
||||||
SerializedProperty triggerEventsOnSkip;
|
SerializedProperty triggerEventsOnSkip;
|
||||||
SerializedProperty disappearanceOrientation;
|
SerializedProperty disappearanceOrientation;
|
||||||
|
|
||||||
@ -47,7 +48,8 @@ namespace Febucci.UI.Core.Editors
|
|||||||
"m_Script",
|
"m_Script",
|
||||||
"useTypeWriter",
|
"useTypeWriter",
|
||||||
"startTypewriterMode",
|
"startTypewriterMode",
|
||||||
"hideAppearancesOnSkip",
|
nameof(TypewriterCore.hideAppearancesOnSkip),
|
||||||
|
nameof(TypewriterCore.hideDisappearancesOnSkip),
|
||||||
"triggerEventsOnSkip",
|
"triggerEventsOnSkip",
|
||||||
"onTextShowed",
|
"onTextShowed",
|
||||||
"onTypewriterStart",
|
"onTypewriterStart",
|
||||||
@ -64,6 +66,7 @@ namespace Febucci.UI.Core.Editors
|
|||||||
showLettersDinamically = serializedObject.FindProperty("useTypeWriter");
|
showLettersDinamically = serializedObject.FindProperty("useTypeWriter");
|
||||||
startTypewriterMode = serializedObject.FindProperty("startTypewriterMode");
|
startTypewriterMode = serializedObject.FindProperty("startTypewriterMode");
|
||||||
hideAppearancesOnSkip = serializedObject.FindProperty("hideAppearancesOnSkip");
|
hideAppearancesOnSkip = serializedObject.FindProperty("hideAppearancesOnSkip");
|
||||||
|
hideDisappearancesOnSkip = serializedObject.FindProperty("hideDisappearancesOnSkip");
|
||||||
triggerEventsOnSkip = serializedObject.FindProperty("triggerEventsOnSkip");
|
triggerEventsOnSkip = serializedObject.FindProperty("triggerEventsOnSkip");
|
||||||
disappearanceOrientation = serializedObject.FindProperty("disappearanceOrientation");
|
disappearanceOrientation = serializedObject.FindProperty("disappearanceOrientation");
|
||||||
|
|
||||||
@ -144,8 +147,17 @@ namespace Febucci.UI.Core.Editors
|
|||||||
EditorGUILayout.EndHorizontal();
|
EditorGUILayout.EndHorizontal();
|
||||||
|
|
||||||
|
|
||||||
|
EditorGUILayout.LabelField("Appearing");
|
||||||
|
|
||||||
|
EditorGUI.indentLevel++;
|
||||||
EditorGUILayout.PropertyField(hideAppearancesOnSkip);
|
EditorGUILayout.PropertyField(hideAppearancesOnSkip);
|
||||||
EditorGUILayout.PropertyField(triggerEventsOnSkip);
|
EditorGUILayout.PropertyField(triggerEventsOnSkip);
|
||||||
|
EditorGUI.indentLevel--;
|
||||||
|
|
||||||
|
EditorGUILayout.LabelField("Disappearing");
|
||||||
|
EditorGUI.indentLevel++;
|
||||||
|
EditorGUILayout.PropertyField(hideDisappearancesOnSkip);
|
||||||
|
EditorGUI.indentLevel--;
|
||||||
|
|
||||||
EditorGUI.indentLevel--;
|
EditorGUI.indentLevel--;
|
||||||
|
|
||||||
|
@ -13,6 +13,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Drawers/Components/TypewriterCoreDrawer.cs
|
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Drawers/Components/TypewriterCoreDrawer.cs
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -5,6 +5,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Drawers/Properties/ColorCurvePropertyDrawer.cs
|
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Drawers/Properties/ColorCurvePropertyDrawer.cs
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -5,6 +5,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Drawers/Properties/EmissionCurvePropertyDrawer.cs
|
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Drawers/Properties/EmissionCurvePropertyDrawer.cs
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -5,6 +5,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Drawers/Properties/FloatCurvePropertyDrawer.cs
|
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Drawers/Properties/FloatCurvePropertyDrawer.cs
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -13,6 +13,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Drawers/Scriptables/Actions/ActionScriptableDrawer.cs
|
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Drawers/Scriptables/Actions/ActionScriptableDrawer.cs
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -13,6 +13,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Drawers/Scriptables/Animations/AnimScriptableDrawer.cs
|
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Drawers/Scriptables/Animations/AnimScriptableDrawer.cs
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -13,6 +13,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Drawers/Scriptables/Database/ActionDatabaseScriptableDrawer.cs
|
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Drawers/Scriptables/Database/ActionDatabaseScriptableDrawer.cs
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -13,6 +13,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Drawers/Scriptables/Database/AnimDatabaseScriptableDrawer.cs
|
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Drawers/Scriptables/Database/AnimDatabaseScriptableDrawer.cs
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -5,6 +5,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Drawers/Scriptables/Database/AnimationElementDrawer.cs
|
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Drawers/Scriptables/Database/AnimationElementDrawer.cs
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -13,6 +13,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Drawers/Scriptables/Database/DatabaseSharedDrawer.cs
|
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Drawers/Scriptables/Database/DatabaseSharedDrawer.cs
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -5,6 +5,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Drawers/Settings/TextAnimatorInstallationData.cs
|
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Drawers/Settings/TextAnimatorInstallationData.cs
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -5,6 +5,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Drawers/Settings/TextAnimatorInstallationDataDrawer.cs
|
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Drawers/Settings/TextAnimatorInstallationDataDrawer.cs
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
using System;
|
||||||
using UnityEditor;
|
using UnityEditor;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
@ -8,11 +9,59 @@ namespace Febucci.UI
|
|||||||
{
|
{
|
||||||
bool extraSettings = false;
|
bool extraSettings = false;
|
||||||
|
|
||||||
|
SerializedProperty behaviors;
|
||||||
|
SerializedProperty appearances;
|
||||||
|
SerializedProperty styles;
|
||||||
|
SerializedProperty actions;
|
||||||
|
|
||||||
|
|
||||||
|
void OnEnable()
|
||||||
|
{
|
||||||
|
behaviors = serializedObject.FindProperty(nameof(TextAnimatorSettings.behaviors));
|
||||||
|
appearances = serializedObject.FindProperty(nameof(TextAnimatorSettings.appearances));
|
||||||
|
styles = serializedObject.FindProperty(nameof(TextAnimatorSettings.defaultStyleSheet));
|
||||||
|
actions = serializedObject.FindProperty(nameof(TextAnimatorSettings.actions));
|
||||||
|
}
|
||||||
|
|
||||||
|
void DrawEffects()
|
||||||
|
{
|
||||||
|
EditorGUILayout.LabelField("Effects", EditorStyles.boldLabel);
|
||||||
|
EditorGUI.indentLevel++;
|
||||||
|
EditorGUILayout.PropertyField(behaviors);
|
||||||
|
EditorGUILayout.PropertyField(appearances);
|
||||||
|
EditorGUI.indentLevel--;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DrawActions()
|
||||||
|
{
|
||||||
|
EditorGUILayout.LabelField("Actions", EditorStyles.boldLabel);
|
||||||
|
EditorGUI.indentLevel++;
|
||||||
|
EditorGUILayout.PropertyField(actions);
|
||||||
|
EditorGUI.indentLevel--;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DrawStyles()
|
||||||
|
{
|
||||||
|
EditorGUILayout.LabelField("Styles", EditorStyles.boldLabel);
|
||||||
|
EditorGUI.indentLevel++;
|
||||||
|
EditorGUILayout.PropertyField(styles);
|
||||||
|
EditorGUI.indentLevel--;
|
||||||
|
}
|
||||||
|
|
||||||
public override void OnInspectorGUI()
|
public override void OnInspectorGUI()
|
||||||
{
|
{
|
||||||
base.OnInspectorGUI();
|
EditorGUILayout.HelpBox($"For this to work, make sure that it's named {TextAnimatorSettings.expectedName} and it's placed inside the Resources folder.", MessageType.Info);
|
||||||
|
|
||||||
EditorGUILayout.Space();
|
EditorGUILayout.Space();
|
||||||
|
|
||||||
|
DrawEffects();
|
||||||
|
EditorGUILayout.Space();
|
||||||
|
|
||||||
|
DrawActions();
|
||||||
|
EditorGUILayout.Space();
|
||||||
|
|
||||||
|
DrawStyles();
|
||||||
|
EditorGUILayout.Space();
|
||||||
|
|
||||||
extraSettings = EditorGUILayout.Foldout(extraSettings, "Extra Settings", EditorStyles.foldoutHeader);
|
extraSettings = EditorGUILayout.Foldout(extraSettings, "Extra Settings", EditorStyles.foldoutHeader);
|
||||||
if (extraSettings)
|
if (extraSettings)
|
||||||
{
|
{
|
||||||
|
@ -5,6 +5,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Drawers/Settings/TextAnimatorSettingsDrawer.cs
|
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Drawers/Settings/TextAnimatorSettingsDrawer.cs
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -5,17 +5,20 @@ using UnityEngine;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Febucci.UI.Actions;
|
using Febucci.UI.Actions;
|
||||||
using Febucci.UI.Effects;
|
using Febucci.UI.Effects;
|
||||||
|
using Febucci.UI.Styles;
|
||||||
|
|
||||||
namespace Febucci.UI
|
namespace Febucci.UI
|
||||||
{
|
{
|
||||||
public class TextAnimatorSetupWindow : EditorWindow
|
public class TextAnimatorSetupWindow : EditorWindow
|
||||||
{
|
{
|
||||||
const string currentVersion = "2.0.2";
|
const string currentVersion = "2.1.0";
|
||||||
const string path_defaultInstallation = "Assets/Plugins/Febucci/Text Animator";
|
const string path_defaultInstallation = "Assets/Plugins/Febucci/Text Animator";
|
||||||
|
|
||||||
TextAnimatorInstallationData installationData;
|
TextAnimatorInstallationData installationData;
|
||||||
bool settingsFileFound;
|
bool settingsFileFound;
|
||||||
|
|
||||||
|
public const string url_discord = "https://discord.gg/j4pySDa5rU";
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Called whenever the editor is loaded,
|
/// Called whenever the editor is loaded,
|
||||||
@ -59,9 +62,12 @@ namespace Febucci.UI
|
|||||||
|
|
||||||
#region Window
|
#region Window
|
||||||
|
|
||||||
|
static Version oldVersion;
|
||||||
|
bool shouldUpdate = false;
|
||||||
static void ShowWindow(bool onlyOnUpdate)
|
static void ShowWindow(bool onlyOnUpdate)
|
||||||
{
|
{
|
||||||
// already installed
|
// already installed
|
||||||
|
bool shouldUpdate = false;
|
||||||
if (IsTextAnimatorInstalled(out var installationGUID))
|
if (IsTextAnimatorInstalled(out var installationGUID))
|
||||||
{
|
{
|
||||||
string installationPath = AssetDatabase.GUIDToAssetPath(installationGUID);
|
string installationPath = AssetDatabase.GUIDToAssetPath(installationGUID);
|
||||||
@ -72,9 +78,9 @@ namespace Febucci.UI
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//--- Updates to new version ---
|
Version.TryParse(installationData.latestVersion, out oldVersion);
|
||||||
UpdateProject(installationData);
|
shouldUpdate = UpdateProject(installationData, oldVersion, false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -85,6 +91,8 @@ namespace Febucci.UI
|
|||||||
//Initializes the asset for the first time
|
//Initializes the asset for the first time
|
||||||
var window = (TextAnimatorSetupWindow)GetWindow(typeof(TextAnimatorSetupWindow), true,
|
var window = (TextAnimatorSetupWindow)GetWindow(typeof(TextAnimatorSetupWindow), true,
|
||||||
"Text Animator Setup", true);
|
"Text Animator Setup", true);
|
||||||
|
|
||||||
|
window.shouldUpdate = shouldUpdate;
|
||||||
window.maxSize = new Vector2(351, 485);
|
window.maxSize = new Vector2(351, 485);
|
||||||
window.minSize = window.maxSize;
|
window.minSize = window.maxSize;
|
||||||
window.settingsFileFound = TextAnimatorSettings.Instance;
|
window.settingsFileFound = TextAnimatorSettings.Instance;
|
||||||
@ -114,8 +122,35 @@ namespace Febucci.UI
|
|||||||
EditorGUILayout.Space();
|
EditorGUILayout.Space();
|
||||||
|
|
||||||
EditorGUILayout.LabelField("Welcome!", EditorStyles.boldLabel);
|
EditorGUILayout.LabelField("Welcome!", EditorStyles.boldLabel);
|
||||||
EditorGUILayout.LabelField("Thank you for using Text Animator. Have fun bringing your projects to life!",
|
|
||||||
EditorStyles.wordWrappedLabel);
|
if (shouldUpdate)
|
||||||
|
{
|
||||||
|
//--- Updates to new version ---
|
||||||
|
using (new EditorGUILayout.HorizontalScope(EditorStyles.helpBox))
|
||||||
|
{
|
||||||
|
EditorGUILayout.LabelField(
|
||||||
|
"You have updated to a new version! Do you want us to set up the new things for you?", EditorStyles.wordWrappedLabel);
|
||||||
|
GUI.backgroundColor = Color.green;
|
||||||
|
if (GUILayout.Button("Yes"))
|
||||||
|
{
|
||||||
|
UpdateProject(installationData, oldVersion, true);
|
||||||
|
EditorUtility.DisplayDialog("Text Animator", "Update has been completed. Have fun!", "Yay!");
|
||||||
|
shouldUpdate = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
GUI.backgroundColor = Color.white;
|
||||||
|
if (GUILayout.Button("No"))
|
||||||
|
{
|
||||||
|
shouldUpdate = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
EditorGUILayout.LabelField(
|
||||||
|
"Thank you for using Text Animator. Have fun bringing your projects to life!",
|
||||||
|
EditorStyles.wordWrappedLabel);
|
||||||
|
}
|
||||||
|
|
||||||
EditorGUILayout.Space();
|
EditorGUILayout.Space();
|
||||||
|
|
||||||
@ -133,7 +168,7 @@ namespace Febucci.UI
|
|||||||
FixSettingsFileNotFound();
|
FixSettingsFileNotFound();
|
||||||
settingsFileFound = true;
|
settingsFileFound = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// --- LINKS etc. ---
|
// --- LINKS etc. ---
|
||||||
EditorGUILayout.LabelField("Online Resources", EditorStyles.boldLabel);
|
EditorGUILayout.LabelField("Online Resources", EditorStyles.boldLabel);
|
||||||
EditorGUILayout.LabelField("Here are some useful resources.", EditorStyles.label);
|
EditorGUILayout.LabelField("Here are some useful resources.", EditorStyles.label);
|
||||||
@ -241,12 +276,15 @@ namespace Febucci.UI
|
|||||||
CreateDefaultDatabases(installationFolder,
|
CreateDefaultDatabases(installationFolder,
|
||||||
out var beh,
|
out var beh,
|
||||||
out var app,
|
out var app,
|
||||||
out var act);
|
out var act,
|
||||||
AssignDatabasesToSettings(settings, beh, app, act);
|
out var stylesheet);
|
||||||
|
AssignDatabasesToSettings(settings, beh, app, act, stylesheet);
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Databases and Tags
|
#region Databases and Tags
|
||||||
|
|
||||||
|
const string fileName_stylesheet = "TextAnimator StyleSheet";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Creates default effects and actions databases.
|
/// Creates default effects and actions databases.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -255,20 +293,23 @@ namespace Febucci.UI
|
|||||||
/// <param name="appearances"></param>
|
/// <param name="appearances"></param>
|
||||||
/// <param name="actions"></param>
|
/// <param name="actions"></param>
|
||||||
/// <remarks>In case they already exist, they'll get overwritten.</remarks>
|
/// <remarks>In case they already exist, they'll get overwritten.</remarks>
|
||||||
static void CreateDefaultDatabases(string installationFolder, out AnimationsDatabase behaviors, out AnimationsDatabase appearances, out ActionDatabase actions)
|
static void CreateDefaultDatabases(string installationFolder, out AnimationsDatabase behaviors, out AnimationsDatabase appearances, out ActionDatabase actions, out StyleSheetScriptable styleSheet)
|
||||||
{
|
{
|
||||||
string progressTitle = "Text Animator";
|
string progressTitle = "Text Animator";
|
||||||
|
|
||||||
// --- DATABASES ---
|
// --- DATABASES ---
|
||||||
EditorUtility.DisplayProgressBar(progressTitle, "Creating Behaviors Database", 1/4f);
|
EditorUtility.DisplayProgressBar(progressTitle, "Creating Behaviors Database", 1/5f);
|
||||||
behaviors = _CreateDatabase<AnimationsDatabase, AnimationScriptableBase>(installationFolder, "Behaviors", "Behaviors Database", EffectCategory.Behaviors);
|
behaviors = _CreateDatabase<AnimationsDatabase, AnimationScriptableBase>(installationFolder, "Behaviors", "Behaviors Database", EffectCategory.Behaviors);
|
||||||
|
|
||||||
EditorUtility.DisplayProgressBar(progressTitle, "Creating Appearances Database", 2/4f);
|
EditorUtility.DisplayProgressBar(progressTitle, "Creating Appearances Database", 2/5f);
|
||||||
appearances = _CreateDatabase<AnimationsDatabase, AnimationScriptableBase>(installationFolder, "Appearances", "Appearances Database", EffectCategory.Appearances);
|
appearances = _CreateDatabase<AnimationsDatabase, AnimationScriptableBase>(installationFolder, "Appearances", "Appearances Database", EffectCategory.Appearances);
|
||||||
|
|
||||||
EditorUtility.DisplayProgressBar(progressTitle, "Creating Actions Database", 3/4f);
|
EditorUtility.DisplayProgressBar(progressTitle, "Creating Actions Database", 3/5f);
|
||||||
actions = _CreateDatabase<ActionDatabase, ActionScriptableBase>(installationFolder, "Actions", "Actions Database", EffectCategory.None);
|
actions = _CreateDatabase<ActionDatabase, ActionScriptableBase>(installationFolder, "Actions", "Actions Database", EffectCategory.None);
|
||||||
|
|
||||||
|
EditorUtility.DisplayProgressBar(progressTitle, "Creating Default Style Sheet",4/5f);
|
||||||
|
styleSheet = CreateStyleSheet(installationFolder);
|
||||||
|
|
||||||
AssetDatabase.SaveAssets();
|
AssetDatabase.SaveAssets();
|
||||||
EditorUtility.ClearProgressBar();
|
EditorUtility.ClearProgressBar();
|
||||||
}
|
}
|
||||||
@ -351,7 +392,7 @@ namespace Febucci.UI
|
|||||||
#region Settings
|
#region Settings
|
||||||
|
|
||||||
static void AssignDatabasesToSettings(TextAnimatorSettings settings, AnimationsDatabase behaviorsDatabase,
|
static void AssignDatabasesToSettings(TextAnimatorSettings settings, AnimationsDatabase behaviorsDatabase,
|
||||||
AnimationsDatabase appearanceDatabase, ActionDatabase actionsDatabase)
|
AnimationsDatabase appearanceDatabase, ActionDatabase actionsDatabase, StyleSheetScriptable stylesheet)
|
||||||
{
|
{
|
||||||
SerializedObject serialized = new SerializedObject(settings);
|
SerializedObject serialized = new SerializedObject(settings);
|
||||||
serialized.FindProperty(nameof(settings.actions))
|
serialized.FindProperty(nameof(settings.actions))
|
||||||
@ -365,6 +406,8 @@ namespace Febucci.UI
|
|||||||
.FindPropertyRelative(nameof(settings.appearances.defaultDatabase)).objectReferenceValue =
|
.FindPropertyRelative(nameof(settings.appearances.defaultDatabase)).objectReferenceValue =
|
||||||
appearanceDatabase;
|
appearanceDatabase;
|
||||||
|
|
||||||
|
serialized.FindProperty(nameof(settings.defaultStyleSheet)).objectReferenceValue = stylesheet;
|
||||||
|
|
||||||
serialized.ApplyModifiedProperties();
|
serialized.ApplyModifiedProperties();
|
||||||
serialized.Update();
|
serialized.Update();
|
||||||
}
|
}
|
||||||
@ -417,14 +460,39 @@ namespace Febucci.UI
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
StyleSheetScriptable GetOrCreateStylesheet()
|
||||||
|
{
|
||||||
|
string databaseGuid = AssetDatabase.FindAssets($"t:{nameof(StyleSheetScriptable)}").FirstOrDefault();
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(databaseGuid))
|
||||||
|
{
|
||||||
|
return AssetDatabase.LoadAssetAtPath<StyleSheetScriptable>(AssetDatabase.GUIDToAssetPath(databaseGuid));
|
||||||
|
}
|
||||||
|
|
||||||
|
// tries creating new database
|
||||||
|
if (TryGetInstallationFolder(out installationFolder))
|
||||||
|
{
|
||||||
|
return CreateStyleSheet(installationFolder);
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
var settings = GetOrCreateSettings(installationFolder);
|
var settings = GetOrCreateSettings(installationFolder);
|
||||||
AssignDatabasesToSettings(settings,
|
AssignDatabasesToSettings(settings,
|
||||||
GetOrCreateDatabase<AnimationsDatabase, AnimationScriptableBase>("Behaviors", "Behaviors Database", EffectCategory.Behaviors),
|
GetOrCreateDatabase<AnimationsDatabase, AnimationScriptableBase>("Behaviors", "Behaviors Database", EffectCategory.Behaviors),
|
||||||
GetOrCreateDatabase<AnimationsDatabase, AnimationScriptableBase>("Appearances",
|
GetOrCreateDatabase<AnimationsDatabase, AnimationScriptableBase>("Appearances",
|
||||||
"Appearances Database", EffectCategory.Appearances),
|
"Appearances Database", EffectCategory.Appearances),
|
||||||
GetOrCreateDatabase<ActionDatabase, ActionScriptableBase>("Actions", "Actions Database", EffectCategory.None));
|
GetOrCreateDatabase<ActionDatabase, ActionScriptableBase>("Actions", "Actions Database", EffectCategory.None),
|
||||||
|
GetOrCreateStylesheet());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static StyleSheetScriptable CreateStyleSheet(string installationFolder)
|
||||||
|
{
|
||||||
|
var result = _CreateScriptableAssetAtPath<StyleSheetScriptable>(installationFolder + $"/Styles", fileName_stylesheet);
|
||||||
|
EditorUtility.SetDirty(result);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
@ -434,11 +502,33 @@ namespace Febucci.UI
|
|||||||
/// Checks for stuff and updates some project files if needed
|
/// Checks for stuff and updates some project files if needed
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="installationData"></param>
|
/// <param name="installationData"></param>
|
||||||
static void UpdateProject(TextAnimatorInstallationData installationData)
|
static bool UpdateProject(TextAnimatorInstallationData installationData, Version oldVersion, bool performUpdate)
|
||||||
{
|
{
|
||||||
//TODO on new update
|
if (!TryGetInstallationFolder(out string installationFolder))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool shouldUpdate = false;
|
||||||
|
if (!string.IsNullOrEmpty(installationData.latestVersion))
|
||||||
|
{
|
||||||
|
// 2.1.0 added Style Sheets
|
||||||
|
if (oldVersion < new Version(2, 1, 0))
|
||||||
|
{
|
||||||
|
if (performUpdate && TextAnimatorSettings.Instance)
|
||||||
|
{
|
||||||
|
var styleSheet = CreateStyleSheet(installationFolder);
|
||||||
|
TextAnimatorSettings.Instance.defaultStyleSheet = styleSheet;
|
||||||
|
EditorUtility.SetDirty(TextAnimatorSettings.Instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
shouldUpdate = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
installationData.latestVersion = currentVersion;
|
installationData.latestVersion = currentVersion;
|
||||||
EditorUtility.SetDirty(installationData);
|
EditorUtility.SetDirty(installationData);
|
||||||
|
return shouldUpdate;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -5,6 +5,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Drawers/Settings/TextAnimatorSetupWindow.cs
|
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Drawers/Settings/TextAnimatorSetupWindow.cs
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -13,6 +13,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Drawers/_Core/GenericSharedDrawer.cs
|
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Drawers/_Core/GenericSharedDrawer.cs
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -13,6 +13,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Drawers/_Core/SharedDrawer.cs
|
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Drawers/_Core/SharedDrawer.cs
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -13,6 +13,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Drawers/_Core/TexturesLoader.cs
|
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Drawers/_Core/TexturesLoader.cs
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -9,6 +9,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Febucci.TextAnimator.Editor.asmdef
|
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Febucci.TextAnimator.Editor.asmdef
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -110,6 +110,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Resources/Text Animator/about_logo.png
|
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Resources/Text Animator/about_logo.png
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -110,6 +110,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Resources/Text Animator/pause_icon.png
|
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Resources/Text Animator/pause_icon.png
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -110,6 +110,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Resources/Text Animator/play_icon.png
|
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Resources/Text Animator/play_icon.png
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -110,6 +110,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Resources/Text Animator/restart_icon.png
|
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Resources/Text Animator/restart_icon.png
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -110,6 +110,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Resources/Text Animator/save_icon.png
|
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Resources/Text Animator/save_icon.png
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -98,6 +98,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Resources/Text Animator/stop_icon.png
|
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Editor/Resources/Text Animator/stop_icon.png
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -9,6 +9,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Runtime/Components/Animator/TextMeshPro/Febucci.TextAnimator.TMP.Runtime.asmdef
|
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Runtime/Components/Animator/TextMeshPro/Febucci.TextAnimator.TMP.Runtime.asmdef
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -33,7 +33,7 @@ namespace Febucci.UI.Core.Parsing
|
|||||||
new TMPTagInfo("<pos="),
|
new TMPTagInfo("<pos="),
|
||||||
new TMPTagInfo("<rotate="), new TMPTagInfo("</rotate>"),
|
new TMPTagInfo("<rotate="), new TMPTagInfo("</rotate>"),
|
||||||
new TMPTagInfo("<s>"), new TMPTagInfo("</s>"),
|
new TMPTagInfo("<s>"), new TMPTagInfo("</s>"),
|
||||||
new TMPTagInfo("<size="),
|
new TMPTagInfo("<size="), new TMPTagInfo("</size>"),
|
||||||
new TMPTagInfo("<smallcaps>"), new TMPTagInfo("</smallcaps>"),
|
new TMPTagInfo("<smallcaps>"), new TMPTagInfo("</smallcaps>"),
|
||||||
new TMPTagInfo("<space="),
|
new TMPTagInfo("<space="),
|
||||||
new TMPTagInfo("<sprite", true), new TMPTagInfo("<sprite ", true),
|
new TMPTagInfo("<sprite", true), new TMPTagInfo("<sprite ", true),
|
||||||
|
@ -13,6 +13,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Runtime/Components/Animator/TextMeshPro/TMPTagParser.cs
|
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Runtime/Components/Animator/TextMeshPro/TMPTagParser.cs
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -103,6 +103,8 @@ namespace Febucci.UI
|
|||||||
//needed to update tmp mesh from editor
|
//needed to update tmp mesh from editor
|
||||||
tmpComponent.havePropertiesChanged = true;
|
tmpComponent.havePropertiesChanged = true;
|
||||||
UnityEditor.EditorUtility.SetDirty(tmpComponent);
|
UnityEditor.EditorUtility.SetDirty(tmpComponent);
|
||||||
|
|
||||||
|
Animate(0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
|
@ -13,6 +13,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Runtime/Components/Animator/TextMeshPro/TextAnimator_TMP.cs
|
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Runtime/Components/Animator/TextMeshPro/TextAnimator_TMP.cs
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -5,6 +5,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Runtime/Components/Animator/_Core/AnimationLoop.cs
|
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Runtime/Components/Animator/_Core/AnimationLoop.cs
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -3,6 +3,7 @@ using System.Text;
|
|||||||
using Febucci.UI.Actions;
|
using Febucci.UI.Actions;
|
||||||
using Febucci.UI.Core.Parsing;
|
using Febucci.UI.Core.Parsing;
|
||||||
using Febucci.UI.Effects;
|
using Febucci.UI.Effects;
|
||||||
|
using Febucci.UI.Styles;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.Serialization;
|
using UnityEngine.Serialization;
|
||||||
|
|
||||||
@ -285,6 +286,24 @@ namespace Febucci.UI.Core
|
|||||||
requiresTagRefresh = true;
|
requiresTagRefresh = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ----------------
|
||||||
|
// -- Styles --
|
||||||
|
// ----------------
|
||||||
|
|
||||||
|
public bool useDefaultStyleSheet = true;
|
||||||
|
[SerializeField] StyleSheetScriptable styleSheet;
|
||||||
|
|
||||||
|
public StyleSheetScriptable StyleSheet
|
||||||
|
{
|
||||||
|
get => useDefaultStyleSheet ? TextAnimatorSettings.Instance.defaultStyleSheet : styleSheet;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
useDefaultStyleSheet = false;
|
||||||
|
requiresTagRefresh = true;
|
||||||
|
styleSheet = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// ----------------
|
// ----------------
|
||||||
// -- Effects --
|
// -- Effects --
|
||||||
@ -492,6 +511,7 @@ namespace Febucci.UI.Core
|
|||||||
if(DatabaseActions) DatabaseActions.ForceBuildRefresh();
|
if(DatabaseActions) DatabaseActions.ForceBuildRefresh();
|
||||||
if(DatabaseAppearances) DatabaseAppearances.ForceBuildRefresh();
|
if(DatabaseAppearances) DatabaseAppearances.ForceBuildRefresh();
|
||||||
if(DatabaseBehaviors) DatabaseBehaviors.ForceBuildRefresh();
|
if(DatabaseBehaviors) DatabaseBehaviors.ForceBuildRefresh();
|
||||||
|
if(StyleSheet) StyleSheet.ForceBuildRefresh();
|
||||||
|
|
||||||
OnInitialized();
|
OnInitialized();
|
||||||
}
|
}
|
||||||
@ -548,7 +568,7 @@ namespace Febucci.UI.Core
|
|||||||
void ConvertText(string textToParse, ShowTextMode showTextMode)
|
void ConvertText(string textToParse, ShowTextMode showTextMode)
|
||||||
{
|
{
|
||||||
#region Local Methods
|
#region Local Methods
|
||||||
void PopulateCharacters()
|
void PopulateCharacters(bool resetVisibility)
|
||||||
{
|
{
|
||||||
if (characters.Length < charactersCount)
|
if (characters.Length < charactersCount)
|
||||||
Array.Resize(ref characters, charactersCount);
|
Array.Resize(ref characters, charactersCount);
|
||||||
@ -556,7 +576,7 @@ namespace Febucci.UI.Core
|
|||||||
for (int i = 0; i < charactersCount; i++)
|
for (int i = 0; i < charactersCount; i++)
|
||||||
{
|
{
|
||||||
//--Resets info--
|
//--Resets info--
|
||||||
characters[i].ResetInfo(i);
|
characters[i].ResetInfo(i, resetVisibility);
|
||||||
|
|
||||||
//--Assigns effect times--
|
//--Assigns effect times--
|
||||||
float CalculateRegionMaxDuration(AnimationRegion[] tags)
|
float CalculateRegionMaxDuration(AnimationRegion[] tags)
|
||||||
@ -806,7 +826,6 @@ namespace Febucci.UI.Core
|
|||||||
databaseActions = settings.actions.defaultDatabase;
|
databaseActions = settings.actions.defaultDatabase;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var ruleBehavior = new AnimationParser<AnimationScriptableBase>(settings.behaviors.openingSymbol, '/', settings.behaviors.closingSymbol, VisibilityMode.Persistent, databaseBehaviors);
|
var ruleBehavior = new AnimationParser<AnimationScriptableBase>(settings.behaviors.openingSymbol, '/', settings.behaviors.closingSymbol, VisibilityMode.Persistent, databaseBehaviors);
|
||||||
var ruleAppearance = new AnimationParser<AnimationScriptableBase>(settings.appearances.openingSymbol, '/', settings.appearances.closingSymbol, VisibilityMode.OnVisible, databaseAppearances);
|
var ruleAppearance = new AnimationParser<AnimationScriptableBase>(settings.appearances.openingSymbol, '/', settings.appearances.closingSymbol, VisibilityMode.OnVisible, databaseAppearances);
|
||||||
var ruleDisappearance = new AnimationParser<AnimationScriptableBase>(settings.appearances.openingSymbol, '/', '#', settings.appearances.closingSymbol, VisibilityMode.OnHiding, databaseAppearances);
|
var ruleDisappearance = new AnimationParser<AnimationScriptableBase>(settings.appearances.openingSymbol, '/', '#', settings.appearances.closingSymbol, VisibilityMode.OnHiding, databaseAppearances);
|
||||||
@ -828,8 +847,14 @@ namespace Febucci.UI.Core
|
|||||||
parsers.Add(extraParser);
|
parsers.Add(extraParser);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Parses stylesheets before anything else
|
||||||
|
textWithoutTextAnimTags =
|
||||||
|
StyleSheet
|
||||||
|
? TextParser.ParseText(_text, new StylesParser('<', '/', '>', StyleSheet))
|
||||||
|
: _text;
|
||||||
|
|
||||||
//Convert text in tags, mesh etc.
|
//Convert text in tags, mesh etc.
|
||||||
textWithoutTextAnimTags = TextParser.ParseText(_text, parsers.ToArray());
|
textWithoutTextAnimTags = TextParser.ParseText(textWithoutTextAnimTags, parsers.ToArray());
|
||||||
|
|
||||||
//Set converted text to source
|
//Set converted text to source
|
||||||
SetTextToSource(textWithoutTextAnimTags);
|
SetTextToSource(textWithoutTextAnimTags);
|
||||||
@ -854,7 +879,7 @@ namespace Febucci.UI.Core
|
|||||||
foreach (var disappearance in disappearances) disappearance.animation.InitializeOnce();
|
foreach (var disappearance in disappearances) disappearance.animation.InitializeOnce();
|
||||||
|
|
||||||
//Prepares Characters
|
//Prepares Characters
|
||||||
PopulateCharacters();
|
PopulateCharacters(showTextMode != ShowTextMode.Refresh);
|
||||||
CopyMeshFromSource(ref characters);
|
CopyMeshFromSource(ref characters);
|
||||||
CalculateWords();
|
CalculateWords();
|
||||||
|
|
||||||
@ -899,6 +924,18 @@ namespace Febucci.UI.Core
|
|||||||
/// <param name="text">Full text that you want to paste, including rich text tags.</param>
|
/// <param name="text">Full text that you want to paste, including rich text tags.</param>
|
||||||
/// <remarks>This method shows the text instantly. To control if it should be hidden instead, please see <see cref="SetText(string, bool)"/>. </remarks>
|
/// <remarks>This method shows the text instantly. To control if it should be hidden instead, please see <see cref="SetText(string, bool)"/>. </remarks>
|
||||||
public void SetText(string text) => ConvertText(text, ShowTextMode.Shown);
|
public void SetText(string text) => ConvertText(text, ShowTextMode.Shown);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Changes the text to Text Animator with a new one, keeping the current visibility
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="text"></param>
|
||||||
|
public void SwapText(string text)
|
||||||
|
{
|
||||||
|
int visible = maxVisibleCharacters;
|
||||||
|
ConvertText(text, ShowTextMode.Refresh);
|
||||||
|
maxVisibleCharacters = visible;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Sets the text to Text Animator, parsing its rich text tags.
|
/// Sets the text to Text Animator, parsing its rich text tags.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -948,8 +985,8 @@ namespace Febucci.UI.Core
|
|||||||
{
|
{
|
||||||
//temp fix, opening and closing this TMPro tag (which won't be showed in the text, acting like they aren't there) because otherwise
|
//temp fix, opening and closing this TMPro tag (which won't be showed in the text, acting like they aren't there) because otherwise
|
||||||
//there isn't any way to trigger that the text has changed, if it's actually the same as the previous one.
|
//there isn't any way to trigger that the text has changed, if it's actually the same as the previous one.
|
||||||
if (text.Length <= 0) //forces clearing the mesh during the tempFix, without the <noparse> tags
|
if (string.IsNullOrEmpty(text)) //forces clearing the mesh during the tempFix, without the <noparse> tags
|
||||||
typewriter.ShowText("");
|
typewriter.ShowText(string.Empty);
|
||||||
else
|
else
|
||||||
typewriter.ShowText($"<noparse></noparse>{text}");
|
typewriter.ShowText($"<noparse></noparse>{text}");
|
||||||
}
|
}
|
||||||
@ -1217,6 +1254,7 @@ namespace Febucci.UI.Core
|
|||||||
if(DatabaseActions) DatabaseActions.ForceBuildRefresh();
|
if(DatabaseActions) DatabaseActions.ForceBuildRefresh();
|
||||||
if(DatabaseAppearances) DatabaseAppearances.ForceBuildRefresh();
|
if(DatabaseAppearances) DatabaseAppearances.ForceBuildRefresh();
|
||||||
if(DatabaseBehaviors) DatabaseBehaviors.ForceBuildRefresh();
|
if(DatabaseBehaviors) DatabaseBehaviors.ForceBuildRefresh();
|
||||||
|
if(StyleSheet) StyleSheet.ForceBuildRefresh();
|
||||||
|
|
||||||
ConvertText(GetOriginalTextFromSource(), ShowTextMode.Refresh);
|
ConvertText(GetOriginalTextFromSource(), ShowTextMode.Refresh);
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Runtime/Components/Animator/_Core/TAnimCore.cs
|
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Runtime/Components/Animator/_Core/TAnimCore.cs
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -5,6 +5,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Runtime/Components/Animator/_Core/TimeData.cs
|
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Runtime/Components/Animator/_Core/TimeData.cs
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -5,6 +5,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Runtime/Components/Animator/_Core/TimeScale.cs
|
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Runtime/Components/Animator/_Core/TimeScale.cs
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -13,6 +13,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Runtime/Components/Typewriter/Built-in/TypewriterByCharacter.cs
|
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Runtime/Components/Typewriter/Built-in/TypewriterByCharacter.cs
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -13,6 +13,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Runtime/Components/Typewriter/Built-in/TypewriterByWord.cs
|
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Runtime/Components/Typewriter/Built-in/TypewriterByWord.cs
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -5,6 +5,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Runtime/Components/Typewriter/_Core/CharacterEvent.cs
|
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Runtime/Components/Typewriter/_Core/CharacterEvent.cs
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
@ -5,6 +5,6 @@ AssetOrigin:
|
|||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
productId: 254677
|
productId: 254677
|
||||||
packageName: Text Animator for Unity
|
packageName: Text Animator for Unity
|
||||||
packageVersion: 2.0.2
|
packageVersion: 2.1.0
|
||||||
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Runtime/Components/Typewriter/_Core/MessageEvent.cs
|
assetPath: Assets/Plugins/Febucci/Text Animator/Scripts/Runtime/Components/Typewriter/_Core/MessageEvent.cs
|
||||||
uploadId: 605767
|
uploadId: 629291
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user