• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 293 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0042 秒)

231. 提示资源找不到但是也能显示! [ 63%]

...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

232. 按钮组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 63%]

...和组件均已创建完毕,此方法只执行一次 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

233. 为什么SOCKET接收数据BYTE内存会越来越大 [ 63%]

...ate receiveHandler(msg: any = null): void { ///接收到数据触发函数 this._msgByte.clear(); this._msgByte.writeArrayBuffer(msg);//把接收到的二进制数据读进byte数组便于解析。 this._msgByte.pos = 0;//设置偏移指针; }   发现一个问题就是如果数据传输比较平...

来源: Laya_社区 发布时间: 20171214

234. 龙骨换肤出现问题,这个问题论坛有人问过,然后说处理没有下文了?已上传demo,求解决 [ 63%]

... 微信 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

235. laya2 物理引擎好多问题 [ 63%]

...? 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

236. 请大家帮助优化一下这个抛物线的代码 [ 62%]

... 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

237. 单选框组容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 62%]

...和组件均已创建完毕,此方法只执行一次 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

238. 报无法找到资源,未升级ide之前不报错 [ 62%]

...可以加载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

239. HScrollBar属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 62%]

...景颜色 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

240. VScrollBar属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 62%]

...景颜色 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