mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-06 10:46:53 +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 {
|
public static class SpineMesh {
|
||||||
internal const HideFlags MeshHideflags = HideFlags.DontSaveInBuild | HideFlags.DontSaveInEditor;
|
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 () {
|
public static Mesh NewMesh () {
|
||||||
var m = new Mesh();
|
var m = new Mesh();
|
||||||
|
m.MarkDynamic();
|
||||||
m.name = "Skeleton Mesh";
|
m.name = "Skeleton Mesh";
|
||||||
m.hideFlags = SpineMesh.MeshHideflags;
|
m.hideFlags = SpineMesh.MeshHideflags;
|
||||||
return m;
|
return m;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user