FairyGUI.Stage
class FairyGUI.Stage
Fields and Properties:
- (static)
bool FairyGUI.Stage.OldInput
int stageHeight
int stageWidth
float soundVolume
- Description:
- (static)
FairyGUI.Stage FairyGUI.Stage.inst
- Description:
- (static)
bool FairyGUI.Stage.Inited
- (static)
bool FairyGUI.Stage.touchScreen
- Description: If true, touch input will be used, and the Input.GetTouch interface will be used to read the touch screen input. If false, mouse input will be used, and the Input.GetMouseButtonXXX interface will be used to read mouse input. Generally, there is no need to set this, as the underlying system will automatically set the correct value based on the system environment.
- (static)
bool FairyGUI.Stage.keyboardInput
- Description: If true, keyboard input will be provided through an on-screen keyboard, commonly found in mobile devices. If false, keyboard input will be received through key messages, as typically seen in PCs. Generally, there is no need to set this, as the underlying system will automatically set the correct value based on the system environment.
- (static)
bool FairyGUI.Stage.isTouchOnUI
- Description:
- (static)
bool FairyGUI.Stage.isTouchOnFGUI
- (static)
float FairyGUI.Stage.devicePixelRatio
- Description: As unity does not provide ways to detect this, you should set it by yourself. This will effect:
- compoistion cursor pos.
- mouse wheel speed.
FairyGUI.EventListener onStageResized
- Description:
FairyGUI.DisplayObject touchTarget
- Description:
FairyGUI.DisplayObject focus
- Description:
UnityEngine.Vector2 touchPosition
- Description:
int touchCount
- Description:
string activeCursor
- Description:
Constructors:
FairyGUI.Stage.New()
- Description:
Methods:
- (static)
void FairyGUI.Stage.Instantiate()
- Description:
void Dispose()
void SetFocus(FairyGUI.DisplayObject, bool)
void DoKeyNavigate(bool)
- Description:
- Parameter backward:
UnityEngine.Vector2 GetTouchPosition(int)
- Description:
- Parameter touchId:
- Return:
FairyGUI.DisplayObject GetTouchTarget(int)
- Description:
- Parameter touchId:
- Return:
int[] GetAllTouch(int[])
void ResetInputState()
- Description:
void CancelClick(int)
- Description:
- Parameter touchId:
void EnableSound()
- Description:
void DisableSound()
- Description:
void PlayOneShotSound(UnityEngine.AudioClip, float)
- Description:
- Parameter clip:
- Parameter volumeScale:
void PlayOneShotSound(UnityEngine.AudioClip)
- Description:
- Parameter clip:
void OpenKeyboard(string, bool, bool, bool, bool, string, int, bool)
- Description:
- Parameter text:
- Parameter autocorrection:
- Parameter multiline:
- Parameter secure:
- Parameter alert:
- Parameter textPlaceholder:
- Parameter keyboardType:
- Parameter hideInput:
void CloseKeyboard()
- Description:
void InputString(string)
- Description: Inputs characters at the current cursor position.
- Parameter value:
void SetCustomInput(UnityEngine.Vector2, bool)
- Description:
- Parameter screenPos:
- Parameter buttonDown:
void SetCustomInput(UnityEngine.Vector2, bool, bool)
- Description:
- Parameter screenPos:
- Parameter buttonDown:
- Parameter buttonUp:
void SetCustomInput(ref UnityEngine.RaycastHit, bool)
- Description:
- Parameter hit:
- Parameter buttonDown:
void SetCustomInput(ref UnityEngine.RaycastHit, bool, bool)
- Description:
- Parameter hit:
- Parameter buttonDown:
- Parameter buttonUp:
void ForceUpdate()
void ApplyPanelOrder(FairyGUI.Container)
- Description: Sets the rendering order of UIPanel/UIPainter, etc., which is called internally by UIPanel, etc. Developers do not need to call this method.
- Parameter target:
- Parameter value:
void SortWorldSpacePanelsByZOrder(int)
- Description: Adjust display order of all UIPanels rendering in worldspace by their z order.
- Parameter panelSortingOrder: Only UIPanel.sortingOrder equals to this value will be involve in this sorting
void MonitorTexture(FairyGUI.NTexture)
- Description:
- Parameter texture:
void AddTouchMonitor(int, FairyGUI.EventDispatcher)
void RemoveTouchMonitor(FairyGUI.EventDispatcher)
bool IsTouchMonitoring(FairyGUI.EventDispatcher)
void RegisterCursor(string, UnityEngine.Texture2D, UnityEngine.Vector2)
- Description:
- Parameter cursorName:
- Parameter texture:
- Parameter hotspot: