Version: 2021.2
言語: 日本語

ParentConstraint

class in UnityEngine.Animations

/

継承:Behaviour


実装インターフェース:IConstraint

マニュアルに切り替える

説明

Constrains the orientation and translation of an object to one or more source objects. The constrained object behaves as if it is in the hierarchy of the sources.

変数

constraintActiveActivates or deactivates the constraint.
lockedLocks the offsets and position (translation and rotation) at rest.
rotationAtRestThe rotation used when the sources have a total weight of 0.
rotationAxisThe rotation axes affected by the ParentConstraint.
rotationOffsetsThe rotation offsets from the constrained orientation.
sourceCountThe number of sources set on the component (read-only).
translationAtRestThe position of the object in local space, used when the sources have a total weight of 0.
translationAxisThe translation axes affected by the ParentConstraint.
translationOffsetsThe translation offsets from the constrained orientation.
weightThe weight of the constraint component.

Public 関数

AddSourceAdds a constraint source.
GetRotationOffsetGets the rotation offset associated with a source by index.
GetSourceGets a constraint source by index.
GetSourcesGets the list of sources.
GetTranslationOffsetGets the rotation offset associated with a source by index.
RemoveSourceRemoves a source from the component.
SetRotationOffsetSets the rotation offset associated with a source by index.
SetSourceSets a source at a specified index.
SetSourcesSets the list of sources on the component.
SetTranslationOffsetSets the translation offset associated with a source by index.

継承メンバー

変数

enabled有効であれば更新され、無効であれば更新されません。
isActiveAndEnabledReports whether a GameObject and its associated Behaviour is active and enabled.
gameObjectこのコンポーネントはゲームオブジェクトにアタッチされます。コンポーネントはいつもゲームオブジェクトにアタッチされています。
tagゲームオブジェクトのタグ
transformThe Transform attached to this GameObject.
hideFlagsShould the object be hidden, saved with the Scene or modifiable by the user?
nameオブジェクト名

Public 関数

BroadcastMessageゲームオブジェクトまたは子オブジェクトにあるすべての MonoBehaviour を継承したクラスにある methodName 名のメソッドを呼び出します。
CompareTagChecks the GameObject's tag against the defined tag.
GetComponentReturns the component of type if the GameObject has one attached.
GetComponentInChildrenReturns the Component of type in the GameObject or any of its children using depth first search.
GetComponentInParentReturns the Component of type in the GameObject or any of its parents.
GetComponents GameObject から type のタイプのコンポーネントを「すべて」取得します。
GetComponentsInChildrenReturns all components of Type type in the GameObject or any of its children. Works recursively.
GetComponentsInParent GameObject や深さ優先探索を活用して、親子関係にある親オブジェクトから type のタイプのコンポーネントを「すべて」取得します。
SendMessageゲームオブジェクトにアタッチされているすべての MonoBehaviour にある methodName と名付けたメソッドを呼び出します
SendMessageUpwardsゲームオブジェクトと親(の親、さらに親 ... )にアタッチされているすべての MonoBehaviour にある methodName と名付けたメソッドを呼び出します
TryGetComponentGets the component of the specified type, if it exists.
GetInstanceIDGets the instance ID of the object.
ToStringReturns the name of the object.

Static 関数

DestroyRemoves a GameObject, component or asset.
DestroyImmediateDestroys the object obj immediately. You are strongly recommended to use Destroy instead.
DontDestroyOnLoadDo not destroy the target Object when loading a new Scene.
FindObjectOfTypeタイプ type から最初に見つけたアクティブのオブジェクトを返します
FindObjectsOfTypeGets a list of all loaded objects of Type type.
Instantiateoriginal のオブジェクトをクローンします

Operator

boolオブジェクトが存在するかどうか
operator !=二つのオブジェクトが異なるオブジェクトを参照しているか比較します
operator ==2つのオブジェクト参照が同じオブジェクトを参照しているか比較します。