大约有 1,232 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0054 秒)
Laya_社区(702) Laya_示例(137) Laya2.0_文档(123) Laya2.0_示例(116) Laya3.0_文档(75) Laya3.0_api(39) laya_api(29) Laya2.0_api(11)
...里。 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_示例 发布时间: 20251209
... 动画是否出于播放状态 */ 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
...ya.Script { @property({ type : Laya.Sprite3D}) public cube: Laya.Sprite3D; private rotation: Laya.Vector3 = new Laya.Vector3(0, 0.01, 0); onStart() { Laya.timer.frameLoop(1, this, ()=> { this.cube.transform.rotate(this.rotation, false); }); } } 效果如动图1-4所示: (动图1-4) 1.3 3D...
来源: Laya3.0_文档 发布时间: 20251010
...); return image; } </script>2. 在 as 代码中加入如下函数: private static var createTextureCallBack:Function; public static function createTexture(s:Sprite,callback:Function,callbackThis:Object):void{ createTextureCallBack = callback; var htmlCanvas:HTMLCanvas = s.drawToCanvas(512,51...
来源: Laya_社区 发布时间: 20170718
...ayaMaxUI"; export default class RuleDialog extends ui.scene.RuleDialogUI { private m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateItem); this.list_rule.scrollBar.cha...
来源: Laya_社区 发布时间: 20171202