Feel  5.1
The best way to improve your game's feel and make it extra juicy
Lofelt.NiceVibrations.MMKnob Class Reference
Inheritance diagram for Lofelt.NiceVibrations.MMKnob:

Public Member Functions

virtual void SetActive (bool status)
 
virtual void SetValue (float value)
 
void OnPointerDown (PointerEventData eventData)
 
void OnPointerUp (PointerEventData eventData)
 

Public Attributes

Camera TargetCamera
 
float MinimumAngle = 45f
 
float MaximumAngle = -225f
 
float MaximumDistance = 50f
 
Color ActiveColor
 
Color InactiveColor
 
bool Dragging = false
 
float Value = 0f
 
bool Active = true
 
Image _image
 
RectTransform _rectTransform
 

Protected Member Functions

virtual void Awake ()
 
virtual void Update ()
 
virtual void SetRotation (float angle)
 
virtual Vector3 GetWorldPosition (Vector3 testPosition)
 

Protected Attributes

PointerEventData _pointerEventData
 
float _distance
 
Vector3 _rotation = Vector3.zero
 
Canvas _canvas
 
Vector2 _workPosition
 

Properties

RenderMode ParentCanvasRenderMode [get, protected set]
 

Member Function Documentation

◆ Awake()

virtual void Lofelt.NiceVibrations.MMKnob.Awake ( )
protectedvirtual

◆ GetWorldPosition()

virtual Vector3 Lofelt.NiceVibrations.MMKnob.GetWorldPosition ( Vector3  testPosition)
protectedvirtual

◆ OnPointerDown()

void Lofelt.NiceVibrations.MMKnob.OnPointerDown ( PointerEventData  eventData)

◆ OnPointerUp()

void Lofelt.NiceVibrations.MMKnob.OnPointerUp ( PointerEventData  eventData)

◆ SetActive()

virtual void Lofelt.NiceVibrations.MMKnob.SetActive ( bool  status)
virtual

◆ SetRotation()

virtual void Lofelt.NiceVibrations.MMKnob.SetRotation ( float  angle)
protectedvirtual

◆ SetValue()

virtual void Lofelt.NiceVibrations.MMKnob.SetValue ( float  value)
virtual

◆ Update()

virtual void Lofelt.NiceVibrations.MMKnob.Update ( )
protectedvirtual

Member Data Documentation

◆ _canvas

Canvas Lofelt.NiceVibrations.MMKnob._canvas
protected

◆ _distance

float Lofelt.NiceVibrations.MMKnob._distance
protected

◆ _image

Image Lofelt.NiceVibrations.MMKnob._image

◆ _pointerEventData

PointerEventData Lofelt.NiceVibrations.MMKnob._pointerEventData
protected

◆ _rectTransform

RectTransform Lofelt.NiceVibrations.MMKnob._rectTransform

◆ _rotation

Vector3 Lofelt.NiceVibrations.MMKnob._rotation = Vector3.zero
protected

◆ _workPosition

Vector2 Lofelt.NiceVibrations.MMKnob._workPosition
protected

◆ Active

bool Lofelt.NiceVibrations.MMKnob.Active = true

◆ ActiveColor

Color Lofelt.NiceVibrations.MMKnob.ActiveColor

◆ Dragging

bool Lofelt.NiceVibrations.MMKnob.Dragging = false

◆ InactiveColor

Color Lofelt.NiceVibrations.MMKnob.InactiveColor

◆ MaximumAngle

float Lofelt.NiceVibrations.MMKnob.MaximumAngle = -225f

◆ MaximumDistance

float Lofelt.NiceVibrations.MMKnob.MaximumDistance = 50f

◆ MinimumAngle

float Lofelt.NiceVibrations.MMKnob.MinimumAngle = 45f

◆ TargetCamera

Camera Lofelt.NiceVibrations.MMKnob.TargetCamera

◆ Value

float Lofelt.NiceVibrations.MMKnob.Value = 0f

Property Documentation

◆ ParentCanvasRenderMode

RenderMode Lofelt.NiceVibrations.MMKnob.ParentCanvasRenderMode
getprotected set

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