Version: 5.3 (switch to 5.4b)
IdiomaEnglish
  • C#
  • JS

Idioma de script

Selecciona tu lenguaje de programación favorito. Todos los fragmentos de código serán mostrados en este lenguaje.

EditorGUIUtility.ShowObjectPicker

Sugiere un cambio

¡Éxito!

Gracias por ayudarnos a mejorar la calidad de la documentación de Unity. A pesar de que no podemos aceptar todas las sugerencias, leemos cada cambio propuesto por nuestros usuarios y actualizaremos los que sean aplicables.

Cerrar

No se puedo enviar

Por alguna razón su cambio sugerido no pudo ser enviado. Por favor <a>intente nuevamente</a> en unos minutos. Gracias por tomarse un tiempo para ayudarnos a mejorar la calidad de la documentación de Unity.

Cerrar

Cancelar

Cambiar al Manual
public static function ShowObjectPicker(obj: Object, allowSceneObjects: bool, searchFilter: string, controlID: int): void;
public static void ShowObjectPicker(Object obj, bool allowSceneObjects, string searchFilter, int controlID);

Parámetros

obj The object to be selected by default.
allowSceneObjects Is selection of scene objects allowed, or should it only show assets.
searchFilter Default search filter to apply.
controlID The id of the control to set. This is useful if you are showing more than one of these. You can get the value at a later time.

Descripción

Show the object picker from code.

Once the user interacts with the Object Picker, it will respond by sending ExecuteCommand events back to the calling OnGUI that called this function. The messages are:

ObjectSelectorUpdated - The selected object was changed. The selected object can be read by calling GetObjectPickerObject ObjectSelectorClosed - The user closed the object picker.