Skip to main content

Unity API Reference

Generated from the FairyGUI Unity SDK C# source and XML documentation comments.

Includes 241 public types and 3022 public or protected members, covering UI, rendering, events, tweening, utilities and optional extensions.

Use the search box to find types or members, or browse namespaces below. Type pages include signatures, overloads, original comments, parameters, returns and base-type links.

Source comments are preserved in their original language; empty comments are left empty. Declarations from multiple compilation profiles are merged; conditional APIs require the corresponding platform, define or extension dependency. Protected members are intended for subclasses.

<global namespace>​

TypeKindDescription
WebGLTextInputclass

FairyGUI​

TypeKindDescription
ControllerAction.ActionTypeenum
AlignTypeenum
AsyncCreationHelperclass
AutoSizeTypeenum
BitmapFont.BMGlyphclass
BaseFontclassBase class for all kind of fonts.
BatchElementclass
BitmapFontclass
BlendModeUtils.BlendFactorclass
BlendModeenum
BlendModeUtilsclass
BlurFilterclass
ButtonModeenum
CaptureCameraclass
ChangePageActionclass
TextField.CharPositionstruct
ChildrenRenderOrderenum
UpdateContext.ClipInfostruct
ColliderHitTestclass
ColorFilterclass
CompositeMeshclass
UIConfig.ConfigKeyenum
UIConfig.ConfigValueclass
Containerclass
ControllerclassController class. 控制器类。控制器的创建和设计需通过编辑器完成,不建议使用代码创建。 最常用的方法是通过selectedIndex获得或改变控制器的活动页面。如果要获得控制器页面改变的通知,使用onChanged事件。
ControllerActionclass
UIPackage.CreateObjectCallbackdelegate
GPathPoint.CurveTypeenum
CustomEaseclass
DestroyMethodenum
RTLSupport.DirectionTypeenum
DisplayObjectclass
DisplayObjectInfoclass
DragDropManagerclassHelper for drag and drop. 这是一个提供特殊拖放功能的功能类。与GObject.draggable不同,拖动开始后,他使用一个替代的图标作为拖动对象。 当玩家释放鼠标/手指,目标组件会发出一个onDrop事件。
DynamicFontclass
EMRenderSupportclass这是一个在编辑状态下渲染UI的功能类。EM=Edit Mode
EMRenderTargetinterface
EaseManagerclass
EaseTypeenum
EllipseMeshclass
Emojiclass
EventCallback0delegate
EventCallback1delegate
EventContextclass
EventDispatcherclass
EventListenerclass
FillMeshclass
FillMethodenum
FillTypeenum
FitScreenenum
DisplayObject.Flagsenum
FlipTypeenum
FocusRuleenum
FontManagerclass
MovieClip.Frameclass
GButtonclassGButton class.
GComboBoxclassGComboBox class.
GComponentclassComponent
UIObjectFactory.GComponentCreatordelegate
GGraphclassGGraph class. 对应编辑器里的图形对象。图形有两个用途,一是用来显示简单的图形,例如矩形等;二是作为一个占位的用途, 可以将本对象替换为其他对象,或者在它的前后添加其他对象,相当于一个位置和深度的占位;还可以直接将内容设置 为原生对象。
GGroupclassGGroup class. 组对象,对应编辑器里的高级组。
GImageclassGImage class.
GLabelclassGLabel class.
GListclassGList class.
GLoaderclassGLoader class
GLoader3Dclass
UIObjectFactory.GLoaderCreatordelegate
GMovieClipclassGMovieClip class.
GObjectclass
GObjectPoolclassGObjectPool is use for GObject pooling.
GPathclass
GPathPointstruct
GProgressBarclassGProgressBar class.
GRichTextFieldclassGRichTextField class.
GRootclassGRoot is a topmost component of UI display list.You dont need to create GRoot. It is created automatically.
GScrollBarclassGScrollBar class.
GSliderclass
GTextFieldclass
GTextInputclass
GTreeclass
GTreeNodeclass
GTweenclass
GTweenCallbackdelegate
GTweenCallback1delegate
GTweenerclass
GearAnimationclassGear is a connection between object and controller.
GearBaseclassGear is a connection between object and controller.
GearColorclassGear is a connection between object and controller.
GearDisplayclassGear is a connection between object and controller.
GearDisplay2classGear is a connection between object and controller.
GearFontSizeclassGear is a connection between object and controller.
GearIconclassGear is a connection between object and controller.
GearLookclassGear is a connection between object and controller.
GearSizeclassGear is a connection between object and controller.
GearTextclassGear is a connection between object and controller.
GearTweenConfigclass
GearXYclassGear is a connection between object and controller.
ShaderConfig.GetFunctiondelegate
GoWrapperclassGoWrapper is class for wrapping common gameobject into UI display list.
GroupLayoutTypeenum
HitTestContextclass
HitTestModeenum
IAnimationGearinterface
IBatchableinterface
IColorGearinterface
IEventDispatcherinterface
IFilterinterface
IHitTestinterface
IKeyboardinterface用于文本输入的键盘接口
IMeshFactoryinterface
ITextColorGearinterface
ITweenListenerinterface
IUISourceinterface
Imageclass
GObjectPool.InitCallbackDelegatedelegateCallback function when a new object is creating.
InputEventclass
InputTextFieldclass接收用户输入的文本控件。因为支持直接输入表情,所以从RichTextField派生。
TextField.LineCharInfostruct
TextField.LineInfoclass
LineMeshclassInspired by kim ki won (http://mypi.ruliweb.daum.net/mypi.htm?id=newtypekorea)
ListItemProviderdelegate
ListItemRendererdelegateCallback function when an item is needed to update its look.
ListLayoutTypeenum
ListSelectionModeenum
UIPackage.LoadResourcedelegateUse this callback to provide resources to the package.
UIPackage.LoadResourceAsyncdelegateA async load resource callback. After loaded, you should call item.owner.SetItemAsset.
LongPressGestureclass长按手势。当按下一定时间后(duration),派发onAction,如果once为false,则间隔duration时间持续派发onAction,直到手指释放。
Marginstruct
MaterialFlagsenum
MaterialManagerclassEvery texture-shader combination has a MaterialManager.
MeshColliderHitTestclass
MovieClipclass
NAudioClipclass
NGraphicsclass
NTextureclass
ObjectTypeenum
Origin180enum
Origin360enum
Origin90enum
OriginHorizontalenum
OriginVerticalenum
OverflowTypeenum
PackageItemclass
PackageItemTypeenum
DisplayObject.PaintingInfoclass
PinchGestureclass两个指头捏或者放的手势。
PixelHitTestclass
PixelHitTestDataclass
PlaneMeshclass
PlayCompleteCallbackdelegate
PlayTransitionActionclass
PolygonMeshclass
PopupDirectionenum
PopupMenuclass
ProgressTitleTypeenum
RTLSupportclass
RectHitTestclass
RectMeshclass
RegularPolygonMeshclass
RelationTypeenum
Relationsclass
GoWrapper.RendererInfostruct
RichTextFieldclass
RotationGestureclass手指反向操作的手势。
RoundedRectMeshclass
UIContentScaler.ScaleModeenum
UIContentScaler.ScreenMatchModeenum
ScrollBarDisplayTypeenum
ScrollPaneclass
ScrollTypeenum
GPath.Segmentstruct
SelectionShapeclass
ShaderConfigclass
Shapeclass
ShapeHitTestclass
UIConfig.SoundLoaderdelegate
TextFormat.SpecialStyleenum
Stageclass
StageCameraclassStage Camera is an orthographic camera for UI rendering.
StageEngineclass
Statsclass
StraightLineMeshclass
SwipeGestureclass滑动手势。你可以通过onBegin+onMove+onEnd关心整个滑动过程,也可以只使用onAction关注最后的滑动结果。滑动结果包括方向和加速度,可以从position和velocity获得。 注意onAction仅当滑动超过一定距离(actionDistance)时才触发。
TMPFontclassTextMeshPro text adapter for FairyGUI. Most of codes were taken from TextMeshPro! Note that not all of TextMeshPro features are supported.
TextFieldclass
TextFormatclass
TimerCallbackdelegate
Timersclass
TouchScreenKeyboardclass
Transitionclass
TransitionActionTypeenum
TransitionHookdelegate
TranslationHelperclass
TreeNodeclass
TreeView.TreeNodeCreateCellDelegatedelegate
GTree.TreeNodeRenderDelegatedelegate
TreeView.TreeNodeRenderDelegatedelegate
GTree.TreeNodeWillExpandDelegatedelegate
TreeView.TreeNodeWillExpandDelegatedelegate
TreeViewclass
TweenPropTypeenum
TweenValueclass
TypingEffectclass文字打字效果。先调用Start,然后Print。
UIConfigclassGlobal configs. These options should be set before any UI construction.
UIContentScalerclass
UILoadCallbackdelegate
UIObjectFactoryclass
UIPackageclassA UI Package contains a description file and some texture, sound assets.
UIPainterclass
UIPanelclass
UpdateContextclassUpdateContext is for internal use.
VertAlignTypeenum
VertexBufferclass
NGraphics.VertexMatrixclass
WindowclassWindow class. 窗口使用前首先要设置窗口中需要显示的内容,这通常是在编辑器里制作好的,可以直接使用Window.contentPane进行设置。 建议把设置contentPane等初始化操作放置到Window.onInit方法中。 另外,FairyGUI还提供了一套机制用于窗口动态创建。动态创建是指初始时仅指定窗口需要使用的资源,等窗口需要显示时才实际开始构建窗口的内容。 首先需要在窗口的构造函数中调用Window.addUISource。这个方法需要一个IUISource类型的参数,而IUISource是一个接口, 用户需要自行实现载入相关UI包的逻辑。当窗口第一次显示之前,IUISource的加载方法将会被调用,并等待载入完成后才返回执行Window.OnInit,然后窗口才会显示。 如果你需要窗口显示时播放动画效果,那么覆盖doShowAnimation编写你的动画代码,并且在动画结束后调用onShown。覆盖onShown编写其他需要在窗口显示时处理的业务逻辑。 如果你需要窗口隐藏时播放动画效果,那么覆盖doHideAnimation编写你的动画代码,并且在动画结束时调用Window.hideImmediately(注意不是直接调用onHide!)。覆盖onHide编写其他需要在窗口隐藏时处理的业务逻辑。

FairyGUI.Utils​

TypeKindDescription
ByteBufferclass
XMLList.Enumeratorstruct
HtmlButtonclass
HtmlElementclass
HtmlElementTypeenum
HtmlImageclass
HtmlInputclass
HtmlLinkclass
HtmlPageContextclass
HtmlParseOptionsclass
HtmlParserclass
HtmlSelectclass
IHtmlObjectinterfaceCreate->SetPosition->(Add<->Remove)->Release->Dispose
IHtmlPageContextinterface
UBBParser.TagHandlerdelegate
HtmlParser.TextFormat2class
ToolSetclass
UBBParserclass
XMLclassA simplest and readonly XML class
XMLIteratorclass
XMLListclass
XMLTagTypeenum
XMLUtilsclass
ZipReader.ZipEntryclass
ZipReaderclass一个简单的Zip文件处理类。不处理解压。