mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-19 00:06:42 +08:00
17 lines
485 B
C#
17 lines
485 B
C#
using UnityEngine;
|
|
|
|
namespace Spine.Unity {
|
|
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;
|
|
}
|
|
}
|
|
}
|