Cocos Creator
手册文档
API 参考
Cocos Creator 3D
手册文档
API 参考
Cocos2d-x
手册文档
API 参考
Version: 3.1
Version: 3.5
Version: 3.4
Version: 3.3
Version: 3.2
Version: 3.0
Version: 2.4
Version: 2.3
Version: 2.2
Version: 2.1
Version: 2.0
Version: 1.10
Version: 1.9
Search
Preparing search index...
The search index is not available
CocosCreatorAPI
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
scenegraph
NodeUIProperties
Class NodeUIProperties
节点上 UI 相关的属性抽象类
Hierarchy
NodeUIProperties
Index
Constructors
constructor
Properties
_node
_ui
Comp
_ui
Transform
Comp
opacity
Accessors
ui
Comp
ui
Transform
Comp
Constructors
constructor
new
NodeUIProperties
(
node
:
any
)
:
NodeUIProperties
Parameters
node:
any
Returns
NodeUIProperties
Properties
Private
_node
_node
:
any
Private
_ui
Comp
_ui
Comp
:
UIComponent
|
Renderable2D
|
null
= null
Protected
_ui
Transform
Comp
_ui
Transform
Comp
:
UITransform
|
null
= null
opacity
opacity
:
number
= 1
UI 透明度
Accessors
ui
Comp
get
uiComp
(
)
:
null
|
Renderable2D
|
UIComponent
set
uiComp
(
comp
:
UIComponent
|
Renderable2D
|
null
)
:
void
UI 基类组件
Returns
null
|
Renderable2D
|
UIComponent
UI 基类组件
Parameters
comp:
UIComponent
|
Renderable2D
|
null
Returns
void
ui
Transform
Comp
get
uiTransformComp
(
)
:
null
|
UITransform
set
uiTransformComp
(
value
:
UITransform
|
null
)
:
void
UI 变换组件
Returns
null
|
UITransform
UI 变换组件
Parameters
value:
UITransform
|
null
Returns
void
Globals
scene-
graph
NodeUIProperties
constructor
_node
_ui
Comp
_ui
Transform
Comp
opacity
ui
Comp
ui
Transform
Comp
Generated using
TypeDoc
节点上 UI 相关的属性抽象类