Class CameraToy
A wrapper class for AdminToys.AdminToyBase.
public class CameraToy : AdminToy, IWorldSpace, IPosition, IRotation, IWrapper<Scp079CameraToy>
- Inheritance
-
CameraToy
- Implements
-
IWrapper<Scp079CameraToy>
- Inherited Members
- Extension Methods
Properties
Base
Gets the base AdminToys.Scp079CameraToy.
public Scp079CameraToy Base { get; }
Property Value
- Scp079CameraToy
EzArmCameraPrefab
Gets the prefab for EzArm Camera prefab.
public static Scp079CameraToy EzArmCameraPrefab { get; }
Property Value
- Scp079CameraToy
EzCameraPrefab
Gets the prefab for Ez Camera prefab.
public static Scp079CameraToy EzCameraPrefab { get; }
Property Value
- Scp079CameraToy
HczCameraPrefab
Gets the prefab for Hcz Camera prefab.
public static Scp079CameraToy HczCameraPrefab { get; }
Property Value
- Scp079CameraToy
HorizontalConstraint
Gets or sets the Horizontal restriction.
public Vector2 HorizontalConstraint { get; set; }
Property Value
- Vector2
LczCameraPrefab
Gets the prefab for Lcz Camera prefab.
public static Scp079CameraToy LczCameraPrefab { get; }
Property Value
- Scp079CameraToy
Name
Gets or sets the Name of the Camera.
public string Name { get; set; }
Property Value
Room
Gets or sets the Room where the Camera is associated with.
public Room Room { get; set; }
Property Value
SzCameraPrefab
Gets the prefab for Sz Camera prefab.
public static Scp079CameraToy SzCameraPrefab { get; }
Property Value
- Scp079CameraToy
VerticalConstraint
Gets or sets the Vertical Restriction.
public Vector2 VerticalConstraint { get; set; }
Property Value
- Vector2
ZoomConstraint
Gets or sets the Zoom restriction.
public Vector2 ZoomConstraint { get; set; }
Property Value
- Vector2
Methods
Create(CameraType, Vector3)
Creates a new CameraToy with a specified type.
public static CameraToy Create(CameraType type, Vector3 position)
Parameters
typeCameraTypeThe CameraType of the camera.
positionVector3The local position of the camera.
Returns
Create(CameraType, Vector3, string)
Creates a new CameraToy with a specified type and name.
public static CameraToy Create(CameraType type, Vector3 position, string name)
Parameters
typeCameraTypeThe CameraType of the camera.
positionVector3The local position of the camera.
namestringThe name (label) of the camera.
Returns
Create(Transform, CameraType, Vector3?, Quaternion?, Vector3?, string, Room, Vector2?, Vector2?, Vector2?, bool)
Creates a new CameraToy.
public static CameraToy Create(Transform parent = null, CameraType type = CameraType.EzArmCameraToy, Vector3? position = null, Quaternion? rotation = null, Vector3? scale = null, string name = "New Camera", Room room = null, Vector2? verticalConstraint = null, Vector2? horizontalConstraint = null, Vector2? zoomConstraint = null, bool spawn = true)
Parameters
parentTransformThe transform to create this CameraToy on.
typeCameraTypeThe CameraType of the camera.
positionVector3?The local position of the camera.
rotationQuaternion?The local rotation of the camera.
scaleVector3?The local scale of the camera.
namestringThe name (label) of the camera.
roomRoomThe room associated with this camera.
verticalConstraintVector2?The vertical limits. Leave null to use prefab default.
horizontalConstraintVector2?The horizontal limits. Leave null to use prefab default.
zoomConstraintVector2?The zoom limits. Leave null to use prefab default.
spawnboolWhether the camera should be initially spawned.