Constructor that clones an existing camera_state. Useful for writing camera modifiers as it makes it easier to create a camera_state that is a copy of another with some values modified.
Verse using statement |
using { /Verse.org/SceneGraph } |
CloneCameraState<public><constructor>(CameraState:camera_state)<computes><dictates>:camera_state
Parameters
CloneCameraState takes the following parameters:
| Name | Type | Description |
|---|---|---|
CameraState |
camera_state |
Attributes, Specifiers, and Effects
Attributes
The following attributes determine how CloneCameraState behaves outside the Verse language. For the complete list of attributes, see the Attributes section of the Specifiers Page.
| Attribute | Arguments | Meaning |
|---|---|---|
available |
MinUploadedAtFNVersion := 4110 |
|
experimental |
This feature is in an experimental state, and you cannot publish projects implmenting it. The API for this feature is subject to change and backward compatibility is not guaranteed. |
Specifiers
The following specifiers determine how you can interact with CloneCameraState in your programs. For the complete list of specifiers, see the Specifiers Page.
| Specifier | Meaning |
|---|---|
public |
The identifier is universally accessible. You can use this on modules, classes, interfaces, structs, enums, methods, and data. |
constructor |
Indicates that the function creates an instance of the class that it's associated with. |
Effects
The following effects determine how CloneCameraState behaves in your programs. For the complete list of effects, see the Effect Specifers section of the Specifiers Page.
| Effect | Meaning |
|---|---|
computes |
This effect requires that the function has no side effects, and is not guaranteed to complete. There’s an unchecked requirement that the function, when provided with the same arguments, produces the same result. Any function that doesn’t have the native specifier that would otherwise have the converges effect is a good example of using the computes effect. |
dictates |