Update Example1.

This commit is contained in:
max 2021-04-05 22:15:36 +02:00
parent 26b08a84d1
commit d6f7cf3212
7 changed files with 472 additions and 460 deletions

View File

@ -10,7 +10,7 @@ MonoBehaviour:
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 0d1625f26e651894b954faf1934378dc, type: 3}
m_Name: AnimationLib
m_Name: Example1AnimationLib
m_EditorClassIdentifier:
animationBooks:
- {fileID: 5308917091715319043, guid: f4349667ca4312e4baf669e11f247ba7, type: 2}
@ -22,4 +22,4 @@ MonoBehaviour:
frameTime: 0.5
duration: 0.59375
loadedAnimationsPreview:
- {fileID: -6703287855718520189, guid: f4349667ca4312e4baf669e11f247ba7, type: 2}
- {fileID: 838620241788919210, guid: f4349667ca4312e4baf669e11f247ba7, type: 2}

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &4439322377000321784
--- !u!1 &2303011547348787453
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
@ -8,9 +8,9 @@ GameObject:
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2877426674608882339}
- component: {fileID: 2259671743654715835}
- component: {fileID: 2274912361467860774}
- component: {fileID: 396590211445760166}
- component: {fileID: 4410611283315000254}
- component: {fileID: 4466524507158033699}
m_Layer: 0
m_Name: Veribot_LOD0
m_TagString: Untagged
@ -18,35 +18,35 @@ GameObject:
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &2877426674608882339
--- !u!4 &396590211445760166
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4439322377000321784}
m_GameObject: {fileID: 2303011547348787453}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 6659800846768908119}
m_Father: {fileID: 9079830206634870098}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!33 &2259671743654715835
--- !u!33 &4410611283315000254
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4439322377000321784}
m_Mesh: {fileID: -7840539518661675495, guid: f4349667ca4312e4baf669e11f247ba7, type: 2}
--- !u!23 &2274912361467860774
m_GameObject: {fileID: 2303011547348787453}
m_Mesh: {fileID: 386408152500851, guid: f4349667ca4312e4baf669e11f247ba7, type: 2}
--- !u!23 &4466524507158033699
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4439322377000321784}
m_GameObject: {fileID: 2303011547348787453}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
@ -81,7 +81,7 @@ MeshRenderer:
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!1 &5886741756517555770
--- !u!1 &5362385683835146283
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
@ -89,9 +89,90 @@ GameObject:
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1236943010672054268}
- component: {fileID: 4639924768716265750}
- component: {fileID: 7706665375240700046}
- component: {fileID: 3002266806704601999}
- component: {fileID: 3109781479040153588}
- component: {fileID: 2626584110897473954}
m_Layer: 0
m_Name: Veribot_LOD1
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &3002266806704601999
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5362385683835146283}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 9079830206634870098}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!33 &3109781479040153588
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5362385683835146283}
m_Mesh: {fileID: -5942015240186470786, guid: f4349667ca4312e4baf669e11f247ba7, type: 2}
--- !u!23 &2626584110897473954
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5362385683835146283}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 5433514719563564357, guid: f4349667ca4312e4baf669e11f247ba7, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!1 &8349599572445953087
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 3694312889089682937}
- component: {fileID: 7064465686605232915}
- component: {fileID: 5232557906101183115}
m_Layer: 0
m_Name: Veribot_LOD2
m_TagString: Untagged
@ -99,35 +180,35 @@ GameObject:
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1236943010672054268
--- !u!4 &3694312889089682937
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5886741756517555770}
m_GameObject: {fileID: 8349599572445953087}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 6659800846768908119}
m_Father: {fileID: 9079830206634870098}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!33 &4639924768716265750
--- !u!33 &7064465686605232915
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5886741756517555770}
m_Mesh: {fileID: 1088559608697913439, guid: f4349667ca4312e4baf669e11f247ba7, type: 2}
--- !u!23 &7706665375240700046
m_GameObject: {fileID: 8349599572445953087}
m_Mesh: {fileID: -5672916859774417665, guid: f4349667ca4312e4baf669e11f247ba7, type: 2}
--- !u!23 &5232557906101183115
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5886741756517555770}
m_GameObject: {fileID: 8349599572445953087}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
@ -162,7 +243,7 @@ MeshRenderer:
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!1 &6190122539575154194
--- !u!1 &8613678844811998231
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
@ -170,10 +251,10 @@ GameObject:
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6659800846768908119}
- component: {fileID: 7104793353331976510}
- component: {fileID: 980833545991907074}
- component: {fileID: 3748953902348982081}
- component: {fileID: 9079830206634870098}
- component: {fileID: 4681244474045385531}
- component: {fileID: 3455046014106764551}
- component: {fileID: 1614717851129066820}
m_Layer: 0
m_Name: Veribot
m_TagString: Untagged
@ -181,30 +262,30 @@ GameObject:
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &6659800846768908119
--- !u!4 &9079830206634870098
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6190122539575154194}
m_GameObject: {fileID: 8613678844811998231}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 2877426674608882339}
- {fileID: 847913833053165962}
- {fileID: 1236943010672054268}
- {fileID: 396590211445760166}
- {fileID: 3002266806704601999}
- {fileID: 3694312889089682937}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!205 &7104793353331976510
--- !u!205 &4681244474045385531
LODGroup:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6190122539575154194}
m_GameObject: {fileID: 8613678844811998231}
serializedVersion: 2
m_LocalReferencePoint: {x: 0.002152443, y: 3.0721068, z: 0.039553642}
m_Size: 8.517475
@ -215,119 +296,38 @@ LODGroup:
- screenRelativeHeight: 0.4
fadeTransitionWidth: 0
renderers:
- renderer: {fileID: 2274912361467860774}
- renderer: {fileID: 4466524507158033699}
- screenRelativeHeight: 0.15
fadeTransitionWidth: 0
renderers:
- renderer: {fileID: 440742223738194855}
- renderer: {fileID: 2626584110897473954}
- screenRelativeHeight: 0.01
fadeTransitionWidth: 0
renderers:
- renderer: {fileID: 7706665375240700046}
- renderer: {fileID: 5232557906101183115}
m_Enabled: 1
--- !u!114 &980833545991907074
--- !u!114 &3455046014106764551
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6190122539575154194}
m_GameObject: {fileID: 8613678844811998231}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 29deecb09ead9e74aa32f9d265f1e7ef, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &3748953902348982081
--- !u!114 &1614717851129066820
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6190122539575154194}
m_GameObject: {fileID: 8613678844811998231}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ea7d7495833204790ba1d3a8755397f8, type: 3}
m_Name:
m_EditorClassIdentifier:
ConversionMode: 0
--- !u!1 &7495487026154091054
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 847913833053165962}
- component: {fileID: 668359196446692849}
- component: {fileID: 440742223738194855}
m_Layer: 0
m_Name: Veribot_LOD1
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &847913833053165962
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7495487026154091054}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 6659800846768908119}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!33 &668359196446692849
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7495487026154091054}
m_Mesh: {fileID: -6972708639971023447, guid: f4349667ca4312e4baf669e11f247ba7, type: 2}
--- !u!23 &440742223738194855
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7495487026154091054}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 5433514719563564357, guid: f4349667ca4312e4baf669e11f247ba7, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}

