mirror of
https://github.com/maxartz15/VertexAnimation.git
synced 2025-06-13 14:56:18 +02:00
Auto enable instancing.
This commit is contained in:
@ -173,6 +173,8 @@ namespace TAO.VertexAnimation.Editor
|
|||||||
material.DisableKeyword("USE_INTERPOLATION_ON");
|
material.DisableKeyword("USE_INTERPOLATION_ON");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
material.enableInstancing = true;
|
||||||
|
|
||||||
// Generate Prefab
|
// Generate Prefab
|
||||||
prefab = AnimationPrefab.Create(path, name, meshes, material, lodSettings.GetTransitionSettings());
|
prefab = AnimationPrefab.Create(path, name, meshes, material, lodSettings.GetTransitionSettings());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user