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

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

491. laya.d3.math.Vector3 [ 54%]

...ctor3, o:Vector3):void[static] 求两个三维向量的差。 Vector3  toDefault():voidVector3  transformCoordinate(coordinate:Vector3, transform:Matrix4x4, result:Vector3):void[static] 通过矩阵转换一个三维向量到另外一个归一化的三维向量。 Vector3  TransformNormal(norm...

来源: laya_api 发布时间: 20170929

492. http 请求 once 的 回调参数,如何传递和接收? [ 54%]

...执行域。   listener:Function — 事件侦听函数。   args:Array (default = null) — (可选)事件侦听函数的回调参数。ReturnsEventDispatcher — 此 EventDispatcher 对象。 请求发送: var hr = new HttpRequest(); hr.once(Event.COMPLETE, this, http.success,[1,2,3]); hr....

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

493. chrome里运行游戏 游戏声音听不见 [ 54%]

...中输入chrome://flags/#autoplay-policy 然后在高亮的选项中,将Default 换成No user gesture is required   操作步骤参照截图       2018-05-15 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 ...

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

494. 性能测试-卡通人物2 [ 54%]

...) { nameLabel = new Text(); nameLabel.color = "#FFFFFF"; nameLabel.text = "Default"; nameLabel.fontSize = 13; nameLabel.width = Character.WIDTH; nameLabel.align = "center"; this.addChild(nameLabel); } Character.prototype.setSpeed = function(value) { this.speed = value; } Character.prototype.setName ...

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

495. 使用 addChild 加载界面后,绑定事件报错 [ 54%]

...rt); 加载场景后报上面图片的错误 GameStart 类如下: export default class GameStart extends ui.GameStartUI {     constructor() {         super();          this.btnStart.on(Laya.Event.CLICK, this, this.startGame);     }      startGame(): void {      ...

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

496. 两个移动的简单物体 onTriggerEnter 无法触发 (有悬赏) [ 54%]

...个物体移动时候重合但是无法触发onTriggerEnter,   export default class BulletControlTrigger extends Laya.Script3D { constructor(){ super(); }  /** * 开始触发时执行 * 此方法为虚方法,使用时重写覆盖即可 */ onTriggerEnter(other){ console.log("onTriggerEnter"); }...

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

497. laya.utils.Byte [ 53%]

...n Byte(data:* = null) 创建一个 Byte 类的实例。 Parameters data:* (default = null) — 用于指定初始化的元素数目,或者用于初始化的TypedArray对象、ArrayBuffer对象。如果为 null ,则预分配一定的内存空间,当可用空间不足时,优先使用这部分...

来源: laya_api 发布时间: 20170929

498. 播放视频只有声音没有图像 [ 53%]

...又看见video这个元素有 let SoundManager = Laya.SoundManager; export default class LoginGame extends Laya.Scene { constructor() { super(); LoginGame.instance = this; Laya.MouseManager.multiTouchEnabled = false; this.loadScene("LoginGame.scene"); } onEnable() { SoundManager.playMusic("audio/梅...

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

499. animation动画的使用:已经正常加载动画,控制台提示动画not found [ 53%]

...: 2018-03-28 10:41 浏览: 627 关注: 2 人 yyqx1122 • 2018-03-28 15:03 default.ani是先显示的,报not found可以理解,但是attack.ani是在游戏都开始之后才使用的,也会有这个提示信息,是不是你们后台的提示信息有误啊? qian • 2018-03-28 15:05 你是...

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

500. Laya.sprite.on 绑定事件传参数的问题 [ 53%]

...行域。   listener:Function — 事件侦听函数。   args:Array (default = null) — 事件侦听函数的回调参数。 ReturnsEventDispatcher — 此 EventDispatcher 对象。  -----------------------------------------------分割线 ----------------------------------------------- h...

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