Class AssetPack
Syntax
public class AssetPack : ScriptableObject, ISerializationCallbackReceiver
Fields
CurrentAssetPack
Declaration
public static AssetPack CurrentAssetPack
Field Value
Properties
AssetCount
Declaration
public int AssetCount { get; }
Property Value
SceneAsset
Declaration
public Object SceneAsset { get; set; }
Property Value
Methods
Clear()
Clear all asset references in this AssetPack
Declaration
GetAsset(String, Int64)
Declaration
public Object GetAsset(string guid, long fileId)
Parameters
Returns
Get the guid and sub-asset index for a given asset
Also adds the asset to the asset pack in the editor
Declaration
public static void GetAssetMetadata(Object obj, out string guid, out long fileId, AssetPack assetPack = null)
Parameters
OnAfterDeserialize()
Declaration
public void OnAfterDeserialize()
Implements
OnBeforeSerialize()
Declaration
public void OnBeforeSerialize()
Implements
RegisterPrefabFactory(IPrefabFactory)
Declaration
public static void RegisterPrefabFactory(IPrefabFactory factory)
Parameters
Declaration
public static GameObject TryInstantiatePrefab(string prefabGuid, Transform parent, AssetPack assetPack = null)
Parameters
Returns
UnregisterPrefabFactory(IPrefabFactory)
Declaration
public static void UnregisterPrefabFactory(IPrefabFactory factory)
Parameters