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

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

951. 二进制图片(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 67%]

...ar sp = new Laya.Sprite(); var xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE,this,this.completeHandler); xhr.once(Laya.Event.ERROR,this,this.errorHandler); xhr.send("res/a.png","","get","arraybuffer"); } private completeHandler(data:Object):void{ //加载完成返回的data是arraybuffe...

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

952. 为什么mc取得的时候有时候mc.getBounds().width;有值有时候是0 [ 67%]

...什么mc取得的时候有时候mc.getBounds().width;有值有时候是0 Event.LOADED事件后输出宽度有时候还是0有时候却有值。这个是为什么呢?已经是在loaded事件以后的输出了。 附件 : --> 2016-12-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

953. timeline 类动作节点回调 [ 67%]

...leX:1, scaleY:1, alpha:1},2000,null,0); timeLine.play(0,true); timeLine.on(Event.COMPLETE,this,this.onComplete); timeLine.on(Event.LABEL, this, this.onLabel); } function onComplete() { console.log("timeLine complete!!!!"); } function onLabel(label) { console.log("LabelName:" + label); }少年 没仔...

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

954. 请问2.0中js怎么加天空盒子或穹顶,官网例子运行报错。 [ 67%]

...14313) at Loader.Laya3D._onTextureCubeLtcLoaded (libs/laya.d3.js:14656) at EventHandler.__proto.runWith (libs/laya.core.js:1400) at Loader.__proto.event (libs/laya.core.js:1156) at Loader.__proto.complete (libs/laya.core.js:16348) at Loader.__proto.onLoaded (libs/laya.core.js:16316) at EventHandler....

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

955. laya.ui.Label [ 67%]

... All Classes | Index | Frames No Frames LabelProperties | Methods | Events Packagelaya.uiClasspublic class LabelInheritanceLabel UIComponent Sprite Node EventDispatcher ObjectSubclasses TextInput Label 类用于创建显示对象以显示文本。 See alsolaya.display.TextPublic Properties H...

来源: Laya2.0_api 发布时间: 20190513

956. LayaNative中偶尔会出现所有HTTP POST方式交互均无回应的问题 [ 67%]

...么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 S_eVent 相关问题 laya针对页游耗用内存大的问题是如何解决的? unity导出粒子文件问题 请问LayaAir中如何使图片以圆形的方式显示? LayaAir3D UnityPlugin 使用须知-版本更新-问题...

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

957. laya.d3.core.MeshSprite3D [ 67%]

...lasses | Index | Frames No Frames MeshSprite3DProperties | Methods | Events | Constants Packagelaya.d3.coreClasspublic class MeshSprite3DInheritanceMeshSprite3D RenderableSprite3D Sprite3D ComponentNode Node EventDispatcher ObjectSubclasses MeshTerrainSprite3D, WaterSprite MeshSprite3D 类...

来源: laya_api 发布时间: 20170929

958. laya.d3.core.material.ExtendTerrainMaterial_API3.0 [ 67%]

...tCreateURL _setGPUMemory addDefine clone cloneTo destroy effectiveProperty event getBool getBoolByIndex getBuffer getBufferByIndex getColor getColorByIndex getFloat getFloatByIndex getInt getIntByIndex getMatrix4x4 getMatrix4x4ByIndex getShaderData getShaderDataByIndex getShaderPropertyValue getText...

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

959. 如何获取实时更新的动态数据,数据在文本中 [ 67%]

....create(this,this.Onloaded),null,Laya.Loader.TEXT,0,true,null,true);*/ let event1=Laya.loader.load("eyeimf.txt", Laya.Handler.create(this, this.Onloaded), null, Laya.Loader.TEXT,0,true,null,true); //console.log(Laya.Loader.loadedMap); } 另外就是加载的时候,不缓存资源,就不能读取...

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

960. laya.device.motion.Gyroscope [ 67%]

... Packagelaya.device.motionClasspublic class GyroscopeInheritanceGyroscope EventDispatcher Object 使用Gyroscope.instance获取唯一的Gyroscope引用,请勿调用构造函数。 listen()的回调处理器接受两个参数: function onOrientationChange(absolute:Boolean, info:RotationInfo):voi...

来源: Laya2.0_api 发布时间: 20190513