• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 412 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0046 秒)

381. 下拉选项框组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 40%]

...,item3,item4,item5"); ComboBox.labelSize = 30; ComboBox.itemSize = 25 this.owner.addChild(ComboBox); ComboBox.autoSize = true; ComboBox.pos(200, 200); }); } } Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:27:59 img{cursor:pointer}

来源: Laya3.0_文档 发布时间: 20251010

382. 复选框组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 40%]

...ng): Laya.CheckBox { let cb: Laya.CheckBox = new Laya.CheckBox(skin); this.owner.addChild(cb); cb.labelColors = "white"; cb.labelSize = 20; cb.labelFont = "Microsoft YaHei"; cb.labelPadding = "3,0,0,5"; return cb; } private updateLabel(checkBox: Laya.CheckBox): void { checkBox.label = checkBox.selec...

来源: Laya3.0_文档 发布时间: 20251010

383. 2D灯光与网格 · LayaAir3.3 · 引擎文档 · LAYABOX [ 40%]

...} = Laya; @regClass() export class lightTest extends Laya.Script { declare owner: Laya.Sprite; @property({ type: Laya.Sprite }) light1: Laya.Sprite; @property({ type: Laya.Sprite }) mesh1: Laya.Sprite; @property({ type: Laya.Sprite }) mesh2: Laya.Sprite; private light1Render: Laya.FreeformLight2D; p...

来源: Laya3.0_文档 发布时间: 20251010

384. 两个物体 ,如果在update里修改其中一个物体的rotationEuler,会触发另一个物体的onTriggerEnter回调 [ 39%]

...er(other: Laya.PhysicsComponent) { console.error("onTriggerEnter " + other.owner.name); } }   已上传demo和相关资源.麻烦大佬们帮忙看看,谢谢 附件 : --> Test3DBug.zip 2020-07-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

来源: Laya_社区 发布时间: 20200720

385. 抖音小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 39%]

... } = Laya; @regClass() export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake()...

来源: Laya3.0_文档 发布时间: 20251010

386. runTime使用(TypeScript-IDE篇(TS)-组件化开发相关) [ 38%]

...coreLbl,具有代码提示效果。而script脚本获取只能通过this.owner.getChildByName("xxx") 等方式获取节点** - **建议:如果是页面级的逻辑,需要频繁访问页面内多个元素,使用runtime继承式写法,如果是独立小模块,功能单一,建议用script...

来源: Laya2.0_文档 发布时间: 20210715

387. laya.d3.component.Animator [ 38%]

...ingleton : Boolean[read-only] 获取是否为单实例组件。 Component owner : Node [只读]获取所属Node节点。 Component  speed : Number 获取动画的播放速度,1.0为正常播放速度。 AnimatorPublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefi...

来源: Laya2.0_api 发布时间: 20190513

388. 插件开发说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 36%]

.../Script1.ts @regClass() export class Script1 extends Laya.Script { declare owner : Laya.Sprite3D; } //TestCustomEditor.ts @IEditorEnv.customEditor(Script1) export class TestCustomEditor extends IEditorEnv.CustomEditor { declare owner: Laya.Sprite3D; onSceneGUI(): void { IEditorEnv.Handles.drawHemiSp...

来源: Laya3.0_文档 发布时间: 20251010

389. 单选框组容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 36%]

...true; rg.selectHandler = new Laya.Handler(this, this.onSelectChange); this.owner.addChild(rg); return rg; } private onSelectChange(index: number): void { console.log("你选择了第 " + (index + 1) + " 项"); } } 效果如图所示: (图3-1) Copyright ©Layabox 2025 all right reserved,power...

来源: Laya3.0_文档 发布时间: 20251016

390. 列表组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 35%]

...处理 list.renderHandler = new Laya.Handler(this, this.updateItem); this.owner.addChild(list); // 设置数据源为对应图片的路径 var data: any[] = []; for (var i: number = 0; i < 10; ++i) { data.push("resources/res/ui/listskins/1.jpg"); data.push("resources/res/ui/listskins/2.jpg"); dat...

来源: Laya3.0_文档 发布时间: 20251010