大约有 2,023 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0064 秒)
Laya_社区(1419) Laya2.0_文档(233) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(61) Laya3.0_文档(39) Laya2.0_api(7) laya_api(6)
... "res/ui/tree/clip_tree_arrow.png" ]; Laya.loader.load(res, Handler.create(this, this.onLoadComplete)); } onLoadComplete() { const Utils = Laya.Utils, Tree = Laya.Tree; // 组装tree的数据 let treeData = ""; for (let i = 0; i "; for (let j = 0; j "; } treeData += ""; } treeData += ""; // 解析tr...
来源: Laya2.0_示例 发布时间: 20241118
骨骼释放纹理 Templet.TEMPLET_DICTIONARY[this.url] url用错了导致Templet删不掉 /** *释放纹理 */ __proto.destroy=function(){ this._isDestroyed=true; var tTexture; var $each_tTexture; /*for...
来源: Laya_社区 发布时间: 20190704
...class Item extends Box { constructor(){ super(); const Image = Laya.Image; this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); } setImg(src) { this.img.skin = src; } } class UI_List { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya....
来源: Laya2.0_示例 发布时间: 20241118
...ALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(skin, Handler.create(this, onLoadComplete)); })(); function onLoadComplete() { var ta = new TextArea(""); ta.skin = skin; ta.font = "Arial"; ta.fontSize = 18; ta.bold = true; ta.color = "#3d3d3d"; ta.pos(100, 15); ta.size(375, 355); ta.padding = ...
来源: Laya_示例 发布时间: 20241118
...e.bgColor = "#232628"; Stat.show(); Laya.loader.load(skins, Handler.create(this, this.onSkinLoaded)); } onSkinLoaded() { let tabA = this.createTab(skins[0]); tabA.pos(40, 120); tabA.labelColors = "#000000,#d3d3d3,#333333"; let tabB =this. createTab(skins[1]); tabB.pos(40, 220); tabB.labelColors = "#...
来源: Laya2.0_示例 发布时间: 20241118
...次就打不开了。 Dialog.manager.popupEffectHandler = Handler.create(this,(e)=>{ var dialog:Dialog = <Dialog>e; dialog.y = - dialog.height; var yy:number = (Laya.stage.height - dialog.height)/2; Laya.Tween.to(dialog,{y:yy},600,Laya.Ease.backOut); },[],false); this.gameHelpDialog = new v...
来源: Laya_社区 发布时间: 20171114
...elUI(){ ABCPanelUI.__super.call(this); } CLASS$(ABCPanelUI,'ui.abc.ABCPanelUI',_super); var __proto__=ABCPanelUI.prototype; __proto__.createChildren=function(){ ...
来源: Laya_社区 发布时间: 20161017
...ale(0.5, 0.5); Laya.stage.addChild(mArmature); //mArmature.on(Event.LABEL, this, onEvent); mArmature.on(Event.STOPPED, this, completeHandler); mArmature.on(Event.CLICK, this, onChangeSkin); mArmature.showSkinByName(mSkinList[0]); play(); //changeSkin(); //Laya.timer.loop(1000, this, changeSkin); } 2...
来源: Laya_社区 发布时间: 20170818
...ad("LayaScene_SceneMonkey/Conventional/SceneMonkey.ls",Laya.Handler.create(this,function(res){ Laya.stage.addChild(res); //用于挂点的精灵 var box = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1,1,1)); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", ...
来源: Laya2.0_文档 发布时间: 20210715
...ad("LayaScene_SceneMonkey/Conventional/SceneMonkey.ls",Laya.Handler.create(this,function(res){ Laya.stage.addChild(res); //用于挂点的精灵 var box = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1,1,1)); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", ...
来源: Laya2.0_文档 发布时间: 20210714