m4m.reflect
@meta4d/engine / Exports / m4m / reflect
Namespace: reflect
m4m.reflect
Table of contents
Functions
Functions
Field
▸ Field(valueType
, defaultValue?
, referenceType?
): (target
: Object
, propertyKey
: string
) => void
language
zh_CN
classdesc
Field
version
m4m 1.0
Parameters
valueType
string
undefined
值类型
defaultValue
any
undefined
默认值
referenceType
string
undefined
valueType 为 reference类型时 的具体类型
Returns
fn
▸ (target
, propertyKey
): void
Parameters
target
Object
propertyKey
string
Returns
void
Defined in
FieldRef
▸ FieldRef(referenceType
, defaultValue?
): (target
: Object
, propertyKey
: string
) => void
Field的引用类型(修饰后,改字段将在 Inspector 中暴露 , 该函数是Field() 的封装 )
Parameters
referenceType
string
undefined
reference指定类型 支持:"transform"、"transform2D"、@reflect.node2DComponent、@reflect.nodeComponent
defaultValue
any
undefined
默认值
Returns
fn
▸ (target
, propertyKey
): void
Parameters
target
Object
propertyKey
string
Returns
void
Defined in
UIComment
▸ UIComment(comment
): (target
: Object
, propertyKey
: string
) => void
language
zh_CN
classdesc
属性面板提示修饰
version
m4m 1.0
Parameters
comment
string
Returns
fn
▸ (target
, propertyKey
): void
Parameters
target
Object
propertyKey
string
Returns
void
Defined in
UIStyle
▸ UIStyle(style
, min?
, max?
, defvalue?
): (target
: Object
, propertyKey
: string
) => void
language
zh_CN
classdesc
属性面板显示方式修饰
version
m4m 1.0
Parameters
style
string
min?
number
max?
number
defvalue?
any
Returns
fn
▸ (target
, propertyKey
): void
Parameters
target
Object
propertyKey
string
Returns
void
Defined in
isComp
▸ isComp(type
): any
Parameters
type
string
Returns
any
Defined in
Last updated