大约有 353 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0046 秒)
...Scene_layabox/Library/unity default resources-Quad.lm",Laya.Handler.create(this,this.onCreateComplete)); Laya.loader.create("LayaScene_layabox/Library/unity default resources-Capsule.lm",Laya.Handler.create(this,this.onCreateComplete)); private onCreateComplete():void { var mesh:Laya.Mesh = Laya.loa...
来源: Laya_社区 发布时间: 20180719
...+"image/loading.jpg", ]; Laya.loader.load(_silentLoadArray, Handler.create(this, gameStart)); var gameStart = function(){ var loading = new LoadingPage();(loading页面) //加载完成 进入主界面 loading.onComplete = loadHome; //开始加载 loading.start(ma...
来源: Laya_社区 发布时间: 20170912
...1.0]怎么给动态添加的组件 添加附加脚本 我在代码中用 this.image = new Laya.Image(); 添加的图片组件,怎么给this.image添加附加脚本, 官网的文档上只是介绍了在UI界面把脚本文件直接拖动到组件上,但是用代码动态添加的组件就...
来源: Laya_社区 发布时间: 20181023
...制100x100个sprite ios不能显示 /* 游戏地图 */ function GameMap(){ this.MapRowNum = 100; this.MapColNum = 100; GameMap.super(this); this.init(); } Laya.class(GameMap, "GameMap", laya.display.Sprite); var _proto = GameMap.prototype; _proto.init = function(){ var boxSp = new laya.display.Sprit...
来源: Laya_社区 发布时间: 20161008
...序报错window.focus is not a function 调用动画结束on方法,报错this.zombieAnimator.on is not a function laya加载unity插件导出的场景 physics3D is not a function 鼠标自定义样式官方有支持吗,Laya.Mouse.hide()会报Uncaught TypeError: Cannot read property 'cursor' of u...
来源: Laya_社区 发布时间: 20180117
...地方,转换成全局坐标 var p: Laya.Point = this.localToGlobal(new Laya.Point()); mat.translate(p.x, p.y); var stage: Laya.Stage = Laya.stage; mat.scale(stage._canvasTransform.getScaleX() * this....
来源: Laya_社区 发布时间: 20190822
... Laya.stage.addChild(rect); //增加鼠标事件 rect.on(Event.MOUSE_DOWN, this, mouseHandler); rect.on(Event.MOUSE_UP, this, mouseHandler); rect.on(Event.CLICK, this, mouseHandler); rect.on(Event.RIGHT_MOUSE_DOWN, this, mouseHandler); rect.on(Event.RIGHT_MOUSE_UP, this, mouseHandler); rect.on(Event...
来源: Laya_社区 发布时间: 20180205
...全是不正确的 let vectory = new Laya.Vector3(-Math.cos(this.angle) * this.v,0,0); // this.rigidbody.applyForce(vectory); this.rigidbody.linearVelocity = vectory; console.log("施加的线速度:"); console.log...
来源: Laya_社区 发布时间: 20200330
...所需资源 Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, this.onLoaded)); } private onLoaded(): void { //实例化Panel组件 var panel: Laya.Panel = new Laya.Panel(); //给panel添加背景色 panel.graphics.drawRect(0, 0, 100, 100, "#ffcccc"); //给panel设置宽高 panel.si...
来源: Laya2.0_文档 发布时间: 20210715
... 1.7.19.1beta。 新建的UI F12导出后,自动生成的代码是通过this.CreateView(XXX.uiView)生成相应变量,附加脚本能正常触发owner。 但如果通过把某个UI里的一部分拿出来生成一个.ui文件,再导出的话,自动生成的代码是通过laya.utils.ClassUtil...
来源: Laya_社区 发布时间: 20180607