下载Cocos Creator
来源:Cocos
浏览 660
扫码
分享
2019-04-11 20:46:50
Editor.UI (Element Utils Module)
Methods
Editor.UI.getProperty (type)
type
string
Get registered property via type
.
Editor.UI.parseArray (txt)
txt
string
Parse txt
as an array.
Editor.UI.parseBoolean (txt)
txt
string
Parse txt
as a boolean value.
Editor.UI.parseColor (txt)
txt
string
Parse txt
as a color object.
Editor.UI.parseObject (txt)
txt
string
Parse txt
as an object.
Editor.UI.parseString (txt)
txt
string
Parse txt
as a string.
Editor.UI.regenProperty (propEL, cb)
propEL
HTMLElementcb
function
Regenerate property at propEL
.
Editor.UI.registerElement (name, def)
name
stringdef
object
Register a custom element.
Editor.UI.registerProperty (type, protoOrUrl)
type
stringprotoOrUrl
object|string
Register a custom property.
Editor.UI.unregisterProperty (type)
type
string
Unregister a custom property.
当前内容版权归
Cocos 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问
Cocos .