大约有 1,215 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0061 秒)
Laya_社区(675) Laya3.0_api(153) laya_api(104) Laya2.0_api(96) Laya2.0_文档(63) Laya2.0_示例(44) Laya_示例(42) Laya3.0_文档(38)
...按钮,会显示下一层界面,同时隐藏自己 this.btnFirst.on(Laya.Event.CLICK, this, this.change, [0]); //点击上面一层的按钮,会隐藏该层,同时显示上一层 this.btnChange.on(Laya.Event.CLICK, this, this.change, [1]); //初始时默认上面一层不可见 this.layoutSeco...
来源: Laya_社区 发布时间: 20180810
...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
...oid { // Button添加鼠标事件,让Image不显示 this.Button.on( Laya.Event.MOUSE_DOWN, this, ()=>{ this.Image.visible = false; }); } 运行此场景来看看效果,如动图2-7所示。 (动图2-7) UI组件脚本就已经介绍完了,再复杂的UI都可以通过勾选组件声明...
来源: Laya3.0_文档 发布时间: 20251010
... 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
...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
...,请参考以下代码 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
...用 Laya.loader 以 Loader.FONT 类型加载 .fnt 文件 会无限抛出 Event.PROGRESS 事件卡在50%进度。 因为我想看源码,所以我用的是最后一个能看源码的版本2.1.2,我不知道后面的版本有没有修复,源码是: 问题应该出在 data._source 没有赋值...
来源: Laya_社区 发布时间: 20200602
...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
...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
...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