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 ); }
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 ); }
void m_count_ValueChange( UForms.Events.IEditable sender, UForms.Events.EditEventArgs args, Event nativeEvent ) { if ( m_count.Value <= 0 ) { m_count.Value = 1; } }