docs.unity3d.com
    Show / Hide Table of Contents

    Class SRPMaterialConverter

    Inheritance
    Object
    SRPMaterialConverter
    UniversalRenderPipelineMaterialConverter
    Namespace: UnityEngine.Reflect
    Syntax
    public abstract class SRPMaterialConverter : IReflectMaterialConverter

    Properties

    currentRenderPipeline

    Declaration
    protected static RenderPipelineAsset currentRenderPipeline { get; }
    Property Value
    Type Description
    RenderPipelineAsset

    defaultMaterial

    Declaration
    public Material defaultMaterial { get; }
    Property Value
    Type Description
    Material
    Implements
    IReflectMaterialConverter.defaultMaterial

    IsAvailable

    Declaration
    public abstract bool IsAvailable { get; }
    Property Value
    Type Description
    Boolean
    Implements
    IReflectMaterialConverter.IsAvailable

    name

    Declaration
    public abstract string name { get; }
    Property Value
    Type Description
    String
    Implements
    IReflectMaterialConverter.name

    Methods

    AssignMap(Material, String, String, SyncMap, ITextureCache)

    Declaration
    protected static void AssignMap(Material material, string sourceId, string id, SyncMap map, ITextureCache textureCache)
    Parameters
    Type Name Description
    Material material
    String sourceId
    String id
    SyncMap map
    ITextureCache textureCache

    ExtractBasicMaterialInfo(SyncMaterial, out Boolean, out Boolean, out Color)

    Declaration
    protected void ExtractBasicMaterialInfo(SyncMaterial syncMaterial, out bool transparent, out bool emission, out Color color)
    Parameters
    Type Name Description
    SyncMaterial syncMaterial
    Boolean transparent
    Boolean emission
    Color color

    GetShader(SyncMaterial)

    Declaration
    public Shader GetShader(SyncMaterial syncMaterial)
    Parameters
    Type Name Description
    SyncMaterial syncMaterial
    Returns
    Type Description
    Shader
    Implements
    IReflectMaterialConverter.GetShader(SyncMaterial)

    SetMaterialProperties(SyncedData<SyncMaterial>, Material, ITextureCache)

    Declaration
    public void SetMaterialProperties(SyncedData<SyncMaterial> syncMaterial, Material material, ITextureCache textureCache)
    Parameters
    Type Name Description
    SyncedData<SyncMaterial> syncMaterial
    Material material
    ITextureCache textureCache
    Implements
    IReflectMaterialConverter.SetMaterialProperties(SyncedData<SyncMaterial>, Material, ITextureCache)

    SetMaterialPropertiesInternal(SyncedData<SyncMaterial>, Material, ITextureCache)

    Declaration
    protected abstract void SetMaterialPropertiesInternal(SyncedData<SyncMaterial> syncMaterial, Material material, ITextureCache textureCache)
    Parameters
    Type Name Description
    SyncedData<SyncMaterial> syncMaterial
    Material material
    ITextureCache textureCache
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023