Table of Contents

Class PrefabLoadContext

Namespace
Axolotl2D.Prefabs
Assembly
Axolotl2D.dll

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

AssetManager

Methods

Defer(Action)

Runs reference binding after every component in the prefab has been created.

public void Defer(Action bind)

Parameters

bind Action

Deserialize<TData>(JsonElement)

public TData Deserialize<TData>(JsonElement data)

Parameters

data JsonElement

Returns

TData

Type Parameters

TData

GetAsset<TAsset>(string)

public TAsset GetAsset<TAsset>(string key) where TAsset : class

Parameters

key string

Returns

TAsset

Type Parameters

TAsset

GetComponent<TComponent>(string)

public TComponent GetComponent<TComponent>(string objectId) where TComponent : Component

Parameters

objectId string

Returns

TComponent

Type Parameters

TComponent

GetObject(string)

public GameObject GetObject(string id)

Parameters

id string

Returns

GameObject