Version: 2017.2

StandaloneInputModule

class in UnityEngine.EventSystems

/

Hereda de:EventSystems.PointerInputModule

Cambiar al Manual

Descripción

A BaseInputModule designed for mouse / keyboard / controller input.

Input module for working with, mouse, keyboard, or controller.

Variables

cancelButtonNombre del Input Manager para el botón 'cancel' (cancelar).
forceModuleActiveObliga este módulo a estar activo.
horizontalAxisEl nombre del Input Manager para el botón del eje horizontal.
inputActionsPerSecondNúmero de inputs del teclado / control permitidos por segundo.
repeatDelayRetraso en segundos antes de que las acciones de input por segundo vuelvan a tener efecto.
submitButtonNúmero máximo de eventos input manejados por segundo.
verticalAxisEl nombre del Input Manager para el eje vertical.

Funciones Públicas

ActivateModuleSee BaseInputModule.
DeactivateModuleSee BaseInputModule.
IsModuleSupportedSee BaseInputModule.
ProcessSee BaseInputModule.
ShouldActivateModuleSee BaseInputModule.
UpdateModuleSee BaseInputModule.

Funciones Protegidas

ProcessMouseEventIterate through all the different mouse events.
ProcessMousePressCalculate and process any mouse button state changes.
ProcessTouchPressThis method is called by Unity whenever a touch event is processed. Override this method with a custom implementation to process touch events yourself.
SendMoveEventToSelectedObjectCalculate and send a move event to the current selected object.
SendSubmitEventToSelectedObjectCalculate and send a submit event to the current selected object.
SendUpdateEventToSelectedObjectSend a update event to the currently selected object.

Miembros heredados

Variables Estáticas

kFakeTouchesIdTouch id for when simulating touches on a non touch device.
kMouseLeftIdId of the cached left mouse pointer event.
kMouseMiddleIdId of the cached middle mouse pointer event.
kMouseRightIdId of the cached right mouse pointer event.

Variables

inputThe current BaseInput being used by the input module.
enabledEnabled Behaviours are Updated, disabled Behaviours are not.
isActiveAndEnabledHas the Behaviour had enabled called.
gameObjectEl game object que tiene este componente adjunto. Un componente siempre está adjunto a un game object.
tagEl tag de este game object.
transformThe Transform attached to this GameObject.
runInEditModeAllow a specific instance of a MonoBehaviour to run in edit mode (only available in the editor).
useGUILayoutDesactivar esto el deja a usted omitir la fase del diseño del GUI.
hideFlags¿Debería el objeto estar oculto, guardado con la escena o modificable por el usuario?
nameEl nombre del objeto.

Funciones Públicas

IsPointerOverGameObjectIs the pointer with the given ID over an EventSystem object?
BroadcastMessageLlama al método denominado methodName de todos los MonoBehaviour en este game objecto en cualquiera de sus hijos.
CompareTag¿Este game object está etiquetado con tag?
GetComponentDevuelve un componente de tipo type si el game object tiene a alguno adjuntado, o null si no lo tiene.
GetComponentInChildrenRetorna el componente de tipo type en el GameObject o cualquiera de sus hijos utilizando depth first search (busqueda de profundidad).
GetComponentInParentRetorna el componente de tipo type en el GameObject o cualquiera de sus padres.
GetComponentsRetorna todos los componentes de tipo type en el GameObject.
GetComponentsInChildrenRetorna todos los componentes de tipo type en el GameObject o cualquiera de sus hijo.
GetComponentsInParentRetorna todos los componentes de tipo type en el GameObject o cualquiera de sus padres.
SendMessageLlama al método denominado methodName en cada MonoBehaviour de este game object.
SendMessageUpwardsLlama al método denominado methodName en todos los MonoBehaviour de este juego y en todos los ancestros del behaviour.
CancelInvokeCancela todas las llamadas de Invocación en este MonoBehaviour.
InvokeInvoca el método methodName en tiempo de segundos.
InvokeRepeatingInvoca el método methodName en time segundos, luego repetidamente cada repeatRate segundos.
IsInvokingHay una invocación methodName pendiente?
StartCoroutineComienza una co-routine.
StopAllCoroutinesPara todas las coroutines ejecutándose en este comportamiento.
StopCoroutinePara la primera coroutine llamada methodName, o la coroutine almacenada en routine ejecutando este comportamiento.
GetInstanceIDDevuelve el id de la instancia del objeto.
ToStringDevuelve el nombre del objeto.
IsActiveReturns true if the GameObject and the Component are active.
IsDestroyedReturns true if the native representation of the behaviour has been destroyed.

Funciones Protegidas

