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

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

701. Sprite-显示图片 [ 64%]

...e.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; this.showApe(); } private showApe(): void { // 方法1:使用loadImage var ape: Sprite = new Sprite(); Laya.stage.addChild(ape); ape.loadImage("res/apes/monkey3.png"); // 方法2:使用drawTexture Laya.loader.load("res/apes/monkey2.png", H...

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

702. spine动画,微信模拟器正常,真机动画图片颠倒!!!引擎大bug!!! [ 64%]

...his.templet.loadAni("comp/skeleton/spineboy.sk"); } protected onExit() {}; private onError() { console.log("parse error"); } private parseComplete() { //从动画模板创建动画播放对象 let hero = this.templet.buildArmature(1); hero.pos(200, 0); //切换动画皮肤 hero.showSkinByIndex(0); /...

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

703. 分享:Panel下动态修改子容器宽高并刷新显示! [ 64%]

...,'ui/vscroll$down.png','ui/vscroll$up.png'],Handler.create(this,start)); } private function start():void { var panel:Panel=new Panel();//添加panel,切忌要先将panel添加到舞台同时设置宽高,然后再去添加子对象 panel.width=500; panel.height=500; panel.vScrollBarSkin='ui/vscro...

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

704. laya animation播放图片集合,切换时会闪烁一下 [ 64%]

...里。 2019-03-25 0 0 分享 微博 QZONE 微信 风信子 赞同来自: private createAnimation(images: Array<string>): Laya.Animation { this.animation = new Laya.Animation(); this.ui.addChild(this.animation); this.animation.loadImages(images); this.animation.interval = 70; this.animation.pla...

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

705. 救命啊,遇到苹果爸爸 Guideline 2.5.2 [ 64%]

...ay not be using this functionality currently, it has the potential to load private frameworks, private methods, and enable future feature changes. This includes any code which passes arbitrary parameters to dynamic methods such as dlopen(), dlsym(), respondsToSelector:, performSelector:, method_exch...

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

706. 使用webgl之后toDataUrl返回黑色的图像 [ 64%]

...mport laya.utils.Stat; import laya.webgl.WebGL; public class LayaAirDemo { private var sp:Sprite ; public function LayaAirDemo() { //初始化引擎 Laya.init(Browser.width, Browser.height,WebGL); Stat.show(); Laya.stage.bgColor = "#ffcccc"; Laya.stage.on(Event.CLICK,this,onClick); sp= new Sprite();...

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

707. 文本-复杂的文本样式 [ 64%]

...caleMode = "showall"; Laya.stage.bgColor = "#232628"; this.createText(); } private createText(): void { var txt: Text = new Text(); //给文本的text属性赋值 txt.text = "Layabox是性能最强的HTML5引擎技术提供商与优秀的游戏发行商,面向Flash开发者提供HTML5开发技术...

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

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

... 动画是否出于播放状态 */ isPlayIng:boolean = false /** 空格 */ private space:string = "<span>                          </span>" constructor() { super() this.width = 1200 this.height = 55 this.visible = false this.pos(565,150) this._createHorn() this....

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

709. [LayaAir3]Laya3.3废弃了filters,如何设置sprite滤镜,添加PostProcess2D,再给Process添加ColorEffect2D也不生效 [ 63%]

...的。 2025-08-21 0 1 分享 微博 QZONE 微信 编号9527 赞同来自: private testFilter(){     let spirit = new Laya.Sprite();     this.displayObject.addChild(spirit);     spirit.x = 360;     spirit.y = 640;     const url = "lang/zh-cn/spine/hero/zhujue_attack/zhujue_attack.skel" ...

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

710. 列表组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 63%]

...ources/res/ui/listskins/5.jpg"); } list.array = data; this._list = list; } private updateItem(cell: Item, index: number): void { cell.setImg(cell.dataSource); } private onSelect(index: number): void { console.log("当前选择的索引:" + index); } } class Item extends Laya.Box { static WID: numb...

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