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

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

921. 关于Laya.loader.load和getRes的问题 [ 74%]

...exture Laya.loader.load("../../../../res/apes/monkey2.png", Handler.create(this, function():void { var t:Texture = Laya.loader.getRes("../../../../res/apes/monkey2.png"); var ape:Sprite = new Sprite(); ape.graphics.drawTexture(t,0,0); Laya.stage.addChild(ape); ape.pos(200, 0); })); 这可以正常...

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

922. 菜鸟求教:laya 按钮问题 [ 74%]

...ayaide2.1.0.  用的是TypeScript,我发现 var ff = new laya.ui.Button(this.skin); var _btn = new Laya.Button(this.skin);  这两个方法都是实例一个按钮,但是第一行却报错说Button未定义。但是第二行却是可以的。难道说这两种写法还有什么讲究吗,查a...

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

923. 动态阴影被切割了?为啥没有显示完成的阴影 [ 74%]

...NE; //开启统计信息 Laya.Stat.show(); Laya.stage.on(Laya.Event.CLICK, this, mouseHandler); //添加3D场景 var scene = Laya.stage.addChild(new Laya.Scene()); function LayaAir3D() { //添加照相机 var camera = (scene.addChild(new Laya.Camera()));//0, 0.3, 100 camera.transform.translate(new L...

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

924. Laya.stage.on(Laya.Event.DISPLAY,this,this.ddddd); 无法监听到。 [ 74%]

Laya.stage.on(Laya.Event.DISPLAY,this,this.ddddd); 无法监听到。 2017-02-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: 我们测试是没有问题的,当显示对象显示到...

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

925. RopeJoint代码动态创建 无法设置otherbody [ 74%]

....RopeJoint     constructor() {         super();        fruit.Fru=this;             }      onAwake() {         let rig:Laya.RigidBody=this.owner.getComponent(Laya.RigidBody);         var lala=UIcontrol.FUI.bg.getComponent(Laya.RigidBody);         this.rope=this.owner.ge...

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

926. 自定义对话框设置zOrder后,关闭时报错 [ 74%]

... CountdownBar = (function () { function countdownBar() { PauseDialog.super(this); this.name = 'CountdownBar'; Laya.stage.addChild(this); this.zOrder = 100; this.count = 4; this.countLabel.text = '' + this.count; Laya.timer.loop(1000, this, this.countdown); } Laya.class(countdownBar, "CountdownBar", ...

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

927. 水平滚动条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 74%]

...和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.hscroll.skin = "atlas/comp/hscroll.png";//滚动条皮肤 this.hscroll.width = 300;//滚动条的宽度 this.hscroll.pos(300, 300);//滚动条的位置 this.hscroll.min = 0;//滑块的最小滚动位置 this.hscroll.max = ...

来源: Laya3.0_文档 发布时间: 20251010

928. 发现TimeLine的一些问题,像是BUG [ 74%]

...er.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //实例UI界面 Laya.stage.bgColor="#353535"; sp1=createSprite(50,50);//创建方块1 sp2=createSprite(250,50);//创建方块2 sp3=createSprite(450,50);//创建方块3 a...

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

929. 垂直滚动条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 74%]

...和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.vscroll.skin = "atlas/comp/vscroll.png";//滚动条皮肤 this.vscroll.width = 300;//滚动条的宽度 this.vscroll.pos(300, 300);//滚动条的位置 this.vscroll.min = 0;//滑块的最小滚动位置 this.vscroll.max = ...

来源: Laya3.0_文档 发布时间: 20251010

930. 我用laya.websocket通信 二进制数据, 服务器对二进制数据进行解析,解析出来不是预期,请问我哪里写错了? 代码如下 [ 74%]

...        }             console.log("copy end");             this.socket.send(b);             console.log("send end");             this.socket.flush(); 2017-06-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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