Unity SDK Docs 1.5.0.beta.7
Loading...
Searching...
No Matches
TiltFive.GameboardMaskCameraEffect Class Reference

Provides a way to display onscreen what content is visible or cut off by the edges of the gameboard from the user's perspective through the glasses. More...

Inheritance diagram for TiltFive.GameboardMaskCameraEffect:

Classes

struct  SampleScope
 Automatically handles calling CommandBuffer.BeginSample(string) and CommandBuffer.EndSample(string).
struct  TempRTScope
 Automatically manages the lifecycle of a temporary render texture within a CommandBuffer.

Public Member Functions

float GetMaskOpacity ()
 Gets the opacity of the masked region.
void SetMaskOpacity (float opacity)
 Sets the opacity of the masked region.

Detailed Description

Provides a way to display onscreen what content is visible or cut off by the edges of the gameboard from the user's perspective through the glasses.

Member Function Documentation

◆ GetMaskOpacity()

float TiltFive.GameboardMaskCameraEffect.GetMaskOpacity ( )

Gets the opacity of the masked region.

Returns
Returns an opacity value between 0.0 (fully transparent) and 1.0 (fully opaque).

◆ SetMaskOpacity()

void TiltFive.GameboardMaskCameraEffect.SetMaskOpacity ( float opacity)

Sets the opacity of the masked region.

Parameters
opacityAn opacity value between 0.0 (fully transparent) and 1.0 (fully opaque). Values outside of this range will be clamped.