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

大约有 378 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0043 秒)

211. laya.physics.joint.MotorJoint [ 47%]

...ysics.jointClasspublic class MotorJointInheritanceMotorJoint JointBase Component Object 马达关节:用来限制两个刚体,使其相对位置和角度保持不变 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By  angularOffset : Number...

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

212. 事件管理 · LayaAir3.0文档 · LAYABOX [ 47%]

...码是如何使用CLICK 的(以下代码来自“2D入门示例”): onEnable(): void { console.log("IndexRT onEnable") //侦听ui按钮点击事件 this.uiBtn.on(Laya.Event.CLICK, this, () => { //点击后,打开UI场景示例 console.log("uiBtn"); Laya.Scene.open("scenes/UiMain.ls"); })...

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

213. [LayaAir3]dialog弹窗打开前如何传入参数刷新界面? [ 47%]

... {             this.openList.set(id, scene);             scene.onEnable();             scene.onOpened(param);             scene.open(false, param);         });   附件 : --> 2023-12-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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

214. 当使用代码创建打开场景时,onOpened触发了,但场景active和activeInHierarchy还是处于false,请问纯代码怎么实现场景创建激活,谢谢 [ 47%]

...**028 赞同来自: 你可以试试他内嵌模式生成的代码 会调用onEnable, 然后加断点跟踪他的代码啦。 我就跟踪了一下 发现只要调用createView({})就可以了,当然这里的gm是不会告诉你这么干的 2019-04-24 0 1 分享 微博 QZONE 微信 为什么被...

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

215. laya2.0 IDE继承自定义类要怎么写? [ 47%]

...ned();但是首次打开会触发onAwake   下次添加到舞台会触发onEnable。 亲测有效、做UI框架管理可以这个方法 2019-04-11 0 0 分享 微博 QZONE 微信 石圣 赞同来自: 这个bug到目前为止官方一直没修复,尽管论坛上官方人员回复说已经修复了...

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

216. laya.physics.joint.RevoluteJoint [ 47%]

...jointClasspublic class RevoluteJointInheritanceRevoluteJoint JointBase Component Object 旋转关节强制两个物体共享一个锚点,两个物体相对旋转 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By  anchor : Array[首次设置...

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

217. laya.d3.core.pixelline.PixelLineSprite3D_API3.0 [ 47%]

...ETRICGI_PROBESTEPS WORLDINVERTFRONT Accessors active activeInHierarchy components destroyed displayedInStage hideFlags id is3D layer lineCount maxLineCount numChildren parent pixelLineRenderer scene timer transform url Methods _initialize _processActive addChild addChildAt addChildren addComponent a...

来源: Laya3.0_api 发布时间: 20231115

218. 实体组件系统 · LayaAir3.0文档 · LAYABOX [ 47%]

...uthor:Charley 、谷主、孟星煜 一、 什么是ECS ECS是Entity-Component-System(实体-组件-系统)的简写,这是一种基于数据驱动的游戏设计模式。 LayaAir的ECS,将场景中每一个有着唯一ID的显示对象节点都被看做一个个的实体。每一个实体...

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

219. 提示资源重复加载 [ 46%]

...e,"swimpoolani"); this.swimpoolani.interval = 500;         }     onEnable(): void { }  onDisable(): void { } }       esources already exist,is repeated loading: D:/reserch/H5/Petfriend/code/Petfriend%20v1.01/Petfriend/bin/Comp/yard_mailbox.png laya.core.js:23676 Resources already exist...

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

220. 类似古文显示方式脚本,文字垂直显示,可以控制显示速度出现打字效果等 [ 46%]

...sprite); this.drawText(sprite.x, sprite.y, sprite.width, sprite.height); } onEnable(): void { } onDisable(): void { } } export enum layoutType { /**竖排 */ verticalRight = 0, } 2019-11-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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