View File

@ -699,65 +699,6 @@ PrefabInstance:
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 6b9b85ed9ad9c864dbe9bdd66fb174e2, type: 3}
--- !u!1 &1442963400
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1442963402}
- component: {fileID: 1442963401}
- component: {fileID: 1442963403}
m_Layer: 0
m_Name: SampleAnimationSystem
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1442963401
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1442963400}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 32426091bb6243f40ac8e44310903ba6, type: 3}
m_Name:
m_EditorClassIdentifier:
sampleSystem: 1
animationAsset: {fileID: 8333759228975207513, guid: f4349667ca4312e4baf669e11f247ba7, type: 2}
--- !u!4 &1442963402
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1442963400}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1442963403
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1442963400}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ea7d7495833204790ba1d3a8755397f8, type: 3}
m_Name:
m_EditorClassIdentifier:
ConversionMode: 0
--- !u!1 &1757582464
GameObject:
m_ObjectHideFlags: 0
@ -791,7 +732,7 @@ Transform:
- {fileID: 973670068}
- {fileID: 2110778248}
m_Father: {fileID: 0}
m_RootOrder: 5
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1919409176
GameObject:
@ -909,6 +850,25 @@ MonoBehaviour:
m_RequiresDepthTexture: 0
m_RequiresColorTexture: 0
m_Version: 2
--- !u!1 &1939547609 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 8613678844811998231, guid: 6b9b85ed9ad9c864dbe9bdd66fb174e2, type: 3}
m_PrefabInstance: {fileID: 1368237060}
m_PrefabAsset: {fileID: 0}
--- !u!114 &1939547614
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1939547609}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: c23c000b7fd45d24082124648f08658f, type: 3}
m_Name:
m_EditorClassIdentifier:
animations:
- {fileID: 838620241788919210, guid: f4349667ca4312e4baf669e11f247ba7, type: 2}
--- !u!1 &2110778247
GameObject:
m_ObjectHideFlags: 0

View File

@ -3,7 +3,7 @@ using Unity.Mathematics;
using Unity.Collections;
using TAO.VertexAnimation;
public class SampleAnimationSystemsAuthoring : UnityEngine.MonoBehaviour
public class SampleAnimationSystemAuthoring : UnityEngine.MonoBehaviour
{
[UnityEngine.SerializeField]
private SampleSystem sampleSystem = SampleSystem.PlayRandomAnimation;