Skip to content

Commit 994ab78

Browse files
authored
Update content/en-us/reference/engine/classes/Camera.yaml
1 parent 5ed9410 commit 994ab78

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

content/en-us/reference/engine/classes/Camera.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,14 @@ description: |
3333
information on how to adjust and customize the camera's behavior.
3434
3535
36-
Warning:
37-
It should also be noted that when changing `Workspace.CurrentCamera` to a new `Camera`
38-
and there is more than a single `Camera` present in the top-hierarchy of `Workspace`
39-
then all other unused `Camera` objects shall be parented to `nil` but not `Destroy()`d.
40-
41-
If you require a `Camera` to stay around, it is recommended to parent it inside a `Model` or object other than directly under `Workspace`.
36+
#### Storing Multiple Cameras
4237
38+
Note that when changing `Class.Workspace.CurrentCamera` to a new `Class.Camera`,
39+
all other `Class.Camera|Cameras` directly descending from `Class.Workspace` will be
40+
destroyed. If you need to store multiple cameras and swap between them on demand,
41+
it's recommended that you store them in a `Class.Folder` or `Class.Model` under
42+
`Class.Workspace`, inside which they will remain even when
43+
`Class.Workspace.CurrentCamera|CurrentCamera` is changed.
4344
code_samples:
4445
inherits:
4546
- PVInstance

0 commit comments

Comments
 (0)