class in UnityEngine.UI
/
Hereda de:EventSystems.UIBehaviour
Implementa interfaces:IBeginDragHandler, ICanvasElement, IDragHandler, IEndDragHandler, IEventSystemHandler, IInitializePotentialDragHandler, ILayoutController, ILayoutElement, ILayoutGroup, IScrollHandler
A component for making a child RectTransform scroll.
ScrollRect will not do any clipping on its own. Combined with a Mask component, it can be turned into a scroll view.
| content | The content that can be scrolled. It should be a child of the GameObject with ScrollRect on it. |
| decelerationRate | The rate at which movement slows down. |
| elasticity | The amount of elasticity to use when the content moves beyond the scroll rect. |
| flexibleHeight | Called by the layout system. |
| flexibleWidth | Called by the layout system. |
| horizontal | Should horizontal scrolling be enabled? |
| horizontalNormalizedPosition | The horizontal scroll position as a value between 0 and 1, with 0 being at the left. |
| horizontalScrollbar | Optional Scrollbar object linked to the horizontal scrolling of the ScrollRect. |
| horizontalScrollbarSpacing | El espacio entre el scrollbar y el viewport. |
| horizontalScrollbarVisibility | The mode of visibility for the horizontal scrollbar. |
| inertia | Should movement inertia be enabled? |
| layoutPriority | Called by the layout system. |
| minHeight | Called by the layout system. |
| minWidth | Called by the layout system. |
| movementType | The behavior to use when the content moves beyond the scroll rect. |
| normalizedPosition | The scroll position as a Vector2 between (0,0) and (1,1) with (0,0) being the lower left corner. |
| onValueChanged | Callback executed when the scroll position of the slider is changed. |
| preferredHeight | Called by the layout system. |
| preferredWidth | Called by the layout system. |
| scrollSensitivity | La sensibilidad para desplazar la rueda y trazar eventos pad scroll. |
| velocity | The current velocity of the content. |
| vertical | Should vertical scrolling be enabled? |
| verticalNormalizedPosition | The vertical scroll position as a value between 0 and 1, with 0 being at the bottom. |
| verticalScrollbar | Optional Scrollbar object linked to the vertical scrolling of the ScrollRect. |
| verticalScrollbarSpacing | El espacio entre el scrollbar y el viewport. |
| verticalScrollbarVisibility | The mode of visibility for the vertical scrollbar. |
| viewport | Reference to the viewport RectTransform that is the parent of the content RectTransform. |
| CalculateLayoutInputHorizontal | Called by the layout system. |
| CalculateLayoutInputVertical | Called by the layout system. |
| GraphicUpdateComplete | See ICanvasElement.GraphicUpdateComplete. |
| IsActive | Ver miembro en la clase base. |
| LayoutComplete | See ICanvasElement.LayoutComplete. |
| OnBeginDrag | Handling for when the content is beging being dragged. |
| OnDrag | Handling for when the content is dragged. |
| OnEndDrag | Handling for when the content has finished being dragged. |
| OnInitializePotentialDrag | See: IInitializePotentialDragHandler.OnInitializePotentialDrag. |
| OnScroll | See IScrollHandler.OnScroll. |
| Rebuild | Rebuilds the scroll rect data after initialization. |
| SetLayoutHorizontal | Called by the layout system. |
| SetLayoutVertical | Called by the layout system. |
| StopMovement | Sets the velocity to zero on both axes so the content stops moving. |
| OnDisable | See MonoBehaviour.OnDisable. |
| SetContentAnchoredPosition | Sets the anchored position of the content. |
| SetDirty | Override to alter or add to the code that keeps the appearance of the scroll rect synced with its data. |
| SetDirtyCaching | Override to alter or add to the code that caches data to avoid repeated heavy operations. |
| enabled | Enabled Behaviours are Updated, disabled Behaviours are not. |
| isActiveAndEnabled | Has the Behaviour had enabled called. |
| gameObject | El game object que tiene este componente adjunto. Un componente siempre está adjunto a un game object. |
| tag | El tag de este game object. |
| transform | El Transform adjunto a este GameObject (null si no hay uno adjunto). |
| useGUILayout | Desactivar 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? |
| name | El nombre del objeto. |
| BroadcastMessage | Llama 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? |
| GetComponent | Devuelve un componente de tipo type si el game object tiene a alguno adjuntado, o null si no lo tiene. |
| GetComponentInChildren | Retorna el componente de tipo type en el GameObject o cualquiera de sus hijos utilizando depth first search (busqueda de profundidad). |
| GetComponentInParent | Retorna el componente de tipo type en el GameObject o cualquiera de sus padres. |
| GetComponents | Retorna todos los componentes de tipo type en el GameObject. |
| GetComponentsInChildren | Retorna todos los componentes de tipo type en el GameObject o cualquiera de sus hijo. |
| GetComponentsInParent | Retorna todos los componentes de tipo type en el GameObject o cualquiera de sus padres. |
| SendMessage | Llama al método denominado methodName en cada MonoBehaviour de este game object. |
| SendMessageUpwards | Llama al método denominado methodName en todos los MonoBehaviour de este juego y en todos los ancestros del behaviour. |
| CancelInvoke | Cancela todas las llamadas de Invocación en este MonoBehaviour. |
| Invoke | Invoca el método methodName en tiempo de segundos. |
| InvokeRepeating | Invoca el método methodName en time segundos, luego repetidamente cada repeatRate segundos. |
| IsInvoking | Hay una invocación methodName pendiente? |
| StartCoroutine | Comienza una co-routine. |
| StopAllCoroutines | Para todas las coroutines ejecutándose en este comportamiento. |
| StopCoroutine | Para la primera coroutine llamada methodName, o la coroutine almacenada en routine ejecutando este comportamiento. |
| GetInstanceID | Devuelve el id de la instancia del objeto. |
| ToString | Devuelve el nombre del objeto. |
| IsDestroyed | Returns true if the native representation of the behaviour has been destroyed. |
| Awake | See MonoBehaviour.Awake. |
| OnBeforeTransformParentChanged | See MonoBehaviour.OnBeforeTransformParentChanged. |
| OnCanvasGroupChanged | See MonoBehaviour.OnCanvasGroupChanged. |
| OnCanvasHierarchyChanged | Called when the state of the parent Canvas is changed. |
| OnDestroy | See MonoBehaviour.OnDestroy. |
| OnDidApplyAnimationProperties | See LayoutGroup.OnDidApplyAnimationProperties. |
| OnEnable | See MonoBehaviour.OnEnable. |
| OnRectTransformDimensionsChange | This 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. |
| OnTransformParentChanged | See MonoBehaviour.OnRectTransformParentChanged. |
| OnValidate | See MonoBehaviour.OnValidate. |
| Reset | See MonoBehaviour.Reset. |
| Start | See MonoBehaviour.Start. |
| Los mensajes Logs a la consola de Unity (idéntico a Debug.Log). | |
| Destroy | Elimina un gameobject, componente o asset. |
| DestroyImmediate | Destruye el objeto obj inmediatamente. |
| DontDestroyOnLoad | Hace que el objeto target no sea destruido automáticamente cuando se cargue una nueva escena. |
| FindObjectOfType | Devuelve el primer objeto activo cargado de tipo type. |
| FindObjectsOfType | Devuelve una lista de todos los objetos activos cargados de tipo type. |
| Instantiate | Devuelve una copia del objeto original. |
| 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. |
| Awake | Awake se llama cuando la instancia del script está siendo cargada. |
| FixedUpdate | Esta función se puede llamar cada frame de framerate fijo, si el MonoBehaviour está habilitado. |
| LateUpdate | LateUpdate se llama cada frame, si Behaviour está habilitado. |
| OnAnimatorIK | Callback para ajustar el IK (inverse kinematics) de animación |
| OnAnimatorMove | Callback para procesar movimientos de animación para modificar movimiento raíz. |
| OnApplicationFocus | Enviado a todos los GameObjects cuando el jugador obtiene o pierde foco. |
| OnApplicationPause | Enviado a todos los GameObjects cuando la aplicación pausa. |
| OnApplicationQuit | Enviado a todos los game objects antes de que la aplicación se salga. |
| OnAudioFilterRead | Si OnAudioFilterRead es implementado, Unity insertará un filtro personalizado a la cadena de audio DSP. |
| OnBecameInvisible | OnBecameInvisible se llama cuando el renderer ya no es visible por cualquier cámara. |
| OnBecameVisible | OnBecameVisible se llama cuando el renderer se vuelve visible por cualquier cámara. |
| OnCollisionEnter | OnCollisionEnter se llama cuando el Collider o Rigidbody entra en contacto con otro Collider/Rigidbody. |
| OnCollisionEnter2D | Se envia cuando un collider entrante entra en contacto con el collider de este objeto (física 2D solamente). |
| OnCollisionExit | OnCollisionExit se llama cuando este collider/rigidbody ha dejado de tocar otro rigidbody/collider. |
| OnCollisionExit2D | Enviado cuando un collider en otro objeto para de tocar el collider de este objeto (física 2D solamente). |
| OnCollisionStay | OnCollisionStay se llama cada frame para cada collider/rigidbody que está tocando rigidbody/collider. |
| OnCollisionStay2D | Enviado cada frame donde un collider en otro objeto está tocando el collider de este objeto (física 2D solamente). |
| OnConnectedToServer | Llamado en el cliente cuando usted se ha conectado con éxito a un servidor. |
| OnControllerColliderHit | OnControllerColliderHit se llama cuando el controller golpea a un collider mientras realiza un Move (movimiento). |
| OnDestroy | Esta función es llamada cuando el MonoBehaviour será destruido. |
| OnDisconnectedFromServer | Llamado en el cliente cuando la conexión se ha perdido o usted se ha desconectado del servidor. |
| OnDrawGizmos | Implementa OnDrawGizmos si usted quiere dibujar gizmos que también se recojan y siempre se dibujen. |
| OnDrawGizmosSelected | Implementa OnDrawGizmosSelected para dibujar un gizmo si el objeto es seleccionado. |
| OnEnable | Esta función se llama cuando el objeto se vuelve habilitado y activo. |
| OnFailedToConnect | Llamado en el cliente cuando un intento de conexión falla por alguna razón. |
| OnFailedToConnectToMasterServer | Llamado en los clientes o servidores donde hay un problema conectándose al MasterServer. |
| OnGUI | OnGUI se llama para el rendering y el manejo de eventos GUI. |
| OnJointBreak | Llamado cuando un joint adjuntado al mismo game object se rompe. |
| OnJointBreak2D | Called when a Joint2D attached to the same game object breaks. |
| OnMasterServerEvent | Llamado en clientes o servidores cuando se reporta eventos desde el MasterServer. |
| OnMouseDown | OnMouseDown se llama cuando el usuario ha presionado el botón del mouse mientras está sobre el GUIElement o Collider. |
| OnMouseDrag | OnMouseDrag se llama cuando el usuario ha oprimido un GUIElement o Collider y todavía tiene presionado el mouse. |
| OnMouseEnter | Llamado cuando el mouse ingresa el GUIElement o Collider. |
| OnMouseExit | Llamado cuando el mouse no está más sobre el GUIElement o Collider. |
| OnMouseOver | Llamado cada frame mientras que el mouse está sobre el GUIElement o Collider. |
| OnMouseUp | OnMouseUp se llama cuando el usuario ha soltado el botón del mouse. |
| OnMouseUpAsButton | OnMouseUpAsButton es solamente llamado cuando el mouse se suelta sobre el mismo GUIElement o Collider a medida que era presionado. |
| OnNetworkInstantiate | Llamado en objetos que han sido instaciados en la red con Network.Instantiate. |
| OnParticleCollision | OnParticleCollision se llama cuando una partícula golpea un Collider. |
| OnParticleTrigger | OnParticleTrigger se llama cuando cualquier partícula en un sistema de partículas coincide con las condiciones en el módulo trigger. |
| OnPlayerConnected | Llamado en el servidor cuando un nuevo player se ha conectado con éxito. |
| OnPlayerDisconnected | Llamado en el servidor cuando un player se ha desconectado del servidor. |
| OnPostRender | OnPostRender se llama después de que la cámara ha terminado de renderizar la escena. |
| OnPreCull | OnPreCull is called before a camera culls the scene. |
| OnPreRender | OnPreRender se llama antes de que la cámara comience a renderizar la escena. |
| OnRenderImage | OnRenderImage is called after all rendering is complete to render image. |
| OnRenderObject | OnRenderObject is called after camera has rendered the scene. |
| OnSerializeNetworkView | Utilizado para personalizar la sincronización de variables en un script observado por un network view. |
| OnServerInitialized | Llamado en el servidor cada vez que un Network.InitializeServer fue invocado y se ha completado. |
| OnTransformChildrenChanged | Esta función se llama cuando la lista de hijos del transform del GameObject ha cambiado. |
| OnTransformParentChanged | Esta función se llama cuando la propiedad padre del transform de este GameObject ha cambiado. |
| OnTriggerEnter | OnTriggerEnter se llama cuando Collider other ingresa el trigger. |
| OnTriggerEnter2D | Enviado cuando otro objeto ingresa a un trigger collider adjunto a este objeto (física 2D solamente). |
| OnTriggerExit | OnTriggerExit se llama cunado el Collider other ha parado de tocar el trigger. |
| OnTriggerExit2D | Enviado cuando otro objeto deja un trigger collider adjunto a este objeto (física 2D solamente). |
| OnTriggerStay | OnTriggerStay se llama una vez por frame por cada Collider other que está tocando el trigger. |
| OnTriggerStay2D | Enviado cada frame donde otro objeto está dentro de un trigger collider adjunto a este objeto (física 2D solamente). |
| OnValidate | Esta función se llama cuando el script se ha cargado o un valor ha cambiado en el inspector (Llamado solamente en el editor). |
| OnWillRenderObject | OnPreRender se llama antes de que la cámara comience a renderizar la escena. |
| Reset | Se re-inicia a los valores predeterminados. |
| Start | Start se llama en el frame cuando un script está habilitado justo antes de que cualquier otro método Update sea llamado la primera vez. |
| Update | Update se llama cada frame, si MonoBehaviour está habilitado. |