大约有 1,442 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0052 秒)
Laya_社区(922) Laya2.0_文档(177) Laya_示例(132) Laya2.0_示例(115) Laya3.0_api(61) Laya3.0_文档(33) laya_api(1) Laya2.0_api(1)
...完毕,此方法只执行一次 onAwake(): void { this.fontclp.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.fontclp.size(500, 60); //大小 this.fontclp.pivot(this.fontclp.width/2, this.fontclp.height/2); //轴心点 this.fontclp.skin = "atlas/comp/fontClip_num.png...
来源: Laya3.0_文档 发布时间: 20240910
...0, destHeight: 100, fileType: 'jpg', quality: 1.0 }); var canvas = Laya.stage.drawToCanvas(Laya.stage.width, Laya.stage.height, 0, 0).getCanvas(); 这是第二种写法。翻了几次论坛据说已经用不了。而且drawToCanvas返回的HtmlCanvas 也没getCanvas()方法。 那么现在的2...
来源: Laya_社区 发布时间: 20191010
...this._firstSprite= new Laya.Sprite(); this._firstSprite.pos(100,150); Laya.stage.addChild(this._firstSprite); this._firstSprite.loadImage('../laya/assets/image/0.jpg'); //this._firstSprite.scale(0.3,0.3); this._firstSprite.size(200,200); //this._firstSprite.pivotX = 0;//设置 sprite 对象的水平...
来源: Laya_社区 发布时间: 20200801
...rt default class VideoDom { htmlvideo:Laya.HtmlVideo; constructor() { Laya.stage.on(Laya.Event.CLICK,this,this.onClick); } onClick(){ this.initVideo(); } initVideo() { this.htmlvideo = new Laya.HtmlVideo(); this.htmlvideo.setSource("https://www.layaair.com/3.x/de ... ot%3B,1); this.htmlvideo.video.a...
来源: Laya_社区 发布时间: 20240305
...法继续。 package { import laya.ani.swf.MovieClip; import laya.display.Stage; import laya.events.Event; import laya.webgl.WebGL; public class MouseCount { public function MouseCount() { Laya.init(720, 1280, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; La...
来源: Laya_社区 发布时间: 20170105
向stage下的scene里添加物体时报错 附件 : --> car2d.zip 2022-08-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 151*****309 赞同来自: 你回收预制体为什么要回收一个脚本 改成下...
来源: Laya_社区 发布时间: 20220809
...下: ```java package { import laya.display.Sprite; import laya.display.Stage; import laya.filters.ColorFilter; import laya.resource.Texture; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class Main { private const ApePath:String = "res/img/monkey1.png"; priv...
来源: Laya2.0_文档 发布时间: 20210715
为什么Tiledmap总是显示于stage的图片之上? 为什么Tiledmap总是显示于Laya.stage的图片之上 2017-02-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: hamletborn 你...
来源: Laya_社区 发布时间: 20170224
...了第:"+index+"个btn"); } //初始化引擎 Laya.init(600, 400); Laya.stage.bgColor='#EEFFCC'; Laya.loader.load("res/atlas/comp.json", Handler.create(this, onAssetLoaded), null, Loader.ATLAS); //添加UI界面 function onAssetLoaded() { Laya.stage.addChild(new TestUI()); } 附件 : --> ButtonCli...
来源: Laya_社区 发布时间: 20170513
...: ```java package { import laya.display.Animation; import laya.display.Stage; import laya.maths.Rectangle; import laya.net.Loader; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class HelloLayabox { private const AniConfPath:String = "../../../../res/role.atl...
来源: Laya2.0_文档 发布时间: 20210715