Ejemplo n.º 1
0
    void m_original_ValueChange( UForms.Events.IEditable sender, UForms.Events.EditEventArgs args, Event nativeEvent )
    {
        if ( m_original.Value != null )
        {
            // Only allow scene objects
            if ( EditorUtility.IsPersistent( m_original.Value ) )
            {                
                m_original.Value = null;
            }
        }

        m_duplicate.Enabled = ( m_original.Value != null );
    }
Ejemplo n.º 2
0
 void m_duplicate_Clicked( UForms.Events.IClickable sender, UForms.Events.ClickEventArgs args, Event nativeEvent )
 {
     Duplicate( m_original.Value as GameObject, m_count.Value, m_transform.Translate, m_transform.Rotate, m_transform.Scale, (Space)m_space.Value );
 }
Ejemplo n.º 3
0
 void m_count_ValueChange( UForms.Events.IEditable sender, UForms.Events.EditEventArgs args, Event nativeEvent )
 {
     if ( m_count.Value <= 0 )
     {
         m_count.Value = 1;
     }
 }