示例#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 ):
				}
			}
		}