大约有 1,292 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0060 秒)
Laya_社区(1020) Laya2.0_文档(79) Laya3.0_文档(55) Laya_示例(51) Laya3.0_api(44) Laya2.0_示例(39) laya_api(2) Laya2.0_api(2)
...Object' of null 微信关系链开发,如果在开放域那边使用Laya.loader.load加载就会出错 官网文档真的太垃圾了了,错误百出,真想知道你们真的认真运行过那些例子了吗?很多连截图给文字都对不上 问题状态 最新活动: 2021-11-02 15:17 浏...
来源: Laya_社区 发布时间: 20211102
... Laya.WebGL); let res:any = []; res.push({url:"res/atlas/comp.atlas", type:Loader.ATLAS}); Laya.loader.load(res, Handler.create(null, this.__onLoaded)); } private __onLoaded(): void { Laya.stage.addChild(new Test()); } } new Entry(); Test.ts import Sprite = Laya.Sprite; class Test extends Sprite{...
来源: Laya_社区 发布时间: 20180308
...正确获取宽高。 3. **直接调用size设置:** ```javascript Laya.loader.load("res/apes/monkey2.png", Handler.create(this, function() { var texture:Texture = Laya.loader.getRes("res/apes/monkey2.png"); var sp:Spirte = new Sprite(); sp.graphics.drawTexture(tex...
来源: Laya2.0_文档 发布时间: 20210715
...提前设置 assets = ["res/ui/dialog (1).png", "res/ui/close.png"]; Laya.loader.load(assets, Handler.create(this, onSkinLoadComplete)); } private function onSkinLoadComplete(e:*=null):void { var dialog:Dialog = new Dialog(); var bg:Image = new Image(assets[0]); dialog.addChild(bg); var button:Butto...
来源: Laya_社区 发布时间: 20170706
...麻烦帮看一下这种遮罩bar的进度条设了遮罩不起作用 Laya.loader.create 进度回调函数执行两次 关于环形进度条,进度不能重置问题 这种进度条怎么实现? 官方提供的进度条示例 只能设置progress.png的九宫, 里面的progress$bar.png 无法...
来源: Laya_社区 发布时间: 20171211
...正确获取宽高。 1. **直接调用size设置:** ```javascript Laya.loader.load("res/apes/monkey2.png",Handler.create(this,function() { var texture=Laya.loader.getRes("res/apes/monkey2.png"); var sp=new Laya.Sprite(); sp.graphics.drawTexture(texture,0,0); sp.size(texture.width,texture.height);...
来源: Laya2.0_文档 发布时间: 20210715
...性会被覆盖 微信关系链开发,如果在开放域那边使用Laya.loader.load加载就会出错 Tween移动多个坐标 列如沿着正方形边线移动 问题状态 最新活动: 2020-03-28 11:29 浏览: 6852 关注: 6 人 峯 • 2020-02-07 12:50 引擎版本2.3.1 峯 • 2020-02-07 12:5...
来源: Laya_社区 发布时间: 20200206
... ```javascript //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/ui.atlas", Laya.Handler.create(this, onLoaded)); ``` 第二步:创建Animation实例,加载动画文件 ```javascript //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 ...
来源: Laya2.0_文档 发布时间: 20210715
...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(["res/ui/progressBar.png", "res/ui/progressBar$bar.png"], Handler.create(this, this.onLoadComplete)); } private onLoadComplete(): void { this.progressBar = new ProgressBar("res/ui/progressBar.png"); this.progressB...
来源: Laya2.0_文档 发布时间: 20210715
...est() { //初始化引擎 Laya.init(800,600); //预加载所需资源 Laya.loader.load("res/atlas/comp.atlas",Handler.create(this,onLoaded)); } private function onLoaded():void { //实例化Panel组件 var panel:Panel = new Panel(); //给panel添加背景色 panel.graphics.drawRect(0,0,100,100,"#ffc...
来源: Laya2.0_文档 发布时间: 20210715