Meta SDK2 Beta  2.7.0
Meta.Mouse.DragScale Class Reference

Handles scaling of an object using the mouse scrollwheel. More...

Inheritance diagram for Meta.Mouse.DragScale:
Meta.Mouse.IPointerAction

Public Member Functions

void OnDrag (PointerEventData eventData)
 
void OnPointerDown (PointerEventData eventData)
 Pointer button is down. More...
 
void OnPointerUp (PointerEventData eventData)
 Pointer button is up. More...
 

Properties

MetaInteractionDataEvent PointerDown [get]
 inheritdoc /> More...
 
MetaInteractionDataEvent PointerUp [get]
 inheritdoc /> More...
 
Transform TargetTransform [get, set]
 
float MaximumScale [get, set]
 The maximum size an object can be scaled, considering all its dimensions More...
 
float MinimumScale [get, set]
 The minimum size an object can be scaled, considering all its dimensions More...
 
- Properties inherited from Meta.Mouse.IPointerAction
Transform TargetTransform [get, set]
 Transform that is where the action is applied. More...
 
MetaInteractionDataEvent PointerDown [get]
 Event called when a pointer is held down. More...
 
MetaInteractionDataEvent PointerUp [get]
 Event called when a pointer is released from being held down. More...
 

Detailed Description

Handles scaling of an object using the mouse scrollwheel.

Member Function Documentation

◆ OnDrag()

void Meta.Mouse.DragScale.OnDrag ( PointerEventData  eventData)
inline

◆ OnPointerDown()

void Meta.Mouse.DragScale.OnPointerDown ( PointerEventData  eventData)
inline

Pointer button is down.

◆ OnPointerUp()

void Meta.Mouse.DragScale.OnPointerUp ( PointerEventData  eventData)
inline

Pointer button is up.

Property Documentation

◆ MaximumScale

float Meta.Mouse.DragScale.MaximumScale
getset

The maximum size an object can be scaled, considering all its dimensions

◆ MinimumScale

float Meta.Mouse.DragScale.MinimumScale
getset

The minimum size an object can be scaled, considering all its dimensions

◆ PointerDown

MetaInteractionDataEvent Meta.Mouse.DragScale.PointerDown
get

inheritdoc />

◆ PointerUp

MetaInteractionDataEvent Meta.Mouse.DragScale.PointerUp
get

inheritdoc />

◆ TargetTransform

Transform Meta.Mouse.DragScale.TargetTransform
getset