大约有 2,994 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0073 秒)
Laya_社区(2435) Laya2.0_文档(172) Laya3.0_api(101) Laya_示例(79) Laya3.0_文档(70) Laya2.0_api(55) laya_api(42) Laya2.0_示例(40)
... this.camera.sky = this.skyBox; this.skyBox.textureCube = Laya.TextureCube.load("skyBox/skyCube.ltc"); this.camera.addComponent(VRCameraMoveScript); this.ray = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); this.point = new Laya.Vector2(); this._outHitInfo = new Laya.RaycastHit(...
来源: Laya_社区 发布时间: 20170323
...; //加载图集资源,加载成功后将UI界面添加到舞台上 Laya.loader.load("./res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //实例化导出的UI类 var efc = new ui.TestPUI(); //添加到舞台 Laya.stage.addChild(efc); } ``` 运行后,按钮被按...
来源: Laya2.0_文档 发布时间: 20210715
...tor3 setVector3ByIndex setVector4 setVector4ByIndex destroyUnusedResources load Constructors constructor new PixelLineMaterial(): PixelLineMaterial Overrides Material.constructor Defined in laya/d3/core/pixelLine/PixelLineMaterial.ts:36 创建一个 PixelLineMaterial 实例。 Returns PixelLineMater...
来源: Laya3.0_api 发布时间: 20231115
...HOWALL; //背景颜色 Laya.stage.bgColor = "#232628"; //加载资源 Laya.loader.load(this.skins, Handler.create(this, onSkinLoadComplete)); /***加载资源完成***/ function onSkinLoadComplete(e) { //创建垂直滚动条 createVScroller(); } /***创建水平滚动条***/ function createVScrolle...
来源: Laya2.0_文档 发布时间: 20210715
...HOWALL; //背景颜色 Laya.stage.bgColor = "#232628"; //加载资源 Laya.loader.load(skin, Handler.create(this, onLoadComplete)); } /***加载资源完成***/ private function onLoadComplete(e:*=null):void { //实例化下拉列表 comboBox= new ComboBox(skin, "item0,item1,item2,item3,item4,item5"...
来源: Laya2.0_文档 发布时间: 20210714
... MsgMgr.instance.init(); Laya.timer.once(1000,this,function():void{ beginLoad(); }); private function beginLoad():void { Laya.loader.load("res/images/rank.json", Handler.create(this, onLoaded)); } private function onLoaded():void { trace("加载成功"); var c:Image = new Image("rank/country.png"); ...
来源: Laya_社区 发布时间: 20180830
...//D:/layaTest/mylaya/bin/libs/laya.d3.js:19610:21) at Avatar.__proto.onAsynLoaded (file:///D:/layaTest/mylaya/bin/libs/laya.d3.js:19652:10) at ResInfo.onLoaded (file:///D:/layaTest/mylaya/bin/libs/laya.core.js:12397:61) at EventHandler.__proto.runWith (file:///D:/layaTest/mylaya/bin/libs/laya.core.j...
来源: Laya_社区 发布时间: 20171017
...; //加载图集资源,加载成功后将UI界面添加到舞台上 Laya.loader.load("./res/atlas/ui.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //实例化导出的UI类 var efc:ui.EffectAnimationDemoUI = new ui.EffectAnimationDemoUI(); //添加到舞台 Laya.stage...
来源: Laya2.0_文档 发布时间: 20210715
...才发现 LAYA 真的太太太太好用了!!!! 分享:LayaAir下Loading进度条的制作(ActionScript 3.0) sprite旋转以后,但是原来碰撞检测rect没有旋转 请问有没有方法能够获取“鼠标是否处于按下状态”? Layabox 2.0 bate5 运行编译之后 bundle...
来源: Laya_社区 发布时间: 20180824
...init(1024, 768, WebGL); Stat.show(0, 0); Laya.stage.bgColor = "#fff"; Laya.loader.load("assets/images/color1.png", Handler.create(this, __loadImageHandler)); } private function __loadImageHandler():void { _colorSpr = new Sprite(); _colorTex = Laya.loader.getRes("assets/images/color1.png"); _colorSpr...
来源: Laya_社区 发布时间: 20180302