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

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

1511. Laya.SoundManager.playSound函数参数意义 [ 56%]

...dClass:Class (default = null) — 声音播放起始时间。 startTime:Number (default = 0)   这个startTime指的是从现在起延迟的秒数、毫秒数还是播放的时间戳? 2017-02-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

1512. 扩展脚本添加属性,编辑器中如何同步显示? [ 56%]

...何同步显示? 1. 新加一个扩展脚本 2.增加属性set cusX(val:Number) 3.编辑器中的对象的位置怎么才能同步改变? 2018-04-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Apple 赞同...

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

1513. Button自定义属性 [ 56%]

...浏览: 1048 关注: 2 人 Nevermore • 2018-10-25 11:09 比如 for(let i:number = 0; i < len; ++i){ let btn:Laya.Button = this.main.getchildbuy(i); btn.on(Laya.Event.CLICK,this.this.clickHandle); btn.xx = "xxx"; } private clickHandle(e:Laya.Event):void{ } 类似于我想给btn绑定...

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

1514. 报无法找到资源,未升级ide之前不报错 [ 56%]

...正确,就是报找不到 private createAniTemplate(name: string, len: number = 8): void {     let aniFrames: Array<string> = [];     for (let i: number = 0; i < len; i++) {         aniFrames.push("resources/UI/role/atlasAni2/139x/" + name + i + ".png");     }     Laya.Animati...

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

1515. 陀螺仪与加速计 · LayaAir3.4 · 引擎文档 · LAYABOX [ 55%]

...Gravity: Laya.AccelerationInfo, rotationRate: Laya.RotationInfo, interval: number): void { this.info.text = 'acceleration:(' + acceleration.x.toFixed(3) + ', ' + acceleration.y.toFixed(3) + ', ' + acceleration.z.toFixed(3) + ')\n' + 'accelerationIncludingGravity:(' + accelerationIncludingGravity.x.t...

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

1516. 输入框为什么字会偏上 [ 55%]

...程中。边做监听。需要怎么做吗? 把textInput的type设置为number的时候无法设置最多能输入的字数 android 新版打包要求输入js或者json,而不是html路径 我应该如何处理 TextInput在手机上文字输入位置不对 layaair输入法瞬间错误显示问...

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

1517. laya.components.Animation2DParm_API3.0 [ 55%]

...ype Defined in laya/components/Animation2DParm.ts:5 value value: boolean | number Defined in laya/components/Animation2DParm.ts:6 Globals "laya/components/Animation2DParm" Animation2DParm name type value Legend Object literal Variable Function Type alias Class Class with type parameter Property Enum...

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

1518. 陀螺仪与加速计(TypeScript-LayaAir基础篇(TS)-硬件设备相关) [ 55%]

...Gravity: Laya.AccelerationInfo, rotationRate: Laya.RotationInfo, interval: number): void { this.info.text = 'acceleration:(' + acceleration.x.toFixed(3) + ', ' + acceleration.y.toFixed(3) + ', ' + acceleration.z.toFixed(3) + ')\n' + 'accelerationIncludingGravity:(' + accelerationIncludingGravity.x.t...

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

1519. 高级应用-寻路导航 [ 55%]

...ivate _quaternion: Laya.Quaternion = new Laya.Quaternion(); private index: number = 0; private curPathIndex: number = 0; private nextPathIndex: number = 1; private moveSprite3D: Laya.Sprite3D; private pointCount: number = 10; private scene: Laya.Scene; constructor() { Laya3D.init(0, 0, true); Laya.s...

来源: Laya_示例 发布时间: 20260303

1520. SkyBoxMaterial材质详解(TypeScript-3D基础(TS)-天空材质详解) [ 55%]

...主要属性和方法 > 属性 `tintColor:Vector4` 颜色。 `exposure:Number` 曝光强度。 `textureCube:TextureCube` 天空盒纹理。 #### 创建和使用材质 下面的代码来自于官方示例([demo地址](https://layaair.ldc.layabox.com/demo2/?language=ch&category=3d&group=Sky&name...

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