ultralight-godot SHOWCASEshabbywu/ultralight-godot

API / CLASS REFERENCE

UltralightBindingOptions

继承: RefCounted

配置绑定的成员范围、可写性和容器转换方式。

选项在注册或绑定时复制。之后修改选项对象不会改变已有绑定。read_only 限制当前绑定及嵌套容器的写入,但不会推断调用方法是否有副作用。

属性

方法

copy_containersbool

为此注册项启用递归按值转换。默认 false,即共享容器。

默认值: — · 访问器: set_copy_containers() / get_copy_containers()

read_onlybool

拒绝此绑定及嵌套容器的写入;方法自身副作用仍由应用负责。默认 false。

默认值: — · 访问器: set_read_only() / get_read_only()

membersPackedStringArray

根对象的成员名单。空列表使用默认公开成员规则;枚举不会调用 getter。

默认值: — · 访问器: set_members() / get_members()

get_copy_containers

get_copy_containers() → bool const

读取 copy_containers。

set_copy_containers

set_copy_containers(value: bool) → void

设置 copy_containers。

get_read_only

get_read_only() → bool const

读取 read_only。

set_read_only

set_read_only(value: bool) → void

设置 read_only。

get_members

get_members() → PackedStringArray const

读取 members。

set_members

set_members(value: PackedStringArray) → void

设置 members。

查看类文档源码 ↗

Godot 运行截图 · 按 Esc 关闭 打开原图 ↗