大约有 4,102 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0079 秒)
Laya_社区(3323) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(116) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...用frameloop重复执行加载文本资源函数 1 Laya.stage.frameLoop(1,this,this.Repeat,null,true); 这是加载资源的函数内的代码 1 2 3 4 5 6 7 8 loadPosition():void{ /* let resArray:Array<any>=[ {url:"eyeimf.txt",type:Laya.Loader.TEXT} ] Laya.loader.load(resArray,Laya.Handler.cre...
来源: Laya_社区 发布时间: 20171228
...===================== JQ(aWater).on('click', function () { console.log( JQ(this).index() );//不传 匹配父级元素下的子元素开始算索引 // console.log( JQ(this).index(aWater) );//传数组,从当前数组开始算索引 // console.log( JQ(this).siblings(aWater).remove() );//指定数...
来源: Laya_社区 发布时间: 20171123
...ass click3d extends Laya.Script3D{ constructor() { super(); //创建场景 this.scene = Laya.stage.addChild(new Laya.Scene3D()); //添加相机 this.camera = (this.scene.addChild(new Laya.Camera(0, 0.1, 100))); this.camera.transform.translate(new Laya.Vector3(0, 0.7, 5)); this.camera.transform.rotat...
来源: Laya_社区 发布时间: 20200801
...ight: canvas.height, destWidth: canvas.width, destHeight: canvas.height }) this.ctx.graphics.loadImage(wxhtmlC, 0, 0,this.ctx.width,this.ctx.height); 然后用drawTextture,很多问题都是有这个,可以带到下面那些东西怎么转成图片呢? var htmlC = Laya.stage.drawToTexture(Laya...
来源: Laya_社区 发布时间: 20191124
...代码: onCollisionEnter(other){ if(other.other.owner.name==="end"){ // this.owner.parent.removeSelf(); //删除自身场景 console.log(this.owner.parent) console.log(this.owner.parent.parent); //创建胜利的UI界面 let victoryScene=new VictoryScene(); Laya.stage.addChild(victoryScene); th...
来源: Laya_社区 发布时间: 20190903
...和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.radiogroup.pos(100, 100); this.radiogroup.labels = "label0,label1,label2"; this.radiogroup.space = 20; this.radiogroup.selectedIndex = 0; this.radiogroup.direction = "vertical"; } } 二、创建自定义的RadioGroup组件...
来源: Laya3.0_文档 发布时间: 20251016
...ng", "../../res/ui/input (4).png"]; Laya.loader.load(skins, Handler.create(this, onLoadComplete)); //加载资源。 })(); function onLoadComplete() { for (var i = 0; i ; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Lay...
来源: Laya_示例 发布时间: 20251219
...请教请教! 我添加了方向光: //添加方向光 this.m_light = this.m_scene3D.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; this.m_light.color = new Laya.Vector3(0.8, 0.8, 0.8); this.m_light.transform.worldMatrix.setF...
来源: Laya_社区 发布时间: 20200323
...on", type: Laya.Loader.ATLAS }]; Laya.loader.load(arr, Laya.Handler.create(this, this.onProgress)); } onProgress() { this.Progress = new Progress(); Laya.stage.addChild(this.Progress); //加载资源进度并且监听 Laya.loader.load(this.arr, Laya.Handler.create(this, this.onAssetsLoaded), Laya.Ha...
来源: Laya_社区 发布时间: 20171217
...et连接不上(已解决) socket = new Socket(); socket.on(Event.OPEN, this, onSocketOpen); socket.connect("127.0.0.1", 8080); 照着官方例子,服务器显示连接上了,但onSocketOpen没调用到,而且socket的connected为false。 能帮忙看是什么原因么? 具体代码:...
来源: Laya_社区 发布时间: 20170209