ManoMotion Unity SDK 2.0
SDK documentation
Loading...
Searching...
No Matches
ManoMotion.Demos.Grabbable Class Reference

Component to interact with.

Inheritance diagram for ManoMotion.Demos.Grabbable:

Public Member Functions

virtual void HoverStart (Grabber grabber)
 
virtual void HoverStop (Grabber grabber)
 
virtual void Grab (Grabber grabber)
 
virtual void Release (Grabber grabber)
 
virtual void Click (Grabber grabber)
 
virtual void DragStart (Grabber grabber)
 
virtual void Move (Vector3 position)
 
virtual void Rotate (Quaternion rotation)
 

Static Public Attributes

static Action< GrabbableOnGrabbed
 
static Action< GrabbableOnReleased
 
static Action< GrabbableOnClicked
 
static Action< GrabbableOnDragged
 

Protected Attributes

Material[] materials
 
float hoveredAlpha = 0.5f
 
MeshRenderer meshRenderer
 
int currentMaterialIndex = 0
 
Grabber grabber
 

Properties

virtual bool CanBeGrabbed [get]
 

Private Member Functions

void Awake ()
 
Grabbable Duplicate ()
 

Member Function Documentation

◆ Awake()

void ManoMotion.Demos.Grabbable.Awake ( )
inlineprivate

◆ Click()

virtual void ManoMotion.Demos.Grabbable.Click ( Grabber grabber)
inlinevirtual

◆ DragStart()

virtual void ManoMotion.Demos.Grabbable.DragStart ( Grabber grabber)
inlinevirtual

◆ Duplicate()

Grabbable ManoMotion.Demos.Grabbable.Duplicate ( )
inlineprivate

◆ Grab()

virtual void ManoMotion.Demos.Grabbable.Grab ( Grabber grabber)
inlinevirtual

◆ HoverStart()

virtual void ManoMotion.Demos.Grabbable.HoverStart ( Grabber grabber)
inlinevirtual

◆ HoverStop()

virtual void ManoMotion.Demos.Grabbable.HoverStop ( Grabber grabber)
inlinevirtual

◆ Move()

virtual void ManoMotion.Demos.Grabbable.Move ( Vector3 position)
inlinevirtual

◆ Release()

virtual void ManoMotion.Demos.Grabbable.Release ( Grabber grabber)
inlinevirtual

◆ Rotate()

virtual void ManoMotion.Demos.Grabbable.Rotate ( Quaternion rotation)
inlinevirtual

Member Data Documentation

◆ currentMaterialIndex

int ManoMotion.Demos.Grabbable.currentMaterialIndex = 0
protected

◆ grabber

Grabber ManoMotion.Demos.Grabbable.grabber
protected

◆ hoveredAlpha

float ManoMotion.Demos.Grabbable.hoveredAlpha = 0.5f
protected

◆ materials

Material [] ManoMotion.Demos.Grabbable.materials
protected

◆ meshRenderer

MeshRenderer ManoMotion.Demos.Grabbable.meshRenderer
protected

◆ OnClicked

Action<Grabbable> ManoMotion.Demos.Grabbable.OnClicked
static

◆ OnDragged

Action<Grabbable> ManoMotion.Demos.Grabbable.OnDragged
static

◆ OnGrabbed

Action<Grabbable> ManoMotion.Demos.Grabbable.OnGrabbed
static

◆ OnReleased

Action<Grabbable> ManoMotion.Demos.Grabbable.OnReleased
static

Property Documentation

◆ CanBeGrabbed

virtual bool ManoMotion.Demos.Grabbable.CanBeGrabbed
get