大约有 82 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0046 秒)
... function ListItemRender() { var label = null; ListItemRender.__super.call(this); this.size(100, 20); label = new Label(); label.fontSize = 12; label.color = "#FFFFFF"; this.addChild(label); this.setLabel = function(value) { label.text = value; } } Laya.class(ListItemRender, "ListItemRender", Box); ...
来源: Laya_示例 发布时间: 20251130
...ya.Skeleton> = []; public static getInstance():DdzLandlordAni{ return this.instance(DdzLandlordAni); } public constructor(){ super(); this.initTemplet(); } public static destoryInstance(){ if(this.mInstance){ (<DdzLandlordAni>this.mInstance).destory(); this.mInstance = null; } } pub...
来源: Laya_社区 发布时间: 20190821
...ext:Laya.RenderContext,x:number,y:number):void{ if(this.shader._program) { let u_lightTime = gl.getUniformLocation(this.shader._program, "u_lightTime") gl.uniform1f(u_lightTime, this.timer...
来源: Laya_社区 发布时间: 20181121
...函数里面 事件侦听函数的执行域 的详解 sp.on(Event.CLICK, this, fun) 有时候是this,有时候是null 到底怎么区分这个 2016-12-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 LayaBB...
来源: Laya_社区 发布时间: 20161202
...有属性 */ public function clearAll():void { if (_map) { _map = null; } this.visible = false; //aniSpriteArray为空的时候,导致自己没有被销毁,直接return了 if (aniSpriteArray == null) { return; } var tAniSprite:TileAniSprite; for (var i:int = 0; i < aniSpriteArray.length; i++)...
来源: Laya_社区 发布时间: 20180503
...400); Laya.loader.load("res/atlas/template/comp.json", Laya.Handler.create(this, onAssetLoaded2), null, Loader.ATLAS); function onAssetLoaded2() { Laya.class(MyBoot, "MyBootClass", MyPage2UI); var UI = new MyBootClass(); Laya.stage.addChild(UI); } function MyBoot() { MyBoot....
来源: Laya_社区 发布时间: 20160722
...el: Laya.Label = res.create(); //添加预制体Label字体到box节点下 this.box.addChild( label ); } ); } } 运行效果如图3-6所示 (图3-6) 3.2 3D预制体 3D预制体的使用过程同2D预制体一样,在这里我们就不介绍如何制作预制体了,通过下面的示例来看...
来源: Laya3.0_文档 发布时间: 20251105
...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } setup() { this.createCharacter(); this.createEaseFunctionList(); this.createDurationCrontroller(); } createCharacter() { const Sprite = Laya.Sprite; character = new Sprite(); Laya.stage.addChild(character); ch...
来源: Laya2.0_示例 发布时间: 20251130
...el: Laya.Label = res.create(); //添加预制体Label字体到box节点下 this.box.addChild( label ); } ); } } 运行效果如图3-6所示 (图3-6) 3.2 3D预制体 3D预制体的使用过程同2D预制体一样,在这里我们就不介绍如何制作预制体了,通过下面的示例来看...
来源: Laya3.0_文档 发布时间: 20241014
...er.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //实例UI界面 listP = new ListPageUI(); Laya.stage.addChild(listP); Laya.timer.once(1000,this,onAdd);//1000毫秒后初始化list数据 listP.add.on(Event.CLICK,this,o...
来源: Laya_社区 发布时间: 20170313