Пример #1
0
 public MeshEditorHelper_Paint(EMeshEditor _parent) : base(_parent)
 {
     m_PaintColor.Bind(value => {
         if (!m_Parent.m_MaterialOverride)
         {
             m_Parent.m_Materials[0].EnableKeywords(KW_Color, (int)value);
         }
     });
     m_VertexDataSource.Bind(value =>
     {
         m_VertexDatas.Clear();
         if (value != enum_VertexData.None)
         {
             m_ModifingMesh.GetVertexData(value, m_VertexDatas);
             if (!m_Parent.m_MaterialOverride)
             {
                 m_Parent.m_Materials[0].EnableKeywords(KW_Sample, (int)m_VertexDataSource.m_Value - 1);
             }
         }
     });
 }
Пример #2
0
 public MeshEditorHelper_Edit(EMeshEditor _parent) : base(_parent)
 {
 }
Пример #3
0
 public MeshEditorHelperBase(EMeshEditor _parent)
 {
     m_Parent = _parent;
 }