3 using System.Collections.Generic;
4 using SiliconStudio.Core;
5 using SiliconStudio.Core.Serialization.Contents;
7 namespace SiliconStudio.
Paradox.Assets.Materials.Nodes
9 [ContentSerializer(typeof(DataContentSerializer<MaterialReferenceNode>))]
10 [DataContract(
"MaterialReferenceNode")]
37 public string Name {
get; set; }
43 if (materialContext != null && Name != null)
46 if (materialContext.Material.Nodes.TryGetValue(Name, out materialNode))
48 if (materialNode != null && materialNode !=
this)
Base implementation for IMaterialNode.
An entry to a nested IMaterialNode
MaterialReferenceNode(string name)
Initializes a new instance of the MaterialReferenceNode class.
override IEnumerable< MaterialNodeEntry > GetChildren(object context=null)
Gets the children. The context to get the children.The list of children.
override string ToString()
MaterialReferenceNode()
Initializes a new instance of the MaterialReferenceNode class.
Base interface for all nodes in the material tree