mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 15:24:55 +08:00
NewMesh should be marked dynamic.
This commit is contained in:
parent
ef92fc3843
commit
200570ea0e
@ -4,8 +4,10 @@ using System.Collections;
|
||||
public static class SpineMesh {
|
||||
internal const HideFlags MeshHideflags = HideFlags.DontSaveInBuild | HideFlags.DontSaveInEditor;
|
||||
|
||||
/// <summary>Factory method for creating a new mesh for use in Spine components. This can be called in field initializers.</summary>
|
||||
public static Mesh NewMesh () {
|
||||
var m = new Mesh();
|
||||
m.MarkDynamic();
|
||||
m.name = "Skeleton Mesh";
|
||||
m.hideFlags = SpineMesh.MeshHideflags;
|
||||
return m;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user