大约有 1,587 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0046 秒)
Laya_社区(1114) Laya2.0_文档(231) Laya_示例(108) Laya2.0_示例(69) Laya3.0_文档(52) Laya3.0_api(11) Laya2.0_api(2)
...化引擎 Laya.init(800, 600); //预加载所需资源 Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { //实例化Panel组件 var panel = new Laya.Panel(); //给panel添加背景色 panel.graphics.drawRect(0, 0, 100, 100, "#ffcccc"); //给panel设...
来源: Laya2.0_文档 发布时间: 20210715
... QZONE 微信 cheneboy 赞同来自: 可以了 this.tiledMap.createMap("res/tiled/green.json", new Rectangle(0, 0, 1120, 860), new Handler(this, this.completeHandler),null,new Point(1120,860)); 最后那个参数new Point(1120,860),其实是地图的分块渲染的大小,默认是450,450,...
来源: Laya_社区 发布时间: 20180321
...资源释放的问题 现在面板关闭的时候我会调用clearTextureRes清理,现在发现在canvas模式下,再次打开界面有可能会有皮肤丢失。这个方法canvas下不能使用吗,求大神指点 2018-04-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...
来源: Laya_社区 发布时间: 20180425
...de._setParent is not a function var role3D: Laya.Sprite3D = Laya.loader.getRes("res/lk4.lh") as Laya.Sprite3D; //加载到场景 scene.addChild(role3D); //此处报错 var ani = role3D.getComponent(Laya.Animator) as Laya.Animator; //播放攻击状态 ani.play(); chrome 调试: addChild(node) ...
来源: Laya_社区 发布时间: 20191203
...eScaleMode; import flash.events.Event; import flash.events.ProgressEvent; import flash.events.TimerEvent; import flash.external.ExternalInterface; import flash.text.TextField; import flash.text.TextFieldAutoSize; import flash.text.TextFormat; import fl...
来源: Laya_社区 发布时间: 20200217
...n); skeleton.pos(600,350); //通过加载直接创建动画 skeleton.load("res/DragonBones/rooster/Rooster_Ani.sk"); ``` 运行效果如动图6所示  (动图6)
来源: Laya2.0_文档 发布时间: 20210715
...pixels没有进行改动。怎么回事呢? 代码如下: var url = "res/textures/marry_frame_005.png"; url= Laya.URL.formatURL(url); var imageSource=new Laya.Browser.window.Image(); var thisObj = this; var onload=function (){ var tex=new Laya.Texture2D(imageSource.width,imageSource.height,1,fal...
来源: Laya_社区 发布时间: 20190923
...件包含导出的资源文件,麻烦帮忙看下 Laya.Sprite3D.load("res/LayaScene_Model_71008/Model_71008.lh", Laya.Handler.create(null, function(sprite:Laya.Sprite3D):void { scene.addChild(sprite); sprite.transform.localScale = new Laya.Vector3(0.2, 0.2, 0.2); })); 报错信息 Uncaught T...
来源: Laya_社区 发布时间: 20200104
...r Loader = laya.net.Loader; var UI; Laya.init(600, 400); Laya.loader.load("res/atlas/template/Tab栏.json", Laya.Handler.create(this, onAssetLoaded2), null, Loader.ATLAS); function onAssetLoaded2() { Laya.class(MyBoot, "MyBootClass", MyBootPage2UI); UI = new MyBootClass(); Laya.sta...
来源: Laya_社区 发布时间: 20160722
...化引擎 Laya.init(800, 600); //预加载所需资源 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, "...
来源: Laya2.0_文档 发布时间: 20210715