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

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

521. 引擎插件版 game.js require 列表被篡改 [ 70%]

引擎插件版 game.js require 列表被篡改  game.js发布前 if ((typeof swan !== 'undefined') && (typeof swanGlobal !== 'undefined')) {    require("swan-game-adapter.js");     require("libs/laya.bdmini.js"); } else if (typeof wx!=="undefined") {          require("weap...

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

522. 性能测试-卡通人物2 [ 70%]

...har; let charSkin; for (let i = 0; i = 0; i--) { characters[i].update(); } if (Laya.timer.currFrame % 60 === 0) { text.text = Stat.FPS.toString(); } } } class Character extends Laya.Sprite { constructor(images) { super(); this.speed = 5; this.bloodBar; this.animation; this.nameLabel; this.createAnim...

来源: Laya2.0_示例 发布时间: 20251218

523. 基于Cannon.js的物理系统(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 70%]

...itResult对象的succeeded属性中会存储本次射线检测是否成功 if(out.succeeded) { //获取射线检测到的精灵对象 var selectSprite3D = out.collider.owner; (selectSprite3D.meshRenderer.sharedMaterial as BlinnPhongMaterial).albedoColor = this.colorRed; if(this.oldSelectMesh) if(sel...

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

524. Animation创建和销毁的问题 [ 70%]

...down); } private function onKeydown(event:Event):void { var self:* = this; if(event.keyCode === Keyboard.SPACE) { //移除动画 if(testAnim1) { testAnim1.clear(); testAnim1.removeSelf(); testAnim1 = null; testAnim2.clear(); testAnim2.removeSelf(); testAnim2 = null; Loader.clearRes("res/fish_1/stand...

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

525. 分享:LayaAir实现曲线运动 [ 70%]

...e); } private function onFrame():void { // TODO Auto Generated method stub if (ball.x>540||ball.x<10) { xflag=! xflag; } if (xflag) { ball.x+=v; ball.y=200+d*Math.sin(v*ball.x*Math.PI/180); } else { ball.x-=v; ball.y=200+d*Math.sin(v*ball.x*Math.PI/180); } } } } CurveDemo.rar 2016-04-24 0 0 ...

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

526. Laya.Animator没有动画播放完事件 [ 70%]

...了laya.d3.js,  播放完什么都没做,只调用了script.onStateExit if ((!islooping && elapsedPlaybackTime >=clipDuration)){ playState._finish=true; playState._elapsedTime=clipDuration; playState._normalizedPlayTime=1.0; if (scripts){ for (var i=0,n=scripts.length;i < n;i++) scrip...

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

527. 开放数据域组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 70%]

...ction init() { wx.onMessage((data) => { console.log("onMessage", data); if (data.type === "updateViewPort") { Layout.updateViewPort(data.box); draw(POWERRANK); } else if (data.type === 'close') { Layout.clear(); } /** * keyList: 要获取的 key 列表,这个key就是在KVData中设置的key * ...

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

528. ”Laya.Browser.onIPad“在微信小游戏上不正确 [ 70%]

...iPhone上反而为true。查看了一下laya.wxmini.js中对应的代码:if (model.indexOf("iPhone") != -1) { Laya.Browser.onIPhone = true; Laya.Browser.onIOS = true; Laya.Browser.onIPad = true; Laya.Browser.onAndroid = false; } if (system.indexOf("Android") != -1 || system.indexOf("Adr") != -1) {...

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

529. Button和下面的3D物体重叠,点击button,3D物体会同时响应自己的鼠标脚本 [ 70%]

...回的对象是scene) Laya.stage.on(Laya.Event.CLICK,this,function(e) { if(e.target.name == "scene的名字") { this.isClick = true; //如果点击的是屏幕的空白处,那么让 isClick 为真 } else { this.isClick = false; //如果点击的不是空白处,是屏幕上别的UI,让 isClic...

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

530. soundManger支持的音频格式有哪些? [ 70%]

...一次判断是否为LayaPlayer运行环境的,伪代码如下所示:if(window.conch) { ...加载 "soundConfig-LayaPlayer.json" } else { ...加载 "soundConfig-json" } SoundManager.playSound(soundJson[0].url,1); .... SoundManager.playSound(soundJson[1].url,1); 2018-01-02 0 0 分享 微博 QZONE ...

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