UIConfig
命名空间:FairyGUI
源码:Assets/Scripts/UI/UIConfig.cs (行 10)
public class UIConfig : MonoBehaviour
Global configs. These options should be set before any UI construction.
字段
Items
public List<ConfigValue> Items;
源码:UI/UIConfig.cs (行 237)
PreloadPackages
public List<string> PreloadPackages;
源码:UI/UIConfig.cs (行 238)
allowSoftnessOnTopOrLeftSide
public static bool allowSoftnessOnTopOrLeftSide;
Allow softness on top or left side for scrollpane.
源码:UI/UIConfig.cs (行 141)
bringWindowToFrontOnClick
public static bool bringWindowToFrontOnClick;
When click the window, brings to front automatically.
源码:UI/UIConfig.cs (行 146)
buttonSound
public static NAudioClip buttonSound;
Default button click sound.
源码:UI/UIConfig.cs (行 41)
buttonSoundVolumeScale
public static float buttonSoundVolumeScale;
Default button click sound volume.
源码:UI/UIConfig.cs (行 46)
clickDragSensitivity
public static int clickDragSensitivity;
Pixel offsets of mouse pointer to trigger dragging.
源码:UI/UIConfig.cs (行 136)
defaultComboBoxVisibleItemCount
public static int defaultComboBoxVisibleItemCount;
The number of visible items in ComboBox.
源码:UI/UIConfig.cs (行 121)
defaultFont
public static string defaultFont;
Dynamic Font Support. 4.x: Put the xxx.ttf into /Resources or /Resources/Fonts, and set defaultFont="xxx". 5.x: set defaultFont to system font name(or names joint with comma). e.g. defaultFont="Microsoft YaHei, SimHei"
源码:UI/UIConfig.cs (行 18)
defaultScrollBarDisplay
public static ScrollBarDisplayType defaultScrollBarDisplay;
Scrollbar display mode. Recommended 'Auto' for mobile and 'Visible' for web.
源码:UI/UIConfig.cs (行 76)
defaultScrollBounceEffect
public static bool defaultScrollBounceEffect;
The "rebound" effect in the scolling container.
源码:UI/UIConfig.cs (行 86)
defaultScrollDecelerationRate
public static float defaultScrollDecelerationRate;
Deceleration ratio of scrollpane when its in touch dragging. 当手指拖动并释放滚动区域后,内容会滑动一定距离后停下,这个速率就是减速的速率。 越接近1,减速越慢,意味着滑动的时间和距离更长。 这个是全局设置,也可以通过ScrollPane.decelerationRate进行个性设置。
源码:UI/UIConfig.cs (行 71)
defaultScrollPagingThreshold
public static float defaultScrollPagingThreshold;
When the scrolling container is set to "page mode", it determines the scrolling distance threshold to which page to turn.
源码:UI/UIConfig.cs (行 96)
defaultScrollSnappingThreshold
public static float defaultScrollSnappingThreshold;
When the scrolling container is set to "snap to the item", the rolling distance threshold of which item is close to is determined.
源码:UI/UIConfig.cs (行 91)
defaultScrollStep
public static float defaultScrollStep;
Scrolling step in pixels 当调用ScrollPane.scrollUp/Down/Left/Right时,或者点击滚动条的上下箭头时,滑动的距离。 鼠标滚轮触发一次滚动的距离设定为defaultScrollStep*2
源码:UI/UIConfig.cs (行 63)
defaultScrollTouchEffect
public static bool defaultScrollTouchEffect;
Allow dragging anywhere in container to scroll.
源码:UI/UIConfig.cs (行 81)
depthSupportForPaintingMode
public static bool depthSupportForPaintingMode;
if RenderTexture using in painting mode has depth support.
源码:UI/UIConfig.cs (行 166)
enhancedTextOutlineEffect
public static bool enhancedTextOutlineEffect;
Indicates whether to draw extra 4 or 8 times to achieve stroke effect for textfield. If it is true, that is the 8 times, otherwise it is the 4 times.
源码:UI/UIConfig.cs (行 172)
frameTimeForAsyncUIConstruction
public static float frameTimeForAsyncUIConstruction;
源码:UI/UIConfig.cs (行 161)
globalModalWaiting
public static string globalModalWaiting;
Resource using in GRoot.ShowModalWait for locking the screen.
源码:UI/UIConfig.cs (行 31)
horizontalScrollBar
public static string horizontalScrollBar;
Resource url of horizontal scrollbar
源码:UI/UIConfig.cs (行 51)
inputCaretSize
public static float inputCaretSize;
源码:UI/UIConfig.cs (行 151)
inputHighlightColor
public static Color inputHighlightColor;
源码:UI/UIConfig.cs (行 156)
loaderErrorSign
public static string loaderErrorSign;
In case of failure of loading content for GLoader, use this sign to indicate an error.
源码:UI/UIConfig.cs (行 111)
makePixelPerfect
public static bool makePixelPerfect;
Suggest to enable it on low dpi (e.g. 96dpi) screens.
源码:UI/UIConfig.cs (行 180)
modalLayerColor
public static Color modalLayerColor;
When a modal window is in front, the background becomes dark.
源码:UI/UIConfig.cs (行 36)
popupMenu
public static string popupMenu;
Resources url of PopupMenu.
源码:UI/UIConfig.cs (行 101)
popupMenu_seperator
public static string popupMenu_seperator;
Resource url of menu seperator.
源码:UI/UIConfig.cs (行 106)
renderingTextBrighterOnDesktop
public static bool renderingTextBrighterOnDesktop;
源码:UI/UIConfig.cs (行 21)
richTextRowVerticalAlign
public static VertAlignType richTextRowVerticalAlign;
源码:UI/UIConfig.cs (行 175)
soundLoader
public static SoundLoader soundLoader;
源码:UI/UIConfig.cs (行 460)
tooltipsWin
public static string tooltipsWin;
Resource url of tooltips.
源码:UI/UIConfig.cs (行 116)
touchDragSensitivity
public static int touchDragSensitivity;
Pixel offsets of finger to trigger dragging
源码:UI/UIConfig.cs (行 131)
touchScrollSensitivity
public static int touchScrollSensitivity;
Pixel offsets of finger to trigger scrolling
源码:UI/UIConfig.cs (行 126)
verticalScrollBar
public static string verticalScrollBar;
Resource url of vertical scrollbar
源码:UI/UIConfig.cs (行 56)
windowModalWaiting
public static string windowModalWaiting;
Resource using in Window.ShowModalWait for locking the window.
源码:UI/UIConfig.cs (行 26)
方法
ApplyModifiedProperties()
public void ApplyModifiedProperties();
源码:UI/UIConfig.cs (行 450)
ClearResourceRefs()
public static void ClearResourceRefs();
源码:UI/UIConfig.cs (行 435)
Load()
public void Load();
源码:UI/UIConfig.cs (行 253)
SetDefaultValue(ConfigKey, ConfigValue)
public static void SetDefaultValue(ConfigKey key, ConfigValue value);
| 参数 | 类型 | 说明 |
|---|---|---|
key | ConfigKey | |
value | ConfigValue |
源码:UI/UIConfig.cs (行 372)