Class MaterialConverter
Inheritance
MaterialConverter
Syntax
[Serializable]
public class MaterialConverter : SyncModelConverter<SyncMaterial, Material>, IReflectNodeProcessor
Constructors
MaterialConverter(EventHub, MemoryTracker, ITextureCache, IOutput<SyncedData<Material>>)
Declaration
public MaterialConverter(EventHub hub, MemoryTracker memTracker, ITextureCache textureCache, IOutput<SyncedData<Material>> output)
Parameters
Fields
m_TextureCache
Declaration
protected readonly ITextureCache m_TextureCache
Field Value
Methods
GetDestructor()
Declaration
protected override Action<Material> GetDestructor()
Returns
Overrides
UnityEngine.Reflect.Pipeline.SyncModelConverter<SyncMaterial, UnityEngine.Material>.GetDestructor()
Import(SyncedData<SyncMaterial>)
Declaration
protected override Material Import(SyncedData<SyncMaterial> syncMaterial)
Parameters
Type |
Name |
Description |
SyncedData<SyncMaterial> |
syncMaterial |
|
Returns
Overrides
UnityEngine.Reflect.Pipeline.SyncModelConverter<SyncMaterial, UnityEngine.Material>.Import(Unity.Reflect.SyncedData<SyncMaterial>)
ReImport(SyncedData<SyncMaterial>, Material)
Declaration
protected override void ReImport(SyncedData<SyncMaterial> syncMaterial, Material obj)
Parameters
Overrides
UnityEngine.Reflect.Pipeline.SyncModelConverter<SyncMaterial, UnityEngine.Material>.ReImport(Unity.Reflect.SyncedData<SyncMaterial>, UnityEngine.Material)