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

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

81. 面板容器组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 65%]

...Panel: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Panel }) public panel: Laya.Panel; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.panel.pos(100,...

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

82. 垂直布局容器组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 65%]

...如下: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.VBox }) public vbox: Laya.VBox; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.vbox.pos(100, 10...

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

83. 水平布局容器组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 65%]

...如下: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.HBox }) public hbox: Laya.HBox; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.hbox.pos(100, 10...

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

84. 动画节点 · LayaAir3.4 · 引擎文档 · LAYABOX [ 65%]

...gClass, property } = Laya; @regClass() export class Animation extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Animation }) //在IDE面板中显示属性 ani: Laya.Animation; constructor() { super(); } //组件被激活后执行,此时所有节点和组件均已创建...

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

85. (实现手指控制模型的缩放旋转)触控可以识别 但是导入的模型没有根据触控反应 [ 65%]

...精灵添加组件(脚本)         monkey.addComponent(MonkeyScript);         scene.addChild(monkey);         //设置相机的观察目标为小猴子         camera.transform.lookAt(monkey.transform.position, new Laya.Vector3(0, 1, 0));         this.text...

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

86. 小游戏开发版只能调试模式打开,关闭调试模式无法正常请求 [ 64%]

...常运行,为什么打包APK之后在手机上就连接不上socket TypeScript下HttpRequest发送Post请求有Bug? iphoneX环境下新手引导的抠图透明区域为黑色,其它机型都是正常的。 本地调试加载本地图片都报错 list 每次滑动,都是可以滑动一点点,...

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

87. vivo小游戏 · LayaAir3.4 · 引擎文档 · LAYABOX [ 64%]

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

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

88. 单选框组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 64%]

...Radio: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Radio }) public radio: Laya.Radio; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.radio.skin = "...

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

89. 打成ios包,运行时显示的测试扫码界面 [ 64%]

...rrent num=10 2020-04-22 18:21:18.585036+0800 layabox[3608:626634] Start js scripts/apploader.js 2020-04-22 18:21:18.604883+0800 layabox[3608:626634] OpenGL ES version [OpenGL ES 2.0 IMGSGX543-129] 2020-04-22 18:21:18.630165+0800 layabox[3608:626785] js thread started. 2020-04-22 18:21:18.665790+0800...

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

90. laya2.0.2版本某种情况下附加脚本onEnable不执行 [ 64%]

...le不执行 简述一下代码:我给bugView上的Image绑定了一个bugScript, bugScript上 onEnable不触发。  注: 为了重现bug, 所以代码写成这样。  直接在浏览器 运行, 打开开发者模式 ,观察log, 没有bugScript enabled 输出   代码见附件   话...

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