Property | Type | Description | |
---|---|---|---|
colliderExtent | float | ||
colliderSizeFactor | Vector2 | ||
ctrlPlane | Plane | ||
maxScrollPos | float | ||
origPos | Vector3 | ||
slider | UISlider, |
Method | Description | |
---|---|---|
Copy ( SpriteRoot, s, ControlCopyFlags flags ) : void | ||
Create ( string name, Vector3 pos ) : UIScrollKnob, |
Creates a GameObject and attaches this component type to it.
|
|
Create ( string name, Vector3 pos, Quaternion rotation ) : UIScrollKnob, |
Creates a GameObject and attaches this component type to it.
|
|
GetScrollPos ( ) : float |
Returns a value in the range 0-1 indicating the scroll position. 0 indicates the starting position of the knob, 1 indicates the end position.
|
|
OnInput ( POINTER_INFO, &ptr ) : void | ||
SetColliderSizeFactor ( Vector2 csf ) : void | ||
SetMaxScroll ( float max ) : void | ||
SetPosition ( float pos ) : void |
Sets the position of the scroll knob. Values should be from 0-1.
|
|
SetSlider ( UISlider, s ) : void | ||
SetupAppearance ( ) : void | ||
UpdateCollider ( ) : void |
Method | Description | |
---|---|---|
Awake ( ) : void | ||
GetLocalInputPoint ( Ray ray ) : Vector3 |
public Copy ( SpriteRoot, s, ControlCopyFlags flags ) : void | ||
s | SpriteRoot, | |
flags | ControlCopyFlags | |
return | void |
static public Create ( string name, Vector3 pos ) : UIScrollKnob, | ||
name | string | Name to give to the new GameObject. |
pos | Vector3 | Position, in world space, where the new object should be created. |
return | UIScrollKnob, |
static public Create ( string name, Vector3 pos, Quaternion rotation ) : UIScrollKnob, | ||
name | string | Name to give to the new GameObject. |
pos | Vector3 | Position, in world space, where the new object should be created. |
rotation | Quaternion | Rotation of the object. |
return | UIScrollKnob, |
protected GetLocalInputPoint ( Ray ray ) : Vector3 | ||
ray | Ray | |
return | Vector3 |
public SetColliderSizeFactor ( Vector2 csf ) : void | ||
csf | Vector2 | |
return | void |
public SetPosition ( float pos ) : void | ||
pos | float | The new position of the scroll knob. |
return | void |