Class PrefabLoadContext
Services and hierarchy references available while component prefab data is applied.
public sealed class PrefabLoadContext
- Inheritance
-
PrefabLoadContext
- Inherited Members
Properties
Assets
public AssetManager Assets { get; }
Property Value
Methods
Defer(Action)
Runs reference binding after every component in the prefab has been created.
public void Defer(Action bind)
Parameters
bindAction
Deserialize<TData>(JsonElement)
public TData Deserialize<TData>(JsonElement data)
Parameters
dataJsonElement
Returns
- TData
Type Parameters
TData
GetAsset<TAsset>(string)
public TAsset GetAsset<TAsset>(string key) where TAsset : class
Parameters
keystring
Returns
- TAsset
Type Parameters
TAsset
GetComponent<TComponent>(string)
public TComponent GetComponent<TComponent>(string objectId) where TComponent : Component
Parameters
objectIdstring
Returns
- TComponent
Type Parameters
TComponent
GetObject(string)
public GameObject GetObject(string id)
Parameters
idstring