Class AbstractMaterialNode
  
Inheritance
System.Object
AbstractMaterialNode
 
Syntax
public abstract class AbstractMaterialNode : INode, ISerializationCallbackReceiver, IGenerateProperties
 
Constructors
  
AbstractMaterialNode()
Declaration
protected AbstractMaterialNode()
 
Fields
  
s_TempEdges
Declaration
protected static List<IEdge> s_TempEdges
 
Field Value
| Type | Description | 
| List<IEdge> |  | 
s_TempPreviewProperties
Declaration
protected static List<PreviewProperty> s_TempPreviewProperties
 
Field Value
s_TempSlots
Declaration
protected static List<MaterialSlot> s_TempSlots
 
Field Value
Properties
  
allowedInLayerGraph
Declaration
public virtual bool allowedInLayerGraph { get; }
 
Property Value
| Type | Description | 
| System.Boolean |  | 
allowedInMainGraph
Declaration
public virtual bool allowedInMainGraph { get; }
 
Property Value
| Type | Description | 
| System.Boolean |  | 
allowedInSubGraph
Declaration
public virtual bool allowedInSubGraph { get; }
 
Property Value
| Type | Description | 
| System.Boolean |  | 
canDeleteNode
Declaration
public virtual bool canDeleteNode { get; }
 
Property Value
| Type | Description | 
| System.Boolean |  | 
documentationURL
Declaration
public virtual string documentationURL { get; }
 
Property Value
| Type | Description | 
| System.String |  | 
drawState
Declaration
public DrawState drawState { get; set; }
 
Property Value
| Type | Description | 
| DrawState |  | 
guid
Declaration
public Guid guid { get; }
 
Property Value
hasError
Declaration
public virtual bool hasError { get; protected set; }
 
Property Value
| Type | Description | 
| System.Boolean |  | 
hasPreview
Declaration
public virtual bool hasPreview { get; }
 
Property Value
| Type | Description | 
| System.Boolean |  | 
name
Declaration
public string name { get; set; }
 
Property Value
| Type | Description | 
| System.String |  | 
owner
Declaration
public IGraph owner { get; set; }
 
Property Value
precision
Declaration
public AbstractMaterialNode.OutputPrecision precision { get; set; }
 
Property Value
previewExpanded
Declaration
public bool previewExpanded { get; set; }
 
Property Value
| Type | Description | 
| System.Boolean |  | 
previewMode
Declaration
public virtual PreviewMode previewMode { get; }
 
Property Value
tempId
Declaration
public Identifier tempId { get; set; }
 
Property Value
version
Declaration
public int version { get; set; }
 
Property Value
| Type | Description | 
| System.Int32 |  | 
Methods
  
AddSlot(ISlot)
Declaration
public void AddSlot(ISlot slot)
 
Parameters
| Type | Name | Description | 
| ISlot | slot |  | 
CalculateNodeHasError()
Declaration
protected virtual bool CalculateNodeHasError()
 
Returns
| Type | Description | 
| System.Boolean |  | 
CollectPreviewMaterialProperties(List<PreviewProperty>)
Declaration
public virtual void CollectPreviewMaterialProperties(List<PreviewProperty> properties)
 
Parameters
CollectShaderProperties(PropertyCollector, GenerationMode)
Declaration
public virtual void CollectShaderProperties(PropertyCollector properties, GenerationMode generationMode)
 
Parameters
Implements
Declaration
public virtual ConcreteSlotValueType ConvertDynamicInputTypeToConcrete(IEnumerable<ConcreteSlotValueType> inputTypes)
 
Parameters
Returns
Declaration
public virtual ConcreteSlotValueType ConvertDynamicMatrixInputTypeToConcrete(IEnumerable<ConcreteSlotValueType> inputTypes)
 
Parameters
Returns
Dirty(ModificationScope)
Declaration
public void Dirty(ModificationScope scope)
 
Parameters
| Type | Name | Description | 
| ModificationScope | scope |  | 
Declaration
public T FindInputSlot<T>(int slotId)where T : ISlot
 
Parameters
| Type | Name | Description | 
| System.Int32 | slotId |  | 
Returns
Type Parameters
FindOutputSlot<T>(Int32)
Declaration
public T FindOutputSlot<T>(int slotId)where T : ISlot
 
