大约有 1,054 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0070 秒)
Laya_社区(615) Laya_示例(157) Laya2.0_文档(149) Laya2.0_示例(116) laya_api(7) Laya3.0_文档(5) Laya3.0_api(3) Laya2.0_api(2)
...yaScene_gamescene/Conventional/chest01.lh", Laya.Handler.create(this, function(sp:Laya.Sprite3D):void { console.log("111111111111111111111") var target: Laya.Sprite3D = scene3d.addChild(sp) as Laya.Sprite3D; camera.convertScreenCoordToOrthographicCoord(pos, translate); target.transfor...
来源: Laya_社区 发布时间: 20191206
...-01-22 23:37 Laya.loader.load( 'res/atlas/comp.json', Handler.create(this, function(){ container = new Laya.Sprite(); var x = 0,y =80; Laya.stage.addChild(container); for(var i=0;i<1200;i++){ var role = new Laya.Sprite(); x = x+0.1; y = y+0.1 role.x = x; role.y = y; role.loadImage('comp/bg.png');...
来源: Laya_社区 发布时间: 20180122
...0; private var hitArea:HitArea; private var interactionArea:Sprite; public function Sprite_Guide() { Laya.init(1285, 727); Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = Stage.ALIGN_MIDDLE; //绘制一个蓝色方块,不被抠图 var gameContainer:Sprite = new Sprite(); gameContainer....
来源: Laya2.0_示例 发布时间: 20260819
让 CylinderMesh 支持椎体 function CylinderMesh(radius,radius2,height,slices){创建出下面半径大小 修改第二个循环结构, 也就是柱状顶点绘制 __proto.recreateResource=function(){ this._numberVertices=(this._slices+1+1)+(this._slices+1)*2+(this._slices+1+1); this._numb...
来源: Laya_社区 发布时间: 20180113
...at Module.load (node:internal/modules/cjs/loader:981:32) npm ERR! at Function.Module._load (node:internal/modules/cjs/loader:822:12) npm ERR! at Module.require (node:internal/modules/cjs/loader:1005:19) npm ERR! at require (node:internal/modules/cjs/helpers:102:18) 请问有人...
来源: Laya_社区 发布时间: 20220406
.../ public class loading100 extends Box { public function loading100() { var txt:Text = new Text(); //设置文本内容 txt.text = "Hello Layabox2"; //设置文本颜色为白...
来源: Laya_社区 发布时间: 20170725
...件怎么生成的? STATICATTR$(TestPageUI, ['uiView',function(){return this.uiView={"type":"View","child":[{"props":{"x":0,"y":0,"skin":"comp/bg.png","sizeGrid":"30,4,4,4","width":600,"height":400},"type":"Image"},{"props":{"x":41,"y":56,"skin":"comp/button.png","label":"点我...
来源: Laya_社区 发布时间: 20170330
...始化顶层游戏类 */ // laya.utils.Stat.show(0,0); // window.onerror = function(message,url,line){ // alert("执行" + url + "文件中的第" + line + "行代码出错,错误信息:" + message); // }; // Game.inst.start(); setInterval( this.addball.bind( this ),500); } public addball(){ for...
来源: Laya_社区 发布时间: 20180226
...t laya.utils.Utils; /** * ... * @author */ public class DOM_Video { public function DOM_Video() { Laya.init(800, 600); Laya.stage.bgColor = "#FFFFFF"; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = Stage.ALIGN_MIDDLE; // 创建Video元素 var videoElement:Object = Browser.createElement(...
来源: Laya2.0_示例 发布时间: 20260819
...用,强行在Main.js里面写入 btn1.on(Event.CLICK, this, onBtnClick); function onBtnClick() { alert('222'); } btn1 is not defined 按教程写脚本,实在找不到地方写,请问有没有类似教程呢。 问题3)我在Scenes 新建了2个view,一个是v1一个是v2。其中v1里面...
来源: Laya_社区 发布时间: 20181027