Table of Contents

Class AnchoredSettings

Namespace
Velvet
Assembly
Velvet.Docs.dll

The 3D Transform an Anchored element's screen position tracks, plus the camera whose projection drives it (null resolves to UnityEngine.Camera.main on every tick, so a scene's active camera can change without a settings update), a pixel offset applied after projection, an opt-in physics occlusion test, and an opt-in camera-distance scale factor. The constructor fail-fasts on a non-positive or NaN DistanceFactor so every construction path (the factory, wrapper hosts, direct construction) shares one guard; a with expression bypasses it like any record init.

public sealed record AnchoredSettings
Inheritance
object
AnchoredSettings

Constructors

AnchoredSettings(Transform?, Camera?, Vector2, bool, bool, LayerMask?, float?)

Properties

Camera
DistanceFactor
HideWhenBehindCamera
Occlude
OccludeLayerMask
Offset
Target