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

大约有 3,517 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0081 秒)

1061. Texture2D.setPixels会导致图片质量变差了,获取原生的pixels没有进行改动。怎么回事呢? [ 67%]

...){ var tex=new Laya.Texture2D(imageSource.width,imageSource.height,1,false,true); tex.wrapModeU=1; tex.wrapModeV=1; tex.loadImageSource(imageSource,true); tex._setCreateURL(url); var tex2=new Laya.Texture(tex); tex2.url=url;   var image:Laya.Image = new Laya.Image(); image.source = tex2; image.name...

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

1062. laya2.0用FlashDevelop调用编译,总是打开bin\h5\index.html [ 67%]

...}/bin/index.html", "runtimeExecutable": "${execPath}", "useBuildInServer": true, "sourceMaps": false, "webRoot": "${workspaceRoot}", "port": 9222, "fixedPort":false, "sourceMapPathOverrides": { "src/*": "${workspaceRoot}/src/*" } }, { "name": "chrome调试", "type": "chrome", "request": "launch", "f...

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

1063. iPhone6 ios 8.3系统 最新的QQ 锁屏再解锁 游戏闪退 [ 67%]

...ng()) Input["inputElement"].target.focus = false; } else { _isVisibility = true; } _this.event(Event.VISIBILITY_CHANGE); });     public static var isStopLoop:Boolean = false; /**@private */ public function _loop():Boolean { if(!isStopLoop) { render(Render.context, 0, 0); } return true; }   2017-1...

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

1064. 求救 Laya2.0下的Particle2D问题 [ 67%]

...关,按键松开时isFrame=false,按下播放尾焰特效后就置为true Laya.loader.load('../bin/testflame.part', Laya.Handler.create(this, (setting) => { let frame = new Laya.Particle2D(setting); let key = keyString; let frameX; let frameY; let play = true; let frameScale; let frameRotatio...

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

1065. socket通讯返回数据 [ 66%]

...数据时 控制台写出 报错如下: 连接出错 Event {isTrusted: true, type: "error", target: WebSocket, currentTarget: WebSocket, eventPhase: 2…} 关闭事件 CloseEvent {wasClean: false, code: 1006, reason: "", type: "close", target: WebSocket…} //--------------------------------------...

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

1066. 列表里的元素可以播放动画吗 [ 66%]

...         if (ani){                  ani.play(0,true,"standDown"+HostData.array[index].aniname);//控制播放相应角色的动画              }              var own :Text = cell.getChildByName("owntext") as Text;//同步是否已经拥有...

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

1067. 动画不显示 [ 66%]

...           {                     this.m_IsMoving = true ;                     //计算方向                     var ang:Number = Math.atan2((ptTo.y - ptStart.y), (ptTo.x - ptStart.x)) * 180 / Math.PI;                     if (ang &l...

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

1068. 为什么HMLDivElement会在这个地方换行? [ 66%]

...同来自: 你代码中不是设置了自动换行么?style.wordwrap =  true 2017-11-17 0 0 分享 微博 QZONE 微信 swp_laya 赞同来自: 自动换行不应该是一行的末尾会自动换行么? 上图是名字后面就换了  我这是一条文本 2017-11-20 0 4 分享 微博 QZONE 微...

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

1069. 射线检测-选取物体 [ 66%]

...种开发语言、LayaAirIDE让项目开发更高效。Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var scene = Laya.stage.addChild(new Laya.Scene()); //初始化照相机 var camera = scene.addChild(new Laya.Camera(0, 0.1, 10...

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

1070. laya3d物体碰撞与触发检测的问题 [ 66%]

...ya.Vector3(0, 3, 3)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = null; //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.transform.worldMatrix.setForward...

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