大约有 151 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0078 秒)
...时 UI 运行时 是 LayaAir 引擎在 UI 系统中提供的一种运行时绑定机制,用于简化复杂 2D 节点对象的代码管理逻辑。 基于UI运行时,开发者可以在编辑器中为界面上的任意节点命名并定义变量,运行时便可直接通过 this.xx 的形式访...
来源: Laya3.0_文档 发布时间: 20251010
...//根据需要设置 //DataComponent可以方便的将你的组件和数据绑定在一起 this._comp = new IEditor.DataComponent(MyPanelType); //inspect可以多次调用,将多个数据组合在一个面板编辑 this._panel.inspect(this._comp.props, MyPanelType); this._panel.on("my_click", ()=&...
来源: Laya3.0_文档 发布时间: 20251010
...e 属性设置为 number 的时候 maxChars 字数限制无效 图片Sprite绑定点击事件,点击区域不对 Input输入文本的restrict限制输入的字符怎么使用? 加载单张图片尺寸限制 问题状态 最新活动: 2019-07-30 15:05 浏览: 6443 关注: 23 人 sfsmmc • 2017-0...
来源: Laya_社区 发布时间: 20170505
...。Spine 编辑器用于创建和调整动画,支持导入位图资源、绑定骨骼、调整关键帧,并设置动画参数。 Spine 运行时则是官方提供的一系列开源库,LayaAir 引擎正是通过引入Spine 运行时的方式,将Spine动画的渲染接入到 LayaAir 引擎。 ...
来源: Laya3.0_文档 发布时间: 20251128
...。 Layout.layout:将节点树绘制在canvas上,同时会执行事件绑定等逻辑,传入canvas的渲染上下文(context)作为参数。 一般来说,开发者只需要自行决定后三个方法的执行时机即可,LayaAir引擎内部会自行执行Layout.updateViewPort这个方...
来源: Laya3.0_文档 发布时间: 20251010
...脚本添加到节点上。 例如,我们创建一个3D盒子,并为其绑定刚刚创建的TSDemo脚本。示例代码如下: //引入自定义脚本TSDemo import TSDemo from "./TSDemo"; /** * TypeScript语言示例 */ export default class GameUI extends GameUIBase { /* ……省略若干代...
来源: Laya3.0_文档 发布时间: 20251010
...脚本添加到节点上。 例如,我们创建一个3D盒子,并为其绑定刚刚创建的TSDemo脚本。示例代码如下: ```typescript //引入自定义脚本TSDemo import TSDemo from "./TSDemo"; /** * TypeScript语言示例 */ export default class GameUI extends ui.TestSceneUI { /* …...
来源: Laya2.0_文档 发布时间: 20210715
...r(value: RenderTexture): void Defined in laya/resource/RenderTexture.ts:87 绑定到主画布上的RenderTexture Returns RenderTexture Defined in laya/resource/RenderTexture.ts:91 绑定到主画布上的RenderTexture Parameters value: RenderTexture Returns void Static cpuMemory get cpuMemory(): num...
来源: Laya3.0_api 发布时间: 20231115
...void end end(): void Defined in laya/resource/RenderTexture2D.ts:229 结束绑定。 Returns void event event(type: string, data?: any): boolean Inherited from EventDispatcher.event Defined in laya/events/EventDispatcher.ts:32 派发事件。 Parameters type: string 事件类型。 Optional data: an...
来源: Laya3.0_api 发布时间: 20231115
...nd end(): void Defined in laya/resource/NativeRenderTexture2D.ts:161 结束绑定。 Returns void event event(type: string, data?: any): boolean Inherited from EventDispatcher.event Defined in laya/events/EventDispatcher.ts:32 派发事件。 Parameters type: string 事件类型。 Optional data: an...
来源: Laya3.0_api 发布时间: 20231115