Tanoda
Leap.Unity.SingleLayer Struct Reference

An object you can use to represent a single Unity layer as a dropdown in the inspector. Can be converted back and forth between the integer representation Unity usually uses in its own methods. More...

Inheritance diagram for Leap.Unity.SingleLayer:

Public Member Functions

bool Equals (SingleLayer other)
 

Static Public Member Functions

static implicit operator int (SingleLayer singleLayer)
 
static implicit operator SingleLayer (int layerIndex)
 

Public Attributes

int layerIndex
 

Properties

int layerMask [get, set]
 

Detailed Description

An object you can use to represent a single Unity layer as a dropdown in the inspector. Can be converted back and forth between the integer representation Unity usually uses in its own methods.

Definition at line 20 of file SingleLayer.cs.

Member Function Documentation

◆ Equals()

bool Leap.Unity.SingleLayer.Equals ( SingleLayer  other)

Definition at line 56 of file SingleLayer.cs.

◆ operator int()

static implicit Leap.Unity.SingleLayer.operator int ( SingleLayer  singleLayer)
static

Definition at line 46 of file SingleLayer.cs.

◆ operator SingleLayer()

static implicit Leap.Unity.SingleLayer.operator SingleLayer ( int  layerIndex)
static

Definition at line 50 of file SingleLayer.cs.

Member Data Documentation

◆ layerIndex

int Leap.Unity.SingleLayer.layerIndex

Definition at line 21 of file SingleLayer.cs.

Property Documentation

◆ layerMask

int Leap.Unity.SingleLayer.layerMask
getset

Definition at line 23 of file SingleLayer.cs.


The documentation for this struct was generated from the following file: