Version: 2022.3
言語: 日本語

PlatformEffector2D

class in UnityEngine

/

継承:Effector2D

マニュアルに切り替える

説明

一方通行の衝突のような「床」の動作を適用します。

ソースの Collider2D がトリガーされると、ターゲットの Collider2D と重なるたびにエフェクターの力が適用されます。ソースの Collider がトリガーされておらず、ターゲットの Collider2D がソースと接触しているときのみエフェクターは力を適用します。

変数

rotationalOffsetThe rotational offset angle from the local 'up'.
sideArcエフェクターのローカルの 'left' と 'right' との中心にある床の側面を定義する円弧の角度。この円弧内で起こるすべての衝突の法線は「側面」の挙動として考慮されます。
surfaceArcエフェクターのローカル上の床の中心面を定義する円弧の角度
useOneWay一方通行の衝突を使用する必要があるかどうか
useOneWayGrouping一方方向の動作が同じ動きになることによりすべての接触点の制御を保証します
useSideBounceバウンスを床側で適用するかどうか
useSideFriction摩擦は床側で適用するかどうか

継承メンバー

変数

enabled有効であれば更新され、無効であれば更新されません。
isActiveAndEnabledReports whether a GameObject and its associated Behaviour is active and enabled.
gameObjectこのコンポーネントはゲームオブジェクトにアタッチされます。コンポーネントはいつもゲームオブジェクトにアタッチされています。
tagゲームオブジェクトのタグ
transformThe Transform attached to this GameObject.
colliderMaskマスクはエフェクターを作用させるレイヤーを指定するのに使用します。
useColliderMaskコライダーマスクやグローバル衝突マトリクスを適用させるか
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.
GetComponentGets a reference to a component of type T on the same GameObject as the component specified.
GetComponentInChildrenGets a reference to a component of type T on the same GameObject as the component specified, or any child of the GameObject.
GetComponentInParentGets a reference to a component of type T on the same GameObject as the component specified, or any parent of the GameObject.
GetComponentsGets references to all components of type T on the same GameObject as the component specified.
GetComponentsInChildrenGets references to all components of type T on the same GameObject as the component specified, and any child of the GameObject.
GetComponentsInParentGets 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 と名付けたメソッドを呼び出します
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.
FindAnyObjectByTypeRetrieves any active loaded object of Type type.
FindFirstObjectByTypeRetrieves the first active loaded object of Type type.
FindObjectOfTypeタイプ type から最初に見つけたアクティブのオブジェクトを返します
FindObjectsByTypeRetrieves a list of all loaded objects of Type type.
FindObjectsOfTypeGets a list of all loaded objects of Type type.
Instantiateoriginal のオブジェクトをクローンします

Operator

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