Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

WorldUpType

enumeration

Description

Specifies how the world up vector used by the aim constraint is defined.

Properties

SceneUpUses and defines the world up vector as the Unity scene up vector (the Y axis).
ObjectUpUses and defines the world up vector as a vector from the constrained object, in the direction of the up object.
ObjectRotationUpUses and defines the world up vector as relative to the local space of the object.
VectorUses and defines the world up vector as a vector specified by the user.
NoneNeither defines nor uses a world up vector.

Did you find this page useful? Please give it a rating: