[unity] Minor: Formatting changes of last commit 76e8538. See #1890.

This commit is contained in:
Harald Csaszar 2023-09-08 19:28:26 +02:00
parent 76e85387d1
commit e4721a8cf3
3 changed files with 5 additions and 6 deletions

View File

@ -73,7 +73,7 @@ namespace Spine.Unity.Editor {
} }
} }
#region Context Menu Item #region Context Menu Item
[MenuItem("CONTEXT/AtlasAssetBase/Add Addressables Loader")] [MenuItem("CONTEXT/AtlasAssetBase/Add Addressables Loader")]
static void AddAddressablesLoader (MenuCommand cmd) { static void AddAddressablesLoader (MenuCommand cmd) {
if (staticMethods == null) if (staticMethods == null)

View File

@ -232,7 +232,7 @@ namespace Spine.Unity.Editor {
loader = (GenericOnDemandTextureLoader<TargetReference, TextureRequest>)target; loader = (GenericOnDemandTextureLoader<TargetReference, TextureRequest>)target;
if (staticMethods == null) if (staticMethods == null)
staticMethods = CreateStaticMethodImplementations (); staticMethods = CreateStaticMethodImplementations();
} }
#if NEWPLAYMODECALLBACKS #if NEWPLAYMODECALLBACKS

View File

@ -119,7 +119,7 @@ namespace Spine.Unity {
if (materialIndex >= placeholderMap.Length) { if (materialIndex >= placeholderMap.Length) {
Debug.LogError(string.Format("Failed to assign placeholder textures at {0}, material #{1} {2}. " + Debug.LogError(string.Format("Failed to assign placeholder textures at {0}, material #{1} {2}. " +
"It seems like the GenericOnDemandTextureLoader asset was not setup accordingly for the AtlasAsset.", "It seems like the GenericOnDemandTextureLoader asset was not setup accordingly for the AtlasAsset.",
atlasAsset, materialIndex+1, targetMaterial), this); atlasAsset, materialIndex + 1, targetMaterial), this);
return false; return false;
} }
Texture activeTexture = targetMaterial.mainTexture; Texture activeTexture = targetMaterial.mainTexture;
@ -139,8 +139,7 @@ namespace Spine.Unity {
Debug.LogWarning(string.Format("Placeholder texture set to null at {0}, for material #{1} {2}. " + Debug.LogWarning(string.Format("Placeholder texture set to null at {0}, for material #{1} {2}. " +
"It seems like the GenericOnDemandTextureLoader asset was not setup accordingly for the AtlasAsset.", "It seems like the GenericOnDemandTextureLoader asset was not setup accordingly for the AtlasAsset.",
atlasAsset, materialIndex + 1, targetMaterial), this); atlasAsset, materialIndex + 1, targetMaterial), this);
} } else {
else {
targetMaterial.mainTexture = placeholderTexture; targetMaterial.mainTexture = placeholderTexture;
} }
++materialIndex; ++materialIndex;
@ -258,7 +257,7 @@ namespace Spine.Unity {
public abstract Texture GetAlreadyLoadedTexture (int materialIndex, int textureIndex); public abstract Texture GetAlreadyLoadedTexture (int materialIndex, int textureIndex);
public abstract void CreateTextureRequest(TargetReference targetReference, public abstract void CreateTextureRequest (TargetReference targetReference,
MaterialOnDemandData materialData, int textureIndex, Material materialToUpdate); MaterialOnDemandData materialData, int textureIndex, Material materialToUpdate);
public virtual void UnloadUnusedTextures () { public virtual void UnloadUnusedTextures () {