AimConstraint

class in UnityEngine.Animations

/

Hereda de:Behaviour


Implementa interfaces:IConstraint

Cambiar al Manual

Descripción

Constrains the orientation of an object relative to the position of one or more source objects, such that the object is facing the average position of the sources.

Variables

aimVectorThe axis towards which the constrained object orients.
constraintActiveActivates or deactivates the constraint.
lockedLocks the offset and rotation at rest.
rotationAtRestThe rotation used when the sources have a total weight of 0.
rotationAxisThe axes affected by the AimConstraint.
rotationOffsetRepresents an offset from the constrained orientation.
sourceCountThe number of sources set on the component (read-only).
upVectorThe up vector.
weightThe weight of the constraint component.
worldUpObjectThe world up object, used to calculate the world up vector when the world up Type is AimConstraint.WorldUpType.ObjectUp or AimConstraint.WorldUpType.ObjectRotationUp.
worldUpTypeThe type of the world up vector.
worldUpVectorThe world up Vector used when the world up type is AimConstraint.WorldUpType.Vector or AimConstraint.WorldUpType.ObjectRotationUp.

Funciones Públicas

AddSourceAdds a constraint source.
GetSourceGets a constraint source by index.
GetSourcesGets the list of sources.
RemoveSourceRemoves a source from the component.
SetSourceSets a source at a specified index.
SetSourcesSets the list of sources on the component.

Miembros heredados

Variables

enabledEnabled Behaviours are Updated, disabled Behaviours are not.
isActiveAndEnabledHas the Behaviour had active and 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.

Funciones Públicas

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?
GetComponentReturns the component of Type type if the GameObject has one attached, null if it doesn't. Will also return disabled components.
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.
TryGetComponentGets the component of the specified type, if it exists.