Parameters
| Type | Name | Description | 
| System.Int32 | slotId |  | 
Returns
Type Parameters
FindSlot<T>(Int32)
Declaration
public T FindSlot<T>(int slotId)where T : ISlot
 
Parameters
| Type | Name | Description | 
| System.Int32 | slotId |  | 
Returns
Type Parameters
Declaration
public void GetInputSlots<T>(List<T> foundSlots)where T : ISlot
 
Parameters
| Type | Name | Description | 
| List<T> | foundSlots |  | 
Type Parameters
Declaration
public virtual IEnumerable<ISlot> GetInputsWithNoConnection()
 
Returns
| Type | Description | 
| IEnumerable<ISlot> |  | 
GetOutputSlots<T>(List<T>)
Declaration
public void GetOutputSlots<T>(List<T> foundSlots)where T : ISlot
 
Parameters
| Type | Name | Description | 
| List<T> | foundSlots |  | 
Type Parameters
GetSlotReference(Int32)
Declaration
public SlotReference GetSlotReference(int slotId)
 
Parameters
| Type | Name | Description | 
| System.Int32 | slotId |  | 
Returns
| Type | Description | 
| SlotReference |  | 
GetSlots<T>(List<T>)
Declaration
public void GetSlots<T>(List<T> foundSlots)where T : ISlot
 
Parameters
| Type | Name | Description | 
| List<T> | foundSlots |  | 
Type Parameters
GetSlotValue(Int32, GenerationMode)
Declaration
public string GetSlotValue(int inputSlotId, GenerationMode generationMode)
 
Parameters
| Type | Name | Description | 
| System.Int32 | inputSlotId |  | 
| GenerationMode | generationMode |  | 
Returns
| Type | Description | 
| System.String |  | 
GetSourceAssetDependencies(List<String>)
Declaration
public virtual void GetSourceAssetDependencies(List<string> paths)
 
Parameters
| Type | Name | Description | 
| List<System.String> | paths |  | 
GetVariableNameForNode()
Declaration
public virtual string GetVariableNameForNode()
 
Returns
| Type | Description | 
| System.String |  | 
GetVariableNameForSlot(Int32)
Declaration
public virtual string GetVariableNameForSlot(int slotId)
 
Parameters
| Type | Name | Description | 
| System.Int32 | slotId |  | 
Returns
| Type | Description | 
| System.String |  | 
ImplicitConversionExists(ConcreteSlotValueType, ConcreteSlotValueType)
Declaration
public static bool ImplicitConversionExists(ConcreteSlotValueType from, ConcreteSlotValueType to)
 
Parameters
Returns
| Type | Description | 
| System.Boolean |  | 
IsSlotConnected(Int32)
Declaration
public bool IsSlotConnected(int slotId)
 
Parameters
| Type | Name | Description | 
| System.Int32 | slotId |  | 
Returns
| Type | Description | 
| System.Boolean |  | 
OnAfterDeserialize()
Declaration
public virtual void OnAfterDeserialize()
 
OnBeforeSerialize()
Declaration
public virtual void OnBeforeSerialize()
 
RegisterCallback(OnNodeModified)
Declaration
public void RegisterCallback(OnNodeModified callback)
 
Parameters
| Type | Name | Description | 
| OnNodeModified | callback |  | 
RemoveSlot(Int32)
Declaration
public void RemoveSlot(int slotId)
 
Parameters
| Type | Name | Description | 
| System.Int32 | slotId |  | 
RemoveSlotsNameNotMatching(IEnumerable<Int32>, Boolean)
Declaration
public void RemoveSlotsNameNotMatching(IEnumerable<int> slotIds, bool supressWarnings = false)
 
Parameters
| Type | Name | Description | 
| IEnumerable<System.Int32> | slotIds |  | 
| System.Boolean | supressWarnings |  | 
RewriteGuid()
Declaration
public Guid RewriteGuid()
 
Returns
UnregisterCallback(OnNodeModified)
Declaration
public void UnregisterCallback(OnNodeModified callback)
 
Parameters
| Type | Name | Description | 
| OnNodeModified | callback |  | 
UpdateNodeAfterDeserialization()
Declaration
public virtual void UpdateNodeAfterDeserialization()
 
ValidateNode()
Declaration
public virtual void ValidateNode()