C# Класс UIScrollKnob, urban-survivors

Acts as a slider knob for a slider bar.
Наследование: UIButton
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
colliderExtent float
colliderSizeFactor Vector2
ctrlPlane Plane
maxScrollPos float
origPos Vector3
slider UISlider,

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
Awake ( ) : void
GetLocalInputPoint ( Ray ray ) : Vector3

Описание методов

Awake() защищенный Метод

protected Awake ( ) : void
Результат void

Copy() публичный Метод

public Copy ( SpriteRoot, s, ControlCopyFlags flags ) : void
s SpriteRoot,
flags ControlCopyFlags
Результат void

Create() статический публичный Метод

Creates a GameObject and attaches this component type to it.
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.
Результат UIScrollKnob,

Create() статический публичный Метод

Creates a GameObject and attaches this component type to it.
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.
Результат UIScrollKnob,

GetLocalInputPoint() защищенный Метод

protected GetLocalInputPoint ( Ray ray ) : Vector3
ray Ray
Результат Vector3

GetScrollPos() публичный Метод

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.
public GetScrollPos ( ) : float
Результат float

OnInput() публичный Метод

public OnInput ( POINTER_INFO, &ptr ) : void
ptr POINTER_INFO,
Результат void

SetColliderSizeFactor() публичный Метод

public SetColliderSizeFactor ( Vector2 csf ) : void
csf Vector2
Результат void

SetMaxScroll() публичный Метод

public SetMaxScroll ( float max ) : void
max float
Результат void

SetPosition() публичный Метод

Sets the position of the scroll knob. Values should be from 0-1.
public SetPosition ( float pos ) : void
pos float The new position of the scroll knob.
Результат void

SetSlider() публичный Метод

public SetSlider ( UISlider, s ) : void
s UISlider,
Результат void

SetupAppearance() публичный Метод

public SetupAppearance ( ) : void
Результат void

UpdateCollider() публичный Метод

public UpdateCollider ( ) : void
Результат void

Описание свойств

colliderExtent защищенное свойство

protected float colliderExtent
Результат float

colliderSizeFactor защищенное свойство

protected Vector2 colliderSizeFactor
Результат Vector2

ctrlPlane защищенное свойство

protected Plane ctrlPlane
Результат Plane

maxScrollPos защищенное свойство

protected float maxScrollPos
Результат float

origPos защищенное свойство

protected Vector3 origPos
Результат Vector3

slider защищенное свойство

protected UISlider, slider
Результат UISlider,