Table of Contents

Class ZoomBehavior

Namespace
Framework.Systems.Camera
Assembly
Assembly-CSharp.dll

FOV 기반 줌 Behavior. 스크롤 입력 → CurrentFov 변경.

public sealed class ZoomBehavior : ICameraBehavior
Inheritance
object
ZoomBehavior
Implements

Remarks

[책임 범위] FOV 변경만 담당. Distance 변경은 담당하지 않는다. [TPS 거리 조절이 필요하면] FollowBehavior 또는 OrbitBehavior 에서 처리. [1인칭] CurrentDistance = 0 이므로 FOV 변경만 의미 있음. 그대로 사용 가능. [FPS 조준 FOV] AimBehavior(Priority 150) 가 FOV 를 별도로 제어하므로 조준 중에는 ZoomBehavior 를 DisableBehavior 하거나 Priority 로 순서 조정.

Constructors

ZoomBehavior(ZoomConfig)

public ZoomBehavior(ZoomConfig config)

Parameters

config ZoomConfig

Properties

IsActive

public bool IsActive { get; }

Property Value

bool

Priority

실행 순서. 낮을수록 먼저 실행.

public int Priority { get; }

Property Value

int

Methods

Disable(CameraContext)

public void Disable(CameraContext ctx)

Parameters

ctx CameraContext

Enable(CameraContext)

public void Enable(CameraContext ctx)

Parameters

ctx CameraContext

Tick(CameraContext, ref CameraPose)

public void Tick(CameraContext ctx, ref CameraPose pose)

Parameters

ctx CameraContext
pose CameraPose