Search Unity

Delayed Int Field problem

Discussion in 'Editor & General Support' started by Syntaxflow, Dec 23, 2015.

  1. Syntaxflow

    Syntaxflow

    Joined:
    Apr 17, 2015
    Posts:
    18
    Hello all!

    In my editor I need an int field that returns a value only when the user has pressed enter or focus is moved away from the text field.

    I found EditorGUILayout.DelayedIntField, but I get the following error in the C# version:
    `UnityEditor.EditorGUILayout' does not contain a definition for `DelayedIntField'

    From the following line of code:
    Code (CSharp):
    1. targetScript.terrainCount = EditorGUILayout.DelayedIntField ("Terrain Count:", targetScript.terrainCount);
    I get this error in the JavaScript version:
    MissingMethodException: UnityEditor.EditorGUILayout.DelayedIntField

    From the following line of code:
    Code (JavaScript):
    1. target.terrainObjectCount = EditorGUILayout.DelayedIntField ("Object count:", target.terrainObjectCount);
    What am I missing, cannot find anything on Google...

    Thanks for your time!
     
    Last edited: Dec 23, 2015
  2. Syntaxflow

    Syntaxflow

    Joined:
    Apr 17, 2015
    Posts:
    18
    Apparently this is a bug, got a response from Unity contact form and they have no idea... frustrating.