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

大约有 2,372 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0058 秒)

1171. 两个问题都关于LayaAir的ios真机 [ 63%]

...rite=new Sprite();            mask.loadImage("gametable/头像背景.png");var mask:Sprite=new Sprite(); mask.loadImage("gametable/头像背景.png"); var photo:Sprite=new Sprite(); photo.loadImage(AppConfig.httpPhotoUrl+UserData.username,0,0,gui.imgPhoto.width,gui.imgPhoto.height ); gui.imgPh...

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

1172. Laya.HTMLDivElement解析img标签报错 [ 63%]

...MLDivElement();         div.innerHTML="<img src='res/atlas/test.png'/>"         Laya.stage.addChild(div);     } TypeError: Illegal constructor laya.core.js:11687     at Function.getInstance (file:///D:/work/test2/bin/libs/laya.core.js:11687:24)     at Function.getInstan...

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

1173. UI弹窗 · LayaAir3.0文档 · LAYABOX [ 63%]

...行一次 */ onAwake(): void { this.assets = ["resources/res/ui/dialog (1).png", "resources/res/ui/close.png"]; Laya.loader.load(this.assets).then( ()=>{ this.onSkinLoadComplete(); } ); } private onSkinLoadComplete(e: any = null): void { this.dialog = new Laya.Dialog(); var bg: Laya.Image = new L...

来源: Laya3.0_文档 发布时间: 20230303

1174. 加载-销毁Texture使用的图片资源 [ 62%]

...开发语言、LayaAirIDE让项目开发更高效。let PathBg = "res/bg2.png", PathFly = "res/fighter/fighter.atlas"; class Loader_ClearTextureRes { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时...

来源: Laya2.0_示例 发布时间: 20241002

1175. Spine适配版(JavaScript-LayaAir基础篇(JS)-动画基础) [ 62%]

...后还是3.7之前的spine,都需要勾选上laya.spine.js。 ![](img/1.png) 在代码中使用时,我们在使用适配版Spine时需要引用指定的库`SpineTemplet`和`SpineSkeleton`,`SpineTempletBinary`是使用3.8版本特有的库,只适用3.8版本中.skel格式的资源。如图所...

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

1176. 分享一个自己做的游戏公告功能,跑马灯效果 [ 62%]

...** 创建背景 */ _createBg() { let bg = new Image() bg.skin = 'common/bg.png' bg.pos(20,0) bg.width = 1180 bg.height = 55 bg.sizeGrid = "2,2,2,2" bg.alpha = 0.7 bg.zOrder = 1 this.addChild(bg) } /** 创建喇叭 */ _createHorn(){ let horn = new Image() horn.zOrder = 2 horn.loadImage('common/horn.p...

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

1177. 单选框组组件 · LayaAir3.0文档 · LAYABOX [ 62%]

...一次 onAwake(): void { this.skins = ["resources/res/ui/radioButton (1).png", "resources/res/ui/radioButton (2).png", "resources/res/ui/radioButton (3).png"]; Laya.loader.load(this.skins).then(() => { this.onLoadComplete(); }); } private onLoadComplete(e: any = null): void { for (let i: number =...

来源: Laya3.0_文档 发布时间: 20231012

1178. 1.70beta Dialog增加动画后第二次执行popup不显示弹窗 [ 62%]

...HOWALL; Laya.stage.bgColor = "#232628"; assets = ["../../res/ui/dialog (1).png", "../../res/ui/close.png"]; Laya.loader.load(assets, Handler.create(this, onSkinLoadComplete)); })(); function onSkinLoadComplete() { var dialog = new Dialog(); var bg = new Image(assets[0]); dialog.addChild(bg); var but...

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

1179. 脚本化(TypeScript-IDE篇(TS)-脚本使用) [ 62%]

...节点使用RevoluteJoint,PrismaticJoint,RigidBody;与accept:res使用jpg,png,txt限制后缀 | | option | Option和editOption的关联属性 option:可选择列表,如aaa,bbb,ccc | | min | Number和sNumber的最小值 | | max | Number和sNumber的最大值 | | label | Nodes的关联属性,展示...

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

1180. 脚本组件的使用(TypeScript-2D进阶篇(TS)-扩展模块) [ 62%]

...节点使用RevoluteJoint,PrismaticJoint,RigidBody;与accept:res使用jpg,png,txt限制后缀 | | option | Option和editOption的关联属性 option:可选择列表,如aaa,bbb,ccc | | min | Number和sNumber的最小值 | | max | Number和sNumber的最大值 | | label | Nodes的关联属性,展示...

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