大约有 1,258 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0091 秒)
Laya_社区(854) Laya2.0_文档(116) Laya3.0_api(79) Laya2.0_api(73) laya_api(68) Laya3.0_文档(54) Laya2.0_示例(8) Laya_示例(6)
... this.img = new Laya.Sprite(); //添加到舞台 Laya.stage.addChild(this.img); //显示初始化绘制的图片 this.switchImg(); //侦听switchImg中图片区域的点击事件,触发后执行switchImg切换纹理绘制 this.img.on("click",this,this.switchImg);...
来源: Laya_社区 发布时间: 20180226
...wport visible width x y zOrder Methods _initialize _processActive _setSkin addChild addChildAt addChildren addComponent addComponentInstance backToNormal bubbleEvent callLater clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnc...
来源: Laya3.0_api 发布时间: 20231115
...也可以继续在laya中对camera进行操作: var scene = Laya.stage.addChild(Laya.Scene.load("res/layaScene.ls")); scene.once(Laya.Event.HIERARCHY_LOADED, this, function (sceneTemp) { var camera = sceneTemp.getChildByName("Main Camera"); camera.transform.translate(new Laya.Vector3(0, 0, 200)); ...
来源: Laya_社区 发布时间: 20170828
...to-generated method stub var bitmap:Bitmap=event.target.content as Bitmap; addChild(bitmap); l.contentLoaderInfo.removeEventListener(Event.COMPLETE,onImage2Loaded); l=null; } } }as下输出true js下输出false 2015-12-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果...
来源: Laya_社区 发布时间: 20151228
...ake(): void { let video = new Laya.VideoNode; //添加到舞台 Laya.stage.addChild(video); video.pos(200,200); //设置位置 video.source = "resources/layaAir.mp4"; //设置视频源文件 video.play(); //开始播放 } } Copyright ©Layabox 2026 all right reserved,powered by LayaAir Engine更...
来源: Laya3.0_文档 发布时间: 20251010
...aya.stage.bgColor = '#23238E'; //将文本内容添加到舞台 Laya.stage.addChild(txt); } } } 2. 修改.as3proj文件相应标签如下 <compileTargets> <compile path="src\HelloWorld.as" /> </compileTargets> 3. 运行后依然编译执行默认生成的LayaSamples.as 2018-09-14...
来源: Laya_社区 发布时间: 20180914
...= LayaScene.load("res/scene/Arena/Arena.ls"); Laya.stage.addChild(scene); // Log.Info("Procedure::setup"); // this.InitGameManager(); } 2017-08-03 0 0 分享 微博 QZONE 微信 oayx 赞同来自: 创建的是空项目 2017-08-03 0 0 ...
来源: Laya_社区 发布时间: 20170802
....emoji = this.skeleton.getAniNameByIndex(0); } this.play(this.emoji); this.addChild(this.skeleton); this.show(); if (this.completeHandler) { this.completeHandler.runWith(this); } } //改变表情 public changeEmoji(emoji:string):void{ if (emoji) { this.emoji=emoji; } if (!this.emojiArr || !this.emoj...
来源: Laya_社区 发布时间: 20180824
...,绘制到画布 this.img.skin = this.Res //添加到舞台 Laya.stage.addChild(this.img); } private cacheCanvas: Laya.HTMLCanvas private cacheTexture: Laya.Texture init(){ let rect = this.img.getSelfBounds() this.img.pivot(Math.round(rect.width / 2), Math.round(rect.height / 2)) let bound = this....
来源: Laya_社区 发布时间: 20171211
...wport visible width x y zOrder Methods _initialize _processActive _setSkin addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce freshLayout...
来源: Laya3.0_api 发布时间: 20231115