API reference
DynamicScopeSystem
Scope activation, zoom and sensitivity.
Source: src/System/DynamicScopeSystem.cs.
| Member | Type / access | Description |
|---|---|---|
instance | DynamicScopeSystem, static read | Configured scope singleton. |
ScopeSensitivityMultiplier | float, static read | Current zoom's sensitivity multiplier; 1 outside scope. |
void ScopeActivation(bool activate, BulletProperties properties,
float delay = 0.0f, bool instantActivation = false)
void ZoomIn()
void ZoomOut()ScopeActivation shows or hides the scope, uses the supplied bullet's trajectory information and updates the camera's FOV. Configure camera/UI references before Awake. ZoomIn and ZoomOut move between the configured levels.
Each ZoomLevel has m_level (string display name), m_cameraFOV (float) and m_sensitivityMultiplier (float). Configure the list in the Inspector; its label does not itself calculate optical magnification.
The scope handles sample scroll input internally while active. Call the zoom methods from other controls without duplicating that input. See Dynamic Scope System setup.