YahahaMiddleLayerSlim.Resource.YaResourceManager
class YahahaMiddleLayerSlim.Resource.YaResourceManager
Fields and Properties:
- (static)
Func<UnityEngine.GameObject, UniTask> YahahaMiddleLayerSlim.Resource.YaResourceManager.PreloadAsset
Constructors:
YahahaMiddleLayerSlim.Resource.YaResourceManager.New()
Methods:
- (static)
void YahahaMiddleLayerSlim.Resource.YaResourceManager.LoadAssetByPathAsync(string, YahahaMiddleLayerSlim.Core.LocalEventHandleDelegate<UnityEngine.Object>)
- Description: Load asset async by full path
- Parameter path: full path of resource
- Parameter callback: callback of load resource
- (static)
void YahahaMiddleLayerSlim.Resource.YaResourceManager.LoadAssetByIdAsync(string, YahahaMiddleLayerSlim.Core.LocalEventHandleDelegate<UnityEngine.Object>, int)
- Description: Load asset async by item key
- Parameter id: item key of resource
- Parameter callback: callback of load resource
- Parameter status: the load status of purpose
- (static)
void YahahaMiddleLayerSlim.Resource.YaResourceManager.LoadBytesByPathAsync(string, YahahaMiddleLayerSlim.Core.LocalEventHandleDelegate<byte[]>)
- Description: Load bytes by full path
- Parameter path: full path of resource
- Parameter callback: callback of load resource
- (static)
void YahahaMiddleLayerSlim.Resource.YaResourceManager.LoadBytesByIdAsync(string, YahahaMiddleLayerSlim.Core.LocalEventHandleDelegate<byte[]>)
- Description: Load resource bytes by item key
- Parameter id: item key of resource
- Parameter callback: callback of load resource
- (static)
void YahahaMiddleLayerSlim.Resource.YaResourceManager.LoadResourceByUIPackageField(string, YahahaMiddleLayerSlim.Core.LocalEventHandleDelegate<int, string>)
- Description: Load resource bytes by UIPackage field
- Parameter uiFieldItemKey: item key of UIPackage field
- Parameter callback: callback of load resource
- (static)
void YahahaMiddleLayerSlim.Resource.YaResourceManager.RemoveResourceByUIPackageField(string)
- Description: Remove resource bytes by UIPackage field
- Parameter uiFieldItemKey: item key of UIPackage field
- (static)
string YahahaMiddleLayerSlim.Resource.YaResourceManager.AssetIdToPath(string)
- Description: Get asset full path by item key (asset id)
- Parameter id: item key of asset
- Return: full path of asset
- (static)
string YahahaMiddleLayerSlim.Resource.YaResourceManager.PathToAssetId(string)
- Description: Get item key by full path
- Parameter path: full path of asset
- Return: item key of asset
- (static)
UnityEngine.GameObject YahahaMiddleLayerSlim.Resource.YaResourceManager.GetGameObjectByPid(string)
- Description: Get GameObject by pid
- Parameter pid: unique pid of GameObject
- Return: GameObject
- (static)
string YahahaMiddleLayerSlim.Resource.YaResourceManager.GetPidByGameObject(UnityEngine.GameObject)
- Description: Get pid by GameObject
- Parameter gameObject: GameObject
- Return: unique pid of GameObject
- (static)
string YahahaMiddleLayerSlim.Resource.YaResourceManager.GetAssetIdByPrefab(UnityEngine.GameObject)
- (static)
UnityEngine.GameObject YahahaMiddleLayerSlim.Resource.YaResourceManager.GetPlayModeInstance(UnityEngine.GameObject, bool)
- Description: Used for separate from the low-level GameObjects that live across editor and play mode. Play mode instance is only used in play mode and can be safely changed by script (hierarchy change and component change should be avoided in the future to align its behavior with Unity).
- Parameter gameObject:
- Parameter isFromPackage:
- Return:
- (static)
void YahahaMiddleLayerSlim.Resource.YaResourceManager.ClearCache()