大约有 1,237 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0062 秒)
Laya_社区(706) Laya_示例(137) Laya2.0_文档(123) Laya2.0_示例(116) Laya3.0_文档(76) Laya3.0_api(39) laya_api(29) Laya2.0_api(11)
...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
...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
...,'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
...里。 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
...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
...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
...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
... 动画是否出于播放状态 */ 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
...的。 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
...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