From 0e2fe5c6c946617cfa2117745dcf74967fc50231 Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Mon, 13 Dec 2021 17:24:10 +0100 Subject: [PATCH] [unity] Minor: documentation improvement of SpineAtlasAsset.CreateRuntimeInstance method description. --- .../spine-unity/Asset Types/SpineAtlasAsset.cs | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/spine-unity/Assets/Spine/Runtime/spine-unity/Asset Types/SpineAtlasAsset.cs b/spine-unity/Assets/Spine/Runtime/spine-unity/Asset Types/SpineAtlasAsset.cs index de458b665..41354b957 100644 --- a/spine-unity/Assets/Spine/Runtime/spine-unity/Asset Types/SpineAtlasAsset.cs +++ b/spine-unity/Assets/Spine/Runtime/spine-unity/Asset Types/SpineAtlasAsset.cs @@ -63,7 +63,14 @@ namespace Spine.Unity { } /// - /// Creates a runtime AtlasAsset. Only providing the textures is slower because it has to search for atlas page matches. + /// Creates a runtime AtlasAsset. Only providing the textures is slower + /// because it has to search for atlas page matches. + /// + /// An array of all textures referenced in the provided atlasText + /// atlas asset JSON file. When procedurally creating textures, each Texture.name + /// needs to be set to the atlas page texture filename without the .png extension, + /// e.g. 'my_skeleton' if the png filename listed in the atlas asset file is 'my_skeleton.png'. + /// public static SpineAtlasAsset CreateRuntimeInstance (TextAsset atlasText, Texture2D[] textures, Material materialPropertySource, bool initialize) { // Get atlas page names. string atlasString = atlasText.text; @@ -103,7 +110,12 @@ namespace Spine.Unity { } /// - /// Creates a runtime AtlasAsset. Only providing the textures is slower because it has to search for atlas page matches. + /// Creates a runtime AtlasAsset. Only providing the textures is slower because it has to search for atlas page matches. + /// An array of all textures referenced in the provided atlasText + /// atlas asset JSON file. When procedurally creating textures, each Texture.name + /// needs to be set to the atlas page texture filename without the .png extension, + /// e.g. 'my_skeleton' if the png filename listed in the atlas asset file is 'my_skeleton.png'. + /// public static SpineAtlasAsset CreateRuntimeInstance (TextAsset atlasText, Texture2D[] textures, Shader shader, bool initialize) { if (shader == null) shader = Shader.Find("Spine/Skeleton");