Class IDMapProperties
Properties for rendering out an ID map. See ../common/docs/map-renderers-reference-common.html#id-map.
[Serializable]
public sealed class IDMapProperties : MapProperties
- Inheritance
-
IDMapProperties
- Inherited Members
Properties
ShaderName
Gets the name of the shader used by this property set.
public override string ShaderName { get; }
Property Value
Remarks
This name is passed to the internal shader lookup system when the properties are enabled. It should match the full shader path as defined in the shader file.
Methods
SetRendererProperties(MaterialPropertyBlock, Renderer)
Applies per-renderer properties before drawing a renderer into the map.
public override void SetRendererProperties(MaterialPropertyBlock block, Renderer renderer)
Parameters
blockMaterialPropertyBlockThe MaterialPropertyBlock used for this draw call.
rendererRendererThe renderer currently being drawn into the map.
Remarks
Override this method to set renderer-specific data such as object IDs, per-object colors, UV transforms, or custom attributes.