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()
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.