diff --git a/Assets/YooAsset/Samples~/Basic Sample/GameRes/Music/town.wav b/Assets/YooAsset/Samples~/Basic Sample/GameRes/Music/music_town.wav similarity index 100% rename from Assets/YooAsset/Samples~/Basic Sample/GameRes/Music/town.wav rename to Assets/YooAsset/Samples~/Basic Sample/GameRes/Music/music_town.wav diff --git a/Assets/YooAsset/Samples~/Basic Sample/GameRes/Music/town.wav.meta b/Assets/YooAsset/Samples~/Basic Sample/GameRes/Music/music_town.wav.meta similarity index 100% rename from Assets/YooAsset/Samples~/Basic Sample/GameRes/Music/town.wav.meta rename to Assets/YooAsset/Samples~/Basic Sample/GameRes/Music/music_town.wav.meta diff --git a/Assets/YooAsset/Samples~/Basic Sample/GameRes/Scene/Game1.unity b/Assets/YooAsset/Samples~/Basic Sample/GameRes/Scene/GameScene1.unity similarity index 100% rename from Assets/YooAsset/Samples~/Basic Sample/GameRes/Scene/Game1.unity rename to Assets/YooAsset/Samples~/Basic Sample/GameRes/Scene/GameScene1.unity diff --git a/Assets/YooAsset/Samples~/Basic Sample/GameRes/Scene/Game1.unity.meta b/Assets/YooAsset/Samples~/Basic Sample/GameRes/Scene/GameScene1.unity.meta similarity index 100% rename from Assets/YooAsset/Samples~/Basic Sample/GameRes/Scene/Game1.unity.meta rename to Assets/YooAsset/Samples~/Basic Sample/GameRes/Scene/GameScene1.unity.meta diff --git a/Assets/YooAsset/Samples~/Basic Sample/GameRes/Scene/Game2.unity b/Assets/YooAsset/Samples~/Basic Sample/GameRes/Scene/GameScene2.unity similarity index 100% rename from Assets/YooAsset/Samples~/Basic Sample/GameRes/Scene/Game2.unity rename to Assets/YooAsset/Samples~/Basic Sample/GameRes/Scene/GameScene2.unity diff --git a/Assets/YooAsset/Samples~/Basic Sample/GameRes/Scene/Game2.unity.meta b/Assets/YooAsset/Samples~/Basic Sample/GameRes/Scene/GameScene2.unity.meta similarity index 100% rename from Assets/YooAsset/Samples~/Basic Sample/GameRes/Scene/Game2.unity.meta rename to Assets/YooAsset/Samples~/Basic Sample/GameRes/Scene/GameScene2.unity.meta diff --git a/Assets/YooAsset/Samples~/Basic Sample/GameRes/Texture/bg.png b/Assets/YooAsset/Samples~/Basic Sample/GameRes/Texture/tex_bg.png similarity index 100% rename from Assets/YooAsset/Samples~/Basic Sample/GameRes/Texture/bg.png rename to Assets/YooAsset/Samples~/Basic Sample/GameRes/Texture/tex_bg.png diff --git a/Assets/YooAsset/Samples~/Basic Sample/GameRes/Texture/bg.png.meta b/Assets/YooAsset/Samples~/Basic Sample/GameRes/Texture/tex_bg.png.meta similarity index 100% rename from Assets/YooAsset/Samples~/Basic Sample/GameRes/Texture/bg.png.meta rename to Assets/YooAsset/Samples~/Basic Sample/GameRes/Texture/tex_bg.png.meta diff --git a/Assets/YooAsset/Samples~/Basic Sample/GameRes/Texture/logo.png b/Assets/YooAsset/Samples~/Basic Sample/GameRes/Texture/tex_logo.png similarity index 100% rename from Assets/YooAsset/Samples~/Basic Sample/GameRes/Texture/logo.png rename to Assets/YooAsset/Samples~/Basic Sample/GameRes/Texture/tex_logo.png diff --git a/Assets/YooAsset/Samples~/Basic Sample/GameRes/Texture/logo.png.meta b/Assets/YooAsset/Samples~/Basic Sample/GameRes/Texture/tex_logo.png.meta similarity index 100% rename from Assets/YooAsset/Samples~/Basic Sample/GameRes/Texture/logo.png.meta rename to Assets/YooAsset/Samples~/Basic Sample/GameRes/Texture/tex_logo.png.meta diff --git a/Assets/YooAsset/Samples~/Basic Sample/GameRes/UIPanel/window.prefab b/Assets/YooAsset/Samples~/Basic Sample/GameRes/UIPanel/ui_window.prefab similarity index 100% rename from Assets/YooAsset/Samples~/Basic Sample/GameRes/UIPanel/window.prefab rename to Assets/YooAsset/Samples~/Basic Sample/GameRes/UIPanel/ui_window.prefab diff --git a/Assets/YooAsset/Samples~/Basic Sample/GameRes/UIPanel/window.prefab.meta b/Assets/YooAsset/Samples~/Basic Sample/GameRes/UIPanel/ui_window.prefab.meta similarity index 100% rename from Assets/YooAsset/Samples~/Basic Sample/GameRes/UIPanel/window.prefab.meta rename to Assets/YooAsset/Samples~/Basic Sample/GameRes/UIPanel/ui_window.prefab.meta diff --git a/Assets/YooAsset/Samples~/Basic Sample/GameRes/UIPanel/window2.prefab b/Assets/YooAsset/Samples~/Basic Sample/GameRes/UIPanel/ui_window2.prefab similarity index 100% rename from Assets/YooAsset/Samples~/Basic Sample/GameRes/UIPanel/window2.prefab rename to Assets/YooAsset/Samples~/Basic Sample/GameRes/UIPanel/ui_window2.prefab diff --git a/Assets/YooAsset/Samples~/Basic Sample/GameRes/UIPanel/window2.prefab.meta b/Assets/YooAsset/Samples~/Basic Sample/GameRes/UIPanel/ui_window2.prefab.meta similarity index 100% rename from Assets/YooAsset/Samples~/Basic Sample/GameRes/UIPanel/window2.prefab.meta rename to Assets/YooAsset/Samples~/Basic Sample/GameRes/UIPanel/ui_window2.prefab.meta diff --git a/Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/Game1Scene.cs b/Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/GameScene1.cs similarity index 97% rename from Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/Game1Scene.cs rename to Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/GameScene1.cs index 4a4346f..dd434d1 100644 --- a/Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/Game1Scene.cs +++ b/Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/GameScene1.cs @@ -6,7 +6,7 @@ using UnityEngine.U2D; using UnityEngine.UI; using YooAsset; -public class Game1Scene : MonoBehaviour +public class GameScene1 : MonoBehaviour { public GameObject CanvasRoot; @@ -72,7 +72,7 @@ public class Game1Scene : MonoBehaviour #if UNITY_WEBGL { var rawImage = CanvasRoot.transform.Find("background").GetComponent(); - AssetOperationHandle handle = YooAssets.LoadAssetAsync("bg"); + AssetOperationHandle handle = YooAssets.LoadAssetAsync("tex_bg"); _cachedAssetOperationHandles.Add(handle); handle.Completed += (AssetOperationHandle obj) => { @@ -82,7 +82,7 @@ public class Game1Scene : MonoBehaviour #else { var rawImage = CanvasRoot.transform.Find("background").GetComponent(); - AssetOperationHandle handle = YooAssets.LoadAssetSync("bg"); + AssetOperationHandle handle = YooAssets.LoadAssetSync("tex_bg"); _cachedAssetOperationHandles.Add(handle); rawImage.texture = handle.AssetObject as Texture; } @@ -92,7 +92,7 @@ public class Game1Scene : MonoBehaviour #if UNITY_WEBGL { var logoImage = CanvasRoot.transform.Find("title/logo").GetComponent(); - AssetOperationHandle handle = YooAssets.LoadAssetAsync("logo"); + AssetOperationHandle handle = YooAssets.LoadAssetAsync("tex_logo"); _cachedAssetOperationHandles.Add(handle); handle.Completed += (AssetOperationHandle obj) => { @@ -102,7 +102,7 @@ public class Game1Scene : MonoBehaviour #else { var logoImage = CanvasRoot.transform.Find("title/logo").GetComponent(); - AssetOperationHandle handle = YooAssets.LoadAssetSync("logo"); + AssetOperationHandle handle = YooAssets.LoadAssetSync("tex_logo"); _cachedAssetOperationHandles.Add(handle); logoImage.sprite = handle.AssetObject as Sprite; } @@ -185,7 +185,7 @@ public class Game1Scene : MonoBehaviour var btn = CanvasRoot.transform.Find("load_scene").GetComponent