WeatherMakerScriptResolveCameraMode Method |
Resolve camera mode if mode is Auto. Will resolve against camera or Camera.main if camera is null
Namespace:
DigitalRuby.WeatherMaker
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax public static CameraMode ResolveCameraMode(
Nullable<CameraMode> mode = null,
Camera camera = null
)
Public Shared Function ResolveCameraMode (
Optional mode As Nullable(Of CameraMode) = Nothing,
Optional camera As Camera = Nothing
) As CameraMode
public:
static CameraMode ResolveCameraMode(
Nullable<CameraMode> mode = nullptr,
Camera^ camera = nullptr
)
static member ResolveCameraMode :
?mode : Nullable<CameraMode> *
?camera : Camera
(* Defaults:
let _mode = defaultArg mode null
let _camera = defaultArg camera null
*)
-> CameraMode
Parameters
- mode (Optional)
- Type: SystemNullableCameraMode
Camera mode (null for current camera type or auto) - camera (Optional)
- Type: Camera
Camera or null for main camera
Return Value
Type:
CameraModeCamera mode
See Also