|
@@ -163,12 +163,17 @@ namespace Spine.Unity {
|
|
|
valid = false;
|
|
|
}
|
|
|
|
|
|
+ /// <summary>
|
|
|
+ /// Clears the previously generated mesh and resets the skeleton's pose.</summary>
|
|
|
public virtual void ClearState () {
|
|
|
meshFilter.sharedMesh = null;
|
|
|
currentInstructions.Clear();
|
|
|
if (skeleton != null) skeleton.SetToSetupPose();
|
|
|
}
|
|
|
|
|
|
+ /// <summary>
|
|
|
+ /// Initialize this component. Attempts to load the SkeletonData and creates the internal Skeleton object and buffers.</summary>
|
|
|
+ /// <param name="overwrite">If set to <c>true</c>, it will overwrite internal objects if they were already generated. Otherwise, the initialized component will ignore subsequent calls to initialize.</param>
|
|
|
public virtual void Initialize (bool overwrite) {
|
|
|
if (valid && !overwrite)
|
|
|
return;
|
|
@@ -219,6 +224,8 @@ namespace Spine.Unity {
|
|
|
OnRebuild(this);
|
|
|
}
|
|
|
|
|
|
+ /// <summary>
|
|
|
+ /// Generates a new UnityEngine.Mesh from the internal Skeleton.</summary>
|
|
|
public virtual void LateUpdate () {
|
|
|
if (!valid) return;
|
|
|
|