GetAxisEventDataGiven some input data generate an AxisEventData that can be used by the event system.
GetBaseEventDataGenerate a BaseEventData that can be used by the EventSystem.
HandlePointerExitAndEnterHandle sending enter and exit events when a new enter targer is found.
OnDisableSee MonoBehaviour.OnDisable.
OnEnableSee MonoBehaviour.OnEnable.
ClearSelectionClear all pointers and deselect any selected objects in the EventSystem.
CopyFromToCopy one PointerEventData to another.
DeselectIfSelectionChangedDeselect the current selected GameObject if the currently pointed-at GameObject is different.
GetLastPointerEventDataReturn the last PointerEventData for the given touch / mouse id.
GetMousePointerEventDataReturn the current MouseState.
GetPointerDataSearch the cache for currently active pointers, return true if found.
GetTouchPointerEventDataGiven a touch populate the PointerEventData and return if we are pressed or released.
ProcessDragProcess the drag for the current frame with the given pointer event.
ProcessMoveProcess movement for the current frame with the given pointer event.
RemovePointerDataRemove the PointerEventData from the cache.
StateForMouseButtonGiven a mouse button return the current state for the frame.
AwakeSee MonoBehaviour.Awake.
OnBeforeTransformParentChangedSee MonoBehaviour.OnBeforeTransformParentChanged.
OnCanvasGroupChangedSee MonoBehaviour.OnCanvasGroupChanged.
OnCanvasHierarchyChangedCalled when the state of the parent Canvas is changed.
OnDestroySee MonoBehaviour.OnDestroy.
OnDidApplyAnimationPropertiesSee LayoutGroup.OnDidApplyAnimationProperties.
OnDisableSee MonoBehaviour.OnDisable.
OnEnableSee MonoBehaviour.OnEnable.
OnRectTransformDimensionsChangeThis callback is called if an associated RectTransform has its dimensions changed. The call is also made to all child rect transforms, even if the child transform itself doesn't change - as it could have, depending on its anchoring.
OnTransformParentChangedSee MonoBehaviour.OnRectTransformParentChanged.
OnValidateSee MonoBehaviour.OnValidate.
ResetSee MonoBehaviour.Reset.
StartSee MonoBehaviour.Start.

Funciones Estáticas

DetermineMoveDirectionGiven an input movement, determine the best MoveDirection.
FindCommonRootGiven 2 GameObjects, return a common root GameObject (or null).
FindFirstRaycastReturn the first valid RaycastResult.
printLos mensajes Logs a la consola de Unity (idéntico a Debug.Log).
DestroyElimina un gameobject, componente o asset.
DestroyImmediateDestroys the object obj immediately. You are strongly recommended to use Destroy instead.
DontDestroyOnLoadHace que el objeto target no sea destruido automáticamente cuando se cargue una nueva escena.
FindObjectOfTypeDevuelve el primer objeto activo cargado de tipo type.
FindObjectsOfTypeDevuelve una lista de todos los objetos activos cargados de tipo type.
InstantiateClona el objeto original y devuelve el clon.

Operadores

bool¿Existe el objeto?
operator !=Compare si dos objetos se refieren a un objeto diferente.
operator ==Compara dos referencias de objeto para ver si se refieren al mismo objeto.

Mensajes

