예제 #1
0
 public void SetInlineNodeValue()
 {
     if (IsValid)
     {
         RangedFloatNode fnode = UIUtils.GetNode(m_nodeId) as RangedFloatNode;
         if (fnode != null)
         {
             fnode.Value = m_value;
             fnode.SetMaterialValueFromInline(m_value);
         }
         else
         {
             IntNode inode = UIUtils.GetNode(m_nodeId) as IntNode;
             inode.Value = (int)m_value;
             inode.SetMaterialValueFromInline((int)m_value);
         }
     }
 }
예제 #2
0
 public void SetInlineNodeValue()
 {
     if (Active && NodeId > -1)
     {
         RangedFloatNode fnode = UIUtils.GetNode(NodeId) as RangedFloatNode;
         if (fnode != null)
         {
             fnode.Value = Value;
             fnode.SetMaterialValueFromInline(Value);
         }
         else
         {
             IntNode inode = UIUtils.GetNode(NodeId) as IntNode;
             inode.Value = Value;
             inode.SetMaterialValueFromInline(Value);
         }
     }
 }