Peek

これにより、ユーザーはカメラを目的の方向にすばやく向けることができます。これは先読みに似ていますが、このモジュールでは、カメラの方向はターゲットの方向ではなくユーザーによって制御されます。

Property
DistanceThe peek distance.
Easing TimeThe time it takes to reach the maximum peek distance.
Ignore ClampsIf enabled, peek will ignore room clamps and the world clamp. Otherwise, it is clamped. Be aware that sometimes the peek effect won’t be noticeable if the camera itself is being clamped if this option is disabled.
DirectionIf any of the buttons are pressed, the camera will peek in the desired direction. Set to None if not required.
Methodこれらのメソッドを継続的に呼び出して、それぞれの方向を覗き見します。
PeekUp()
PeekDown()
PeekLeft()
PeekRight()
PeekDirection(Vector2 direction)
タイトルとURLをコピーしました