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

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

1701. CommandBuffer使用文档(TypeScript-3D基础(TS)-LayaAir3D之高级应用) [ 78%]

...后 ``` 添加CommandBuffer到相机事件的接口如下: ```typescript this.camera.addCommandBuffer(this.cameraEventFlag,this.commandBuffer); ``` 删除CommandBuffer的接口如下: ```typescript this.camera.removeCommandBuffer(this.cameraEventFlag,this.commandBuffer); ``` CommandBuffer是一...

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

1702. 在浏览器里打开游戏退出时游戏会执行什么? [ 78%]

在浏览器里打开游戏退出时游戏会执行什么? this.on(Laya.Event.REMOVED,this,this.releaseUp); 我之前执行过这个方法。。但是这个方法必须是当前界面销毁或者移除的时候才执行。。如果在浏览器里,我点关闭或者手机上点返回。。那这...

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

1703. out.writeShort is not a function [ 78%]

...序报错window.focus is not a function 调用动画结束on方法,报错this.zombieAnimator.on is not a function laya加载unity插件导出的场景 physics3D is not a function 用微信开发者调试的时候出现document.createTextNode is not a function api readFile success callback function...

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

1704. mac下用FB打包发布测试页面,chrome浏览器看不到预期显示文字 [ 78%]

...境有问题?   /LayaAirTest/src/LayaAirTest.as (8):warning:Laya.init This variable is not defined. /LayaAirTest/src/LayaAirTest.as (9):warning:Laya.timer.currTimer This variable is not defined. /LayaAirTest/src/LayaAirTest.as (20):warning:Laya.stage.bgColor This variable is not defined. /LayaAir...

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

1705. Matter.js创建好的刚体怎么改变位置? [ 78%]

...变他的位置,刚体就乱跑,我改变了他的位置这样写的 this.realBall.position= { x: this.initX, y: this.initY }; 能改变是能改变,按道理他应该他回到initXY位置后,然后继续落下啊。 为什么会乱跑?而且值越来越大,直到卡死。 附件 : --> P...

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

1706. 使用Pool的时候创建的对象怎么传递参数 [ 78%]

...用Pool的时候创建的对象怎么传递参数 我之前是这样写的this.movingBlock = new MovingBlock(this.direction, movingBlockY), 但是这样每次都是new对象,太耗性能了,所以我用了这个,但是不知道怎么传递参数: this.movingBlock = Laya.Pool.getItemByClass...

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

1707. PBRStandardMaterial材质详解(ActionScript-3D基础(AS3)-模型材质详解) [ 78%]

...R Barrel/Materials/Textures/Barrel_AlbedoTransparency.png', Handler.create(this, function(texture:Texture2D):void { mat.albedoTexture = texture; })); //法线贴图 Texture2D.load('res/threeDimen/scene/PBRMaterialScene/Assets/PBR Barrel/Materials/Textures/Barrel_Normal.png', Handler.create(this, fun...

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

1708. 排坑:Laya.HttpRequest()无效 [ 78%]

... xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE, this, completeHandler); xhr.once(Event.ERROR, this, errorHandler); xhr.on(Event.PROGRESS, this, processHandler); xhr.send("http://www.baidu.com", "", "get", "text"); function processHandler(data) { console.log(data); } functi...

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

1709. 加载成功要怎样判断呢? [ 78%]

...a.loader.load(url, onLoaded, ...) 还是Laya.loader.on(Event.COMPLETE, this, onLoaded); 加载失败都会到onLoaded,那怎么区分是不是加载成功? 2017-03-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 ...

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

1710. Sprite-显示图片 [ 78%]

...drawTexture Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, function() { var t = Laya.loader.getRes("../../res/apes/monkey2.png"); var ape = new Sprite(); ape.graphics.drawTexture(t, 0, 0); Laya.stage.addChild(ape); ape.pos(200, 0); })); } })();module laya { import Sprite = Laya....

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