大约有 2,994 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0077 秒)
Laya_社区(2435) Laya2.0_文档(172) Laya3.0_api(101) Laya_示例(79) Laya3.0_文档(70) Laya2.0_api(55) laya_api(42) Laya2.0_示例(40)
...; //设置背景颜色 Laya.stage.bgColor = "#ffcccc"; //加载资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) })(); function onLoaded(){ //实例化 var tempBG=new background(); Laya.stage.addChild(tempBG); } })();在background.js里是这...
来源: Laya_社区 发布时间: 20180129
...keleton); skeleton.pos(600,350); //通过加载直接创建动画 skeleton.load("res/DragonBones/rooster/Rooster_Ani.sk"); ``` 运行效果如动图6所示  (动图6)
来源: Laya2.0_文档 发布时间: 20210715
...复问题请先登录 发起人 LM20081991 相关问题 分享:LayaAir下Loading进度条的制作(ActionScript 3.0) 请问LayaAir中如何使图片以圆形的方式显示? 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 请问有没有方法能够获取“...
来源: Laya_社区 发布时间: 20180104
...script //初始化引擎 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")...
来源: Laya2.0_文档 发布时间: 20210715
... = this.camera; //男角色 this.roleMan = new Laya.MeshSprite3D(Laya.Mesh.load("3d/man/CunMinNan-cunminnan.lm")); this.roleMan.transform.localScale = new Laya.Vector3(0.01, 0.01, 0.01); this.roleMan.transform.localPostion = new Laya.Vertor3(0,-0.5,-3); this.scene.addChild(this.roleMan); //添加蒙...
来源: Laya_社区 发布时间: 20180731
... BaseTexture VideoTexture Index Constructors constructor Properties _id _isLoaded _needUpdate destroyedImmediately element lock name url uuid DEBUG Accessors anisoLevel baseMipmapLevel buffered compareMode cpuMemory currentSrc currentTime defaultTexture destroyed dimension duration ended error filte...
来源: Laya3.0_api 发布时间: 20231115
...lf replaceChild runCallLater setChildIndex timerLoop timerOnce instantiate load Constructors constructor new DirectionLight(): DirectionLight Overrides LightSprite.constructor Defined in laya/d3/core/light/DirectionLight.ts:50 创建一个 DirectionLight 实例。 Returns DirectionLight Properties O...
来源: Laya3.0_api 发布时间: 20231115
... addPic(str:String, x:int, y:int) { picUrl = str; picX = x; picY = y; Laya.loader.load(picUrl, Handler.create(this, showBgImg)); } private function showBgImg():void { pic = new Image(); pic.graphics.drawTexture(Laya.loader.getRes(picUrl), picX, picY); Laya.stage.addChild(pic); } } } Main.as packa...
来源: Laya_社区 发布时间: 20170522
...keleton); skeleton.pos(600,350); //通过加载直接创建动画 skeleton.load("res/DragonBones/rooster/Rooster_Ani.sk"); ``` 运行效果如动图6所示  (动图6)
来源: 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, onLoadComplete)); })(); function onLoadComplete() { progressBar = new ProgressBar("res/ui/progressBar.png"); progressBar.width = 400; ...
来源: Laya2.0_文档 发布时间: 20210715