mirror of
https://github.com/maxartz15/VertexAnimation.git
synced 2025-04-19 15:06:04 +02:00
Merge branch 'develop'
This commit is contained in:
commit
47e33e34a2
@ -8,6 +8,7 @@ namespace TAO.VertexAnimation
|
|||||||
public class VA_AnimationLibraryComponentAuthoring : UnityEngine.MonoBehaviour
|
public class VA_AnimationLibraryComponentAuthoring : UnityEngine.MonoBehaviour
|
||||||
{
|
{
|
||||||
public VA_AnimationLibrary animationLibrary;
|
public VA_AnimationLibrary animationLibrary;
|
||||||
|
public bool debugMode = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public class VA_AnimationLibraryConversionSystem : GameObjectConversionSystem
|
public class VA_AnimationLibraryConversionSystem : GameObjectConversionSystem
|
||||||
@ -34,8 +35,12 @@ namespace TAO.VertexAnimation
|
|||||||
{
|
{
|
||||||
// Copy data.
|
// Copy data.
|
||||||
animationDataArray[i] = animationLib.animationLibrary.animationData[i];
|
animationDataArray[i] = animationLib.animationLibrary.animationData[i];
|
||||||
|
|
||||||
|
if (animationLib.debugMode)
|
||||||
|
{
|
||||||
UnityEngine.Debug.Log("VA_AnimationLibrary added " + animationDataArray[i].name.ToString());
|
UnityEngine.Debug.Log("VA_AnimationLibrary added " + animationDataArray[i].name.ToString());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Construct blob asset reference.
|
// Construct blob asset reference.
|
||||||
//BlobAssetReference<VA_AnimationLibraryData> animLibAssetRef = blobBuilder.CreateBlobAssetReference<VA_AnimationLibraryData>(Allocator.Persistent);
|
//BlobAssetReference<VA_AnimationLibraryData> animLibAssetRef = blobBuilder.CreateBlobAssetReference<VA_AnimationLibraryData>(Allocator.Persistent);
|
||||||
@ -45,8 +50,11 @@ namespace TAO.VertexAnimation
|
|||||||
// Add it to the asset store.
|
// Add it to the asset store.
|
||||||
BlobAssetStore.TryAdd(new Hash128(VA_AnimationLibraryUtils.AnimationLibraryAssetStoreName), animLibAssetRef);
|
BlobAssetStore.TryAdd(new Hash128(VA_AnimationLibraryUtils.AnimationLibraryAssetStoreName), animLibAssetRef);
|
||||||
|
|
||||||
|
if (animationLib.debugMode)
|
||||||
|
{
|
||||||
UnityEngine.Debug.Log("VA_AnimationLibrary has " + animLibAssetRef.Value.animations.Length.ToString() + " animations.");
|
UnityEngine.Debug.Log("VA_AnimationLibrary has " + animLibAssetRef.Value.animations.Length.ToString() + " animations.");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Remove the entity since we don't need it anymore.
|
// Remove the entity since we don't need it anymore.
|
||||||
DstEntityManager.DestroyEntity(GetPrimaryEntity(animationLib));
|
DstEntityManager.DestroyEntity(GetPrimaryEntity(animationLib));
|
||||||
|
@ -34,6 +34,7 @@ namespace TAO.VertexAnimation
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.WithNativeDisableContainerSafetyRestriction(animationData)
|
.WithNativeDisableContainerSafetyRestriction(animationData)
|
||||||
|
.WithName("VA_AnimatorSystem")
|
||||||
.ScheduleParallel();
|
.ScheduleParallel();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user