Class PrefabComponentRegistration
Maps a stable prefab component ID to a DI-created component type and data loader.
public sealed class PrefabComponentRegistration
- Inheritance
-
PrefabComponentRegistration
- Inherited Members
Properties
ComponentType
public Type ComponentType { get; }
Property Value
Id
public string Id { get; }
Property Value
Methods
Create<TComponent>(string)
public static PrefabComponentRegistration Create<TComponent>(string id) where TComponent : Component, IPrefabDataReceiver
Parameters
idstring
Returns
Type Parameters
TComponent
Create<TComponent, TData>(string, Action<TComponent, TData, PrefabLoadContext>)
public static PrefabComponentRegistration Create<TComponent, TData>(string id, Action<TComponent, TData, PrefabLoadContext> load) where TComponent : Component
Parameters
idstringloadAction<TComponent, TData, PrefabLoadContext>
Returns
Type Parameters
TComponentTData