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

大约有 1,604 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0076 秒)

911. 3d粒子只要勾了looping,每次播放完开始下一次循环的时候都会闪烁一下 [ 62%]

...2 • 2019-12-13 19:42 @NilZ: var scene3d = new Laya.Scene3D(); Laya.stage.addChild(scene3d); var camera = new Laya.Camera(0, 0.1, 1000); scene3d.addChild(camera); camera.transform.rotate(new Laya.Vector3(-45, 0, 0), false, false); camera.transform.translate(new Laya.Vector3(1000, 0, 0)); camera.ort...

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

912. 微信小游戏内TextInput不能实现只输数字的功能 [ 62%]

... 4, 0, 4]; input.restrict = "0-9";//限制输入字符为数字 Laya.stage.addChild(input); 2019-02-26 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 wu语 相关问题 关于微信小游戏关系链的问题 微信关系链:LayaAir引...

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

913. Spine适配版(JavaScript-LayaAir基础篇(JS)-动画基础) [ 62%]

...omplete(): void { this.skeleton = this.templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleton.pos(Browser.width / 2, Browser.height / 2 + 100); this.skeleton.scale(0.5, 0.5); this.skeleton.on(Event.STOPPED, this, this.play) this.play(); } private onError(): void{ console.log("par...

来源: Laya2.0_文档 发布时间: 20210715

914. laya.ui.Dialog_API3.0 [ 62%]

.../ui/bg.png"); bg.sizeGrid = "40,10,5,10"; bg.width = 150; bg.height = 250; addChild(bg); var image:Image = new Image("resource/ui/image.png"); addChild(image); var button:Button = new Button("resource/ui/btn_close.png"); button.name = Dialog.CLOSE;//设置button的name属性值。 button.x = 0; butt...

来源: Laya3.0_api 发布时间: 20231115

915. drawcall优化问题 [ 62%]

...is, function(){ container = new Laya.Sprite(); var x = 0,y =80; Laya.stage.addChild(container); for(var i=0;i<1200;i++){ var role = new Laya.Sprite(); x = x+0.1; y = y+0.1 role.x = x; role.y = y; role.loadImage('comp/bg.png'); container.addChild(role); var role2 = new Laya.Sprite(); x = x+0.1; y ...

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

916. 关于mouseThough=true的问题 [ 62%]

...t;); img.on(Event.CLICK,this,onClick); img.mouseThrough = true; Laya.stage.addChild(img); } 代码就这么简单,图片我传到附件里面 shiyang • 2018-03-14 15:55 private function onClick(e:Event):void{ trace("xxxxxxx"); }

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

917. localRotationEulerY旋转位置错误 [ 62%]

...      this.arr = [];         this.newScene = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D;          //初始化照相机         var camera = this.newScene.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera;         camera.transform...

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

918. 我自己绘制的矩形如何以自身中心点旋转不能实现啊 [ 62%]

...rite=new Sprite(); sp.graphics.drawRect(0,0,200,300,"#000fff"); Laya.stage.addChild(sp); sp.size(200,300); sp.pivot(sp.width/2,sp.height/2); sp.pos(200,200); Laya.timer.frameLoop(1,this,onLoopRotation,[sp]); } private function onLoopRotation(sp:Sprite):void { sp.rotation++; } } } 2017-09-05 0 0 分...

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

919. laya.ui.Clip_API3.0 [ 62%]

...CK, this, onClick);//给 clip 添加点击事件函数侦听。 Laya.stage.addChild(clip);//将此 clip 对象添加到显示列表。 } private function onClick():void { trace("clip 的点击事件侦听处理函数。clip.total="+ clip.total); if (clip.isPlaying == true) { clip.stop();//停止动...

来源: Laya3.0_api 发布时间: 20231115

920. laya.ui.HScrollBar_API3.0 [ 62%]

...this, onChange);//设置 hScrollBar 的滚动变化处理器。 Laya.stage.addChild(hScrollBar);//将此 hScrollBar 对象添加到显示列表。 } private function onChange(value:Number):void { trace("滚动条的位置: value=" + value); } } } example Laya.init(640, 800);//设置游戏画布宽...

来源: Laya3.0_api 发布时间: 20231115