大约有 3,517 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0081 秒)
Laya_社区(2610) Laya3.0_api(265) Laya2.0_文档(227) Laya2.0_api(113) laya_api(98) Laya_示例(83) Laya3.0_文档(76) Laya2.0_示例(45)
...){ 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
...}/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
...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
...关,按键松开时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
...数据时 控制台写出 报错如下: 连接出错 Event {isTrusted: true, type: "error", target: WebSocket, currentTarget: WebSocket, eventPhase: 2…} 关闭事件 CloseEvent {wasClean: false, code: 1006, reason: "", type: "close", target: WebSocket…} //--------------------------------------...
来源: Laya_社区 发布时间: 20180211
... if (ani){ ani.play(0,true,"standDown"+HostData.array[index].aniname);//控制播放相应角色的动画 } var own :Text = cell.getChildByName("owntext") as Text;//同步是否已经拥有...
来源: Laya_社区 发布时间: 20180503
... { 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
...同来自: 你代码中不是设置了自动换行么?style.wordwrap = true 2017-11-17 0 0 分享 微博 QZONE 微信 swp_laya 赞同来自: 自动换行不应该是一行的末尾会自动换行么? 上图是名字后面就换了 我这是一条文本 2017-11-20 0 4 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20171116
...种开发语言、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
...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