Class
DepthOfFieldEffect
Simulates a camera lens by blurring parts of a scene not in focus.
The DepthOfFieldEffect simulates a camera lens by blurring parts of a scene not in focus. Distant objects can be blurred or this effect can be used to focus on specific parts of a scene, like an item in an in-game shop.
Like other post-processing effects, DepthOfFieldEffect will only work
while Enabled and when parented to Lighting
or Workspace.CurrentCamera. Also, it may render differently on low-end
devices or depending on your Studio settings (see the Quality Level
settings in Rendering → Performance).
For more details on this effect and others, see Post-Processing Effects.
Properties 4#
FarIntensityfloat | Intensity of the far field blur.ReadSafe |
FocusDistancefloat | Distance away from the camera where objects are in focus.ReadSafe |
InFocusRadiusfloat | Controls the distance away from the
FocusDistance where no blur is
applied.ReadSafe |
NearIntensityfloat | Intensity of the near field blur.ReadSafe |
FarIntensity: float#
ReadSafe
Intensity of the far field blur, moving out in distance from the
FocusDistance point plus
InFocusRadius value.
FocusDistance: float#
ReadSafe
Controls the distance away from the camera (in studs) where objects are in focus.
InFocusRadius: float#
ReadSafe
Controls the distance away from the
FocusDistance (on both sides)
where no blur is applied. Measured in studs.
NearIntensity: float#
ReadSafe
Intensity of the near field blur, between the camera and the
FocusDistance point minus
InFocusRadius value.
Inherited members#
Inherited from PostEffect 1
Properties (1)
Inherited from Instance 58
Properties (10)
Archivable, archivable, Capabilities, IsInSandbox, Name, Parent, PredictionMode, RobloxLocked, Sandboxed, UniqueId
Methods (39)
AddTag, children, ClearAllChildren, Clone, clone, Destroy, destroy, FindFirstAncestor, FindFirstAncestorOfClass, FindFirstAncestorWhichIsA, FindFirstChild, findFirstChild, FindFirstChildOfClass, FindFirstChildWhichIsA, FindFirstDescendant, GetActor, GetAttribute, GetAttributeChangedSignal, GetAttributes, GetChildren, getChildren, GetDebugId, GetDescendants, GetFullName, GetStyled, GetStyledPropertyChangedSignal, GetTags, HasTag, IsAncestorOf, IsDescendantOf, isDescendantOf, IsPropertyModified, QueryDescendants, Remove, remove, RemoveTag, ResetPropertyToDefault, SetAttribute, WaitForChild