浮力をシミュレーションするために流体の流れと抗力を適用します。
任意の Collider2D がエフェクターによって定義された領域に重なり、 surfaceLevel よりも下にある場合は、力を決めるための計算が行われます。下にない場合、力は適用されません。計算が行われると、エフェクターが Collider2D を surfaceLevel まで動かそうとする浮力が発生します。すなわち、浮かびます。
このエフェクターは主にトリガーとして設定される Collider2D で動作するように設計されているので Collider2D は定義された領域に重ねて浮力を適用できます。
| angularDrag | エフェクターと接触した任意の Collider2D の角運動を、遅くする力が加わります。 |
| density | 浮力の力を計算するために使用する流体の密度 |
| flowAngle | 流体の流れをシミュレートするために使用される力の角度 |
| flowMagnitude | 流体の流れをシミュレートするために使用される力の大きさ |
| flowVariation | 流体の流れをシミュレートするために使用される力のランダム変動 |
| linearDrag | 任意の Collider2D がエフェクターと接触した際、その直線運動を遅くする力を加えます。 |
| surfaceLevel | 流体の表面レベルを表す任意の水平線を定義します。 |
| enabled | 有効であれば更新され、無効であれば更新されません。 |
| isActiveAndEnabled | Reports whether a GameObject and its associated Behaviour is active and enabled. |
| gameObject | このコンポーネントはゲームオブジェクトにアタッチされます。コンポーネントはいつもゲームオブジェクトにアタッチされています。 |
| tag | ゲームオブジェクトのタグ |
| transform | The Transform attached to this GameObject. |
| colliderMask | マスクはエフェクターを作用させるレイヤーを指定するのに使用します。 |
| useColliderMask | コライダーマスクやグローバル衝突マトリクスを適用させるか |
| hideFlags | Should the object be hidden, saved with the Scene or modifiable by the user? |
| name | オブジェクト名 |
| BroadcastMessage | ゲームオブジェクトまたは子オブジェクトにあるすべての MonoBehaviour を継承したクラスにある methodName 名のメソッドを呼び出します。 |
| CompareTag | Checks the GameObject's tag against the defined tag. |
| GetComponent | Gets a reference to a component of type T on the same GameObject as the component specified. |
| GetComponentInChildren | Gets a reference to a component of type T on the same GameObject as the component specified, or any child of the GameObject. |
| GetComponentInParent | Gets a reference to a component of type T on the same GameObject as the component specified, or any parent of the GameObject. |
| GetComponents | Gets references to all components of type T on the same GameObject as the component specified. |
| GetComponentsInChildren | Gets references to all components of type T on the same GameObject as the component specified, and any child of the GameObject. |
| GetComponentsInParent | Gets references to all components of type T on the same GameObject as the component specified, and any parent of the GameObject. |
| SendMessage | ゲームオブジェクトにアタッチされているすべての MonoBehaviour にある methodName と名付けたメソッドを呼び出します |
| SendMessageUpwards | ゲームオブジェクトと親(の親、さらに親 ... )にアタッチされているすべての MonoBehaviour にある methodName と名付けたメソッドを呼び出します |
| TryGetComponent | Gets the component of the specified type, if it exists. |
| GetInstanceID | Gets the instance ID of the object. |
| ToString | Returns the name of the object. |
| Destroy | Removes a GameObject, component or asset. |
| DestroyImmediate | Destroys the object obj immediately. You are strongly recommended to use Destroy instead. |
| DontDestroyOnLoad | Do not destroy the target Object when loading a new Scene. |
| FindAnyObjectByType | Retrieves any active loaded object of Type type. |
| FindFirstObjectByType | Retrieves the first active loaded object of Type type. |
| FindObjectsByType | Retrieves a list of all loaded objects of Type type. |
| Instantiate | original のオブジェクトをクローンします |
| bool | オブジェクトが存在するかどうか |
| operator != | 二つのオブジェクトが異なるオブジェクトを参照しているか比較します |
| operator == | 2つのオブジェクト参照が同じオブジェクトを参照しているか比較します。 |