AssetLoaders
Coding Style wiki
using OxGFrame.AssetLoader;
核心機制:路徑解析規則
AssetLoaders 內建自動過濾機制,會根據 assetName 的前綴決定加載路徑:
- Asset
- 加載自 Resources: 若路徑帶有 res# 前綴(例如:
res#Prefabs/Player),將自動解析並從 Unity 內置 Resources 加載。 - 加載自 Bundle: 若無前綴,則預設從 YooAsset 資源包中加載 (須注意循址規則)。
- 加載自 Resources: 若路徑帶有 res# 前綴(例如:
- Scene
- 加載自 Build Scene: 若路徑帶有 build# 前綴(例如:
build#SimpleScene),將自動解析並從 Unity 內置 Scenes In Build 清單中加載。
- 加載自 Build Scene: 若路徑帶有 build# 前綴(例如: