interface
ITarget
public interface ITarget The target of a MaterialAccessor. This is the object that will be modified when setting or clearing material overrides.
Properties
| Name | Type | Description |
|---|---|---|
IsValid virtual | Boolean | Return true if this target is valid |
Methods
virtual Int32 GetMaterialCount() The number of materials on this target
virtual Material Get(Int32 index) Get the original material, before overrides, matching this index
virtual Void SetOverride(Int32 index, Material material) Set the override material for this index.
virtual Void ClearOverrides() Wipe all overrides
Assembly:
Sandbox.Engine Declaring Type: MaterialAccessor Full Name: Sandbox.Engine.MaterialAccessor.ITarget