大约有 293 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0042 秒)
Laya_社区(135) Laya3.0_api(87) Laya3.0_文档(36) Laya_示例(18) Laya2.0_示例(10) Laya2.0_文档(5) laya_api(1) Laya2.0_api(1)
...public static readonly BLACK_MAN = "res/atlas/default/blackMan.json"; this.aniTemp.loadAtlas(ResourcesManager.BLACK_MAN, null, ResourcesManager.BLACK_MAN); json 文件是 {"frames":{"000001man.png":{"frame":{"x":0,"y":0,"w":36,"h":110,"idx":0},"spriteSourceSize":{"x":0,"y":0},"sourceSize"...
来源: Laya_社区 发布时间: 20170824
...和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.btn.scale(5, 5); //放大五倍 this.btn.skin = "atlas/comp/button.png"; //皮肤 this.btn.stateNum = 3; //皮肤状态 this.btn.label = "确定"; //文本标签 this.btn.labelFont = "宋体"; //文本标签字体 this.btn...
来源: Laya3.0_文档 发布时间: 20251010
...ate receiveHandler(msg: any = null): void { ///接收到数据触发函数 this._msgByte.clear(); this._msgByte.writeArrayBuffer(msg);//把接收到的二进制数据读进byte数组便于解析。 this._msgByte.pos = 0;//设置偏移指针; } 发现一个问题就是如果数据传输比较平...
来源: Laya_社区 发布时间: 20171214
... 微信 Laya_Aaron 赞同来自: onGreen(){ console.log("换成绿锤子") this.greenPitchUp.visible=true; this.bluePitchUp.visible=false; let player=Player.instance; // player.anSk.showSlotSkinByIndex("HarmGreen",1); player.anSk.replaceSlotSkinByIndex("HarmGreen",1,0);//这里是0,0,更不行 p...
来源: Laya_社区 发布时间: 20181114
...? onTriggerEnter(e:Laya.RigidBody):void{ var cil:Laya.CircleCollider=this.owner.getComponent(Laya.CircleCollider); var rig:Laya.RigidBody=this.owner.getComponent(Laya.RigidBody); cil.enabled=false; rig.enabled=false; var self:Laya.Sprite= this.owner as Laya.Sprite; var ni:Laya.Animation=new Laya...
来源: Laya_社区 发布时间: 20190721
... cached:boolean = false; private body:Laya.Sprite; constructor(){ super(); this.init(); } public init():void{ if(!Ball.cached){ Ball.cached = true; this.body = new Laya.Sprite(); this.body.loadImage("war/ball.png"); this.body.pivot(12,12); } this.addChild(this.body); Laya.timer.frameLoop(1,this,this...
来源: Laya_社区 发布时间: 20171108
...和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.radiogroup.pos(100, 100); this.radiogroup.labels = "label0,label1,label2"; this.radiogroup.space = 20; this.radiogroup.selectedIndex = 0; this.radiogroup.direction = "vertical"; } } 二、创建自定义的RadioGroup组件...
来源: Laya3.0_文档 发布时间: 20251016
...可以加载2D,3D资源 Laya.loader.load(resArr, null, Laya.Handler.create(this, this.onLoading, null, false)).then(() => { // 加载完成后,处理逻辑 this.progress.value = 0.98; console.log("加载结束", this.progress.value); Laya.Scene.open("scenes/Index.ls"); //不...
来源: Laya_社区 发布时间: 20230713
...景颜色 Laya.stage.bgColor = "#232628"; //加载资源 Laya.loader.load(this.skins, Handler.create(this, this.onSkinLoadComplete)); } /***加载资源完成***/ private onSkinLoadComplete(e:any=null):void { //创建水平滚动条 this.createHScroller(); } /***创建水平滚动条***/ private cre...
来源: Laya2.0_文档 发布时间: 20210715
...景颜色 Laya.stage.bgColor = "#232628"; //加载资源 Laya.loader.load(this.skins, Handler.create(this, this.onSkinLoadComplete)); } /***加载资源完成***/ private onSkinLoadComplete(e:any=null):void { //创建垂直滚动条 this.createVScroller(); } /***创建水平滚动条***/ private cre...
来源: Laya2.0_文档 发布时间: 20210715