大约有 657 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0066 秒)
Laya_社区(335) Laya3.0_api(62) Laya2.0_api(58) laya_api(53) Laya2.0_文档(51) Laya2.0_示例(44) Laya_示例(39) Laya3.0_文档(15)
...Armature(0); this.sk.x = 400; this.sk.y = 700; this.sk.play(0, true); Laya.stage.addChild(this.sk); } Demo如下: 附件 : --> skTest.zip 2019-03-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 10 个回复 Lee3260 赞同...
来源: Laya_社区 发布时间: 20190320
...例改自官方边缘光照(Shader_GlowingEdge)示例 ```typescript Laya.stage.on(Event.MOUSE_DOWN,this,function(){ let arr; for(let i = 0;i 生成的相关数据 ```typescript { "GlowingEdgeMaterial":[ { "defineNames":["DIRECTIONLIGHT"], "passIndex":0, "subShaderIndex":0 }, { "defineNames":["DIRECT...
来源: Laya2.0_文档 发布时间: 20210714
...t.body.appendChild(this.mapDiv); // 适应窗口尺寸 this.refit(); Laya.stage.on(Laya.Event.RESIZE, this, this.refit); // 初始化地图 this.map = new this.BMap.Map(this.mapDiv); // 禁用部分交互 //this.map.disableDragging(); this.map.disableKeyboard(); this.map.disableScrollWheelZoom();...
来源: Laya2.0_文档 发布时间: 20210714
...nt.body.appendChild(this.mapDiv); // 适应窗口尺寸 this.refit(); Laya.stage.on(Laya.Event.RESIZE, this, this.refit); // 初始化地图 this.map = new this.BMap.Map(this.mapDiv); // 禁用部分交互 //this.map.disableDragging(); this.map.disableKeyboard(); this.map.disableScrollWheelZoom(); t...
来源: Laya3.0_文档 发布时间: 20240910
....x; this._rayViewport.y = this.viewport.y; this._rayViewport.width = ILaya.stage._width; this._rayViewport.height = ILaya.stage._height; Picker.calculateCursorRay(point, this._rayViewport, this._projectionMatrix, this.viewMatrix, null, out); } 参照3D-RPG项目,我们加上一段代码,当鼠...
来源: Laya3.0_文档 发布时间: 20240910
... Button_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/button.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():void { trace("资源加载完成...
来源: Laya3.0_api 发布时间: 20231115
...者需要自己去加载分包和资源 ``` onConfigLoaded(): void { Laya.stage.on(Laya.Event.CLICK, this, this.toPage2) } toPage2(): void { my.redirectTo({ url: "/subpackage1/page2/index", success: function () { console.log("success") }, fail: function (err) { console.log("2222", err) } }) } ``` ...
来源: Laya2.0_文档 发布时间: 20210715
...例改自官方边缘光照(Shader_GlowingEdge)示例 ```typescript Laya.stage.on(Event.MOUSE_DOWN,this,function():void{ let arr; for(let i = 0;i 生成的相关数据 ```typescript { "GlowingEdgeMaterial":[ { "defineNames":["DIRECTIONLIGHT"], "passIndex":0, "subShaderIndex":0 }, { "defineNames":["D...
来源: Laya2.0_文档 发布时间: 20210714
...例改自官方边缘光照(Shader_GlowingEdge)示例 ```typescript Laya.stage.on(Event.MOUSE_DOWN,this,function():void{ var arr:Array; for(var i:int = 0;i 生成的相关数据 ```typescript { "GlowingEdgeMaterial":[ { "defineNames":["DIRECTIONLIGHT"], "passIndex":0, "subShaderIndex":0 }, { "define...
来源: Laya2.0_文档 发布时间: 20210715
...发起获得最短路径的调用: //设置鼠标弹起事件响应 Laya.stage.on(Event.MOUSE_UP, this, function (): void { //起始和目标点 var start = this.graph.grid[this.startPoint.x][this.startPoint.y]; var end = this.graph.grid[this.endPoint.x][this.endPoint.y]; //调用A* serach方法...
来源: Laya3.0_文档 发布时间: 20230303