Skip to main content
←API Reference ←NianticSpatial.NSDK.AR.Common

RenderComponent

Base class for components that modify the state of a material.

Declaration​

public abstract class RenderComponent : IDisposable

Properties​

NameTypeSummary
readonly Keywordstring
Keyword to enable in the shader.

Methods​

NameTypeSummary
Disposevoid
-
GetMatrixNullable<Matrix4x4>
Retrieves a matrix from the target material.
GetTextureTexture
Retrieves a texture from the target material.
OnMaterialAttachvoid
Invoked when the render component is initialized with a new material.
OnMaterialDetachvoid
Invoked when the render component is removed from the material.
OnMaterialUpdatevoid
Invoked when the render component needs to update the target material.
OnReleaseResourcesvoid
Invoked when the component is being disposed.
OnUpdatevoid
Perform custom logic during Update.
The camera that is rendering the material.
SetTargetMaterialvoid
Sets the material that this component is modifying.
Updatevoid
Performs render feature related logic and updates the target material.

Relationships​

implements: System.IDisposable