• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 2,994 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0077 秒)

2431. 模仿教程里的打地鼠写的代码,运行报错 [ 50%]

...; //设置背景颜色 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

2432. DragonBone动画使用(JavaScript-LayaAir基础篇(JS)-动画基础) [ 50%]

...keleton); skeleton.pos(600,350); //通过加载直接创建动画 skeleton.load("res/DragonBones/rooster/Rooster_Ani.sk"); ``` 运行效果如动图6所示 ![动图6](img/6.gif) (动图6)

来源: Laya2.0_文档 发布时间: 20210715

2433. 请问 在LayaAir中有没有更新血条的案例,我现在项目中 血量减少正常,就是血条没有任何变化. 把网站里的那个进度条的拉进来也没有任何效果。 [ 49%]

...复问题请先登录 发起人 LM20081991 相关问题 分享:LayaAir下Loading进度条的制作(ActionScript 3.0) 请问LayaAir中如何使图片以圆形的方式显示? 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 请问有没有方法能够获取“...

来源: Laya_社区 发布时间: 20180104

2434. Panel使用文档(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 49%]

...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

2435. 用layaair如何加載蒙皮動畫,请问怎么加载.lm文件和.ani文件,有沒有實例可以看下 [ 49%]

... = 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

2436. laya.media.VideoTexture_API3.0 [ 49%]

... 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

2437. laya.d3.core.light.DirectionLight_API3.0 [ 49%]

...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

2438. 问一下这个问题要怎么改啊? [ 49%]

... 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

2439. DragonBone动画使用(TypeScript-LayaAir基础篇(TS)-动画基础) [ 49%]

...keleton); skeleton.pos(600,350); //通过加载直接创建动画 skeleton.load("res/DragonBones/rooster/Rooster_Ani.sk"); ``` 运行效果如动图6所示 ![动图6](img/6.gif) (动图6)

来源: Laya2.0_文档 发布时间: 20210715

2440. ProgressBar属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 49%]

...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