API Referenceglobal
ITargetclass
The target of a MaterialAccessor. This is the object that will be modified when setting or clearing material overrides.
object→ITarget
Methods4
Showing 4 methods
public virtual void ClearOverrides()
Wipe all overrides
Returns:
void—public virtual Sandbox.Material Get(int index)
Get the original material, before overrides, matching this index
| Parameter | Type | Description |
|---|---|---|
| index | int | — |
public virtual int GetMaterialCount()
The number of materials on this target
Returns:
int—No results match this filter.
Properties1
Showing 1 properties
public virtual bool Sandbox.Engine.MaterialAccessor.ITarget.IsValid { get; set; }
Return true if this target is valid
Returns:
bool—No results match this filter.