MaterialOverride

csharp
public class MaterialOverride : PlatformOverrideBase

Namespace NodeWorld.SDK.PlatformSwitch.

Material: shader, main colour and GPU instancing per platform. After a shader swap, the URP surface settings are rebuilt from the material's values.

Fields

Shader

csharp
public PlatformShader Shader

The shader.

MainColor

csharp
public PlatformColor MainColor

The main colour (_Color or _BaseColor), when the shader has one.

GPUInstancing

csharp
public PlatformBool GPUInstancing

GPU instancing on or off.

Properties

Label

csharp
public override string Label { get; }

Same as the member it overrides or implements.

TargetType

csharp
public override Type TargetType { get; }

Same as the member it overrides or implements.

Methods

Setup

csharp
public override void Setup(Object target)

Same as the member it overrides or implements.

Apply

csharp
public override void Apply(Object target, NWPlatform platform)

Same as the member it overrides or implements.