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

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

431. 这样的panel请问如何实现比较好? [ 69%]

...按钮,会显示下一层界面,同时隐藏自己 this.btnFirst.on(Laya.Event.CLICK, this, this.change, [0]); //点击上面一层的按钮,会隐藏该层,同时显示上一层 this.btnChange.on(Laya.Event.CLICK, this, this.change, [1]); //初始时默认上面一层不可见 this.layoutSeco...

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

432. laya.d3.component.physics.Collider [ 69%]

...ll Classes | Index | Frames No Frames ColliderProperties | Methods | Events Packagelaya.d3.component.physicsClasspublic class ColliderInheritanceCollider Component3D EventDispatcher ObjectSubclasses BoxCollider, MeshCollider, SphereCollider Collider 类用于创建碰撞器的父类,抽象...

来源: laya_api 发布时间: 20170929

433. UI运行时 · LayaAir3.3 · 引擎文档 · LAYABOX [ 69%]

...oid { // Button添加鼠标事件,让Image不显示 this.Button.on( Laya.Event.MOUSE_DOWN, this, ()=>{ this.Image.visible = false; }); } 运行此场景来看看效果,如动图2-7所示。 (动图2-7) UI组件脚本就已经介绍完了,再复杂的UI都可以通过勾选组件声明...

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

434. 2.0label不改变文本内容,label颜色无法直接改变,1.0可以 [ 69%]

...  this.label.visible = true;             this.label.on(Laya.Event.MOUSE_OVER, this, this.ChangeLabelColor);             this.label.on(Laya.Event.MOUSE_OUT, this, this.ChangeLabelColor);         } 附件 : --> Test1.zip 2019-05-14 添加评论 免费帖 --> 分享 ...

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

435. 正交摄像机裁剪问题 [ 69%]

...p = Laya.Sprite3D.load('res/01/mfs_01.lh'); scene.addChild(sp); sp.on(Laya.Event.HIERARCHY_LOADED, this, function(){ sp.transform.localPosition = new Laya.Vector3(1, 1, 1); var scale = 1; var v3 = sp.transform.localScale; v3.x = scale; v3.y = scale; v3.z = scale; sp.transform.localScale = v3; }) //...

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

436. 使用webgl之后toDataUrl返回黑色的图像 [ 69%]

...,请参考以下代码 package { import laya.display.Sprite; import laya.events.Event; import laya.utils.Browser; import laya.utils.Stat; import laya.webgl.WebGL; public class LayaAirDemo { private var sp:Sprite ; public function LayaAirDemo() { //初始化引擎 Laya.init(Browser.width, Browser.h...

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

437. 使用 Laya.loader 加载 .fnt 文件的BUG [ 69%]

...用 Laya.loader 以 Loader.FONT 类型加载 .fnt 文件 会无限抛出 Event.PROGRESS 事件卡在50%进度。 因为我想看源码,所以我用的是最后一个能看源码的版本2.1.2,我不知道后面的版本有没有修复,源码是: 问题应该出在 data._source 没有赋值...

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

438. 分享一个自己做的游戏公告功能,跑马灯效果 [ 68%]

...5,150) this._createHorn() this._createBg() this._createView() this.on(Laya.Event.UNDISPLAY,this,this.stop) this.on(Laya.Event.DISPLAY,this,this.play) } /** 创建滚动区域 */ _createView() { this.hornBox = new Box() let _rectangle = new Laya.Rectangle(0,0,this.defaultX,55) this.hornBox.scrollRect...

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

439. 新手引导在ios浏览器表现异常 [ 68%]

...ode = Laya.Stage.SCREEN_NONE;             Laya.stage.on(Laya.Event.RESIZE, this, this.windowResized);         }         windowResized(){             let sp = new Laya.Sprite();             sp.graphics.drawRect(0,0,Laya.stage.width,Laya.stag...

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

440. laya.d3.core.light.PointLight_API3.0 [ 68%]

...ve addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on on...

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