void m_count_ValueChange(UForms.Events.IEditable sender, UForms.Events.EditEventArgs args, Event nativeEvent) { if (m_count.Value <= 0) { m_count.Value = 1; } }
void m_treeIdField_ValueChange( IEditable sender, EditEventArgs args, Event nativeEvent ) { string s = args.newValue as string; if ( string.IsNullOrEmpty( s ) ) { m_generateButton.Enabled = false; } else { m_generateButton.Enabled = true; } }
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_savePathField_ValueChange( IEditable sender, EditEventArgs args, Event nativeEvent ) { EditorPrefs.SetString( "BTE_SavePath", ( string )args.newValue ); }
void FoldoutValueChange( IEditable sender, EditEventArgs args, Event nativeEvent ) { SetFoldState( ( bool )args.newValue ); }
void Inspector_ValueChange( IEditable sender, EditEventArgs args, Event nativeEvent ) { if ( sender is Control ) { Control control = sender as Control; if ( m_inspectorFields.ContainsKey( control ) ) { m_inspectorFields[ control ].SetValue( m_inspectorTarget, args.newValue, null ); } } }