AwakeAwake se llama cuando la instancia del script está siendo cargada.
FixedUpdateEsta función se puede llamar cada frame de framerate fijo, si el MonoBehaviour está habilitado.
LateUpdateLateUpdate se llama cada frame, si Behaviour está habilitado.
OnAnimatorIKCallback para ajustar el IK (inverse kinematics) de animación
OnAnimatorMoveCallback para procesar movimientos de animación para modificar movimiento raíz.
OnApplicationFocusEnviado a todos los GameObjects cuando el jugador obtiene o pierde foco.
OnApplicationPauseEnviado a todos los GameObjects cuando la aplicación pausa.
OnApplicationQuitEnviado a todos los game objects antes de que la aplicación se salga.
OnAudioFilterReadSi OnAudioFilterRead es implementado, Unity insertará un filtro personalizado a la cadena de audio DSP.
OnBecameInvisibleOnBecameInvisible se llama cuando el renderer ya no es visible por cualquier cámara.
OnBecameVisibleOnBecameVisible se llama cuando el renderer se vuelve visible por cualquier cámara.
OnCollisionEnterOnCollisionEnter se llama cuando el Collider o Rigidbody entra en contacto con otro Collider/Rigidbody.
OnCollisionEnter2DSe envia cuando un collider entrante entra en contacto con el collider de este objeto (física 2D solamente).
OnCollisionExitOnCollisionExit se llama cuando este collider/rigidbody ha dejado de tocar otro rigidbody/collider.
OnCollisionExit2DEnviado cuando un collider en otro objeto para de tocar el collider de este objeto (física 2D solamente).
OnCollisionStayOnCollisionStay se llama cada frame para cada collider/rigidbody que está tocando rigidbody/collider.
OnCollisionStay2DEnviado cada frame donde un collider en otro objeto está tocando el collider de este objeto (física 2D solamente).
OnConnectedToServerLlamado en el cliente cuando usted se ha conectado con éxito a un servidor.
OnControllerColliderHitOnControllerColliderHit se llama cuando el controller golpea a un collider mientras realiza un Move (movimiento).
OnDestroyEsta función es llamada cuando el MonoBehaviour será destruido.
OnDisableEsta función se llama cuando el comportamiento se desactiva () o inactivo.
OnDisconnectedFromServerLlamado en el cliente cuando la conexión se ha perdido o usted se ha desconectado del servidor.
OnDrawGizmosImplementa OnDrawGizmos si usted quiere dibujar gizmos que también se recojan y siempre se dibujen.
OnDrawGizmosSelectedImplementa OnDrawGizmosSelected para dibujar un gizmo si el objeto es seleccionado.
OnEnableEsta función se llama cuando el objeto se vuelve habilitado y activo.
OnFailedToConnectLlamado en el cliente cuando un intento de conexión falla por alguna razón.
OnFailedToConnectToMasterServerLlamado en los clientes o servidores donde hay un problema conectándose al MasterServer.
OnGUIOnGUI se llama para el rendering y el manejo de eventos GUI.
OnJointBreakLlamado cuando un joint adjuntado al mismo game object se rompe.
OnJointBreak2DCalled when a Joint2D attached to the same game object breaks.
OnMasterServerEventLlamado en clientes o servidores cuando se reporta eventos desde el MasterServer.
OnMouseDownOnMouseDown se llama cuando el usuario ha presionado el botón del mouse mientras está sobre el GUIElement o Collider.
OnMouseDragOnMouseDrag se llama cuando el usuario ha oprimido un GUIElement o Collider y todavía tiene presionado el mouse.
OnMouseEnterLlamado cuando el mouse ingresa el GUIElement o Collider.
OnMouseExitLlamado cuando el mouse no está más sobre el GUIElement o Collider.
OnMouseOverLlamado cada frame mientras que el mouse está sobre el GUIElement o Collider.
OnMouseUpOnMouseUp se llama cuando el usuario ha soltado el botón del mouse.
OnMouseUpAsButtonOnMouseUpAsButton es solamente llamado cuando el mouse se suelta sobre el mismo GUIElement o Collider a medida que era presionado.
OnNetworkInstantiateLlamado en objetos que han sido instaciados en la red con Network.Instantiate.
OnParticleCollisionOnParticleCollision se llama cuando una partícula golpea un Collider.
OnParticleTriggerOnParticleTrigger se llama cuando cualquier partícula en un sistema de partículas coincide con las condiciones en el módulo trigger.
OnPlayerConnectedLlamado en el servidor cuando un nuevo player se ha conectado con éxito.
OnPlayerDisconnectedLlamado en el servidor cuando un player se ha desconectado del servidor.
OnPostRenderOnPostRender se llama después de que la cámara ha terminado de renderizar la escena.
OnPreCullOnPreCull is called before a camera culls the scene.
OnPreRenderOnPreRender se llama antes de que la cámara comience a renderizar la escena.
OnRenderImageOnRenderImage is called after all rendering is complete to render image.
OnRenderObjectOnRenderObject is called after camera has rendered the scene.
OnSerializeNetworkViewUtilizado para personalizar la sincronización de variables en un script observado por un network view.
OnServerInitializedLlamado en el servidor cada vez que un Network.InitializeServer fue invocado y se ha completado.
OnTransformChildrenChangedEsta función se llama cuando la lista de hijos del transform del GameObject ha cambiado.
OnTransformParentChangedEsta función se llama cuando la propiedad padre del transform de este GameObject ha cambiado.
OnTriggerEnterOnTriggerEnter se llama cuando Collider other ingresa el trigger.
OnTriggerEnter2DEnviado cuando otro objeto ingresa a un trigger collider adjunto a este objeto (física 2D solamente).
OnTriggerExitOnTriggerExit se llama cunado el Collider other ha parado de tocar el trigger.
OnTriggerExit2DEnviado cuando otro objeto deja un trigger collider adjunto a este objeto (física 2D solamente).
OnTriggerStayOnTriggerStay is called once per physics update for every Collider other that is touching the trigger.
OnTriggerStay2DEnviado cada frame donde otro objeto está dentro de un trigger collider adjunto a este objeto (física 2D solamente).
OnValidateEsta función se llama cuando el script se ha cargado o un valor ha cambiado en el inspector (Llamado solamente en el editor).
OnWillRenderObjectOnPreRender se llama antes de que la cámara comience a renderizar la escena.
ResetSe re-inicia a los valores predeterminados.
StartStart se llama en el frame cuando un script está habilitado justo antes de que cualquier otro método Update sea llamado la primera vez.
UpdateUpdate se llama cada frame, si MonoBehaviour está habilitado.