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

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

2751. Cannot read property 'toDefault' of undefined报错是什么原因 [ 43%]

... 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

2752. 动效模板(JavaScript-LayaAir基础篇(JS)-动画基础) [ 43%]

...; //加载图集资源,加载成功后将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

2753. laya.d3.core.pixelline.PixelLineMaterial_API3.0 [ 43%]

...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

2754. VScrollBar属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 43%]

...HOWALL; //背景颜色 Laya.stage.bgColor = "#232628"; //加载资源 Laya.loader.load(this.skins, Handler.create(this, onSkinLoadComplete)); /***加载资源完成***/ function onSkinLoadComplete(e) { //创建垂直滚动条 createVScroller(); } /***创建水平滚动条***/ function createVScrolle...

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

2755. ComboBox属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 43%]

...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

2756. 小游戏子域程序加载到图集后,取图集内资源报错。 [ 43%]

... 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

2757. unity导出的场景.ls加载到laya3d中报错 [ 42%]

...//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

2758. 动效模板(TypeScript-LayaAir基础篇(TS)-动画基础) [ 42%]

...; //加载图集资源,加载成功后将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

2759. 使用layabox开完游戏后,部署完成以后怎么获取到QQ玩一玩里面的全局变量BK和GameStatusInfo,有接入过的兄弟分享下laya引擎层怎么跟原生层玩一玩数据通信嘛? [ 42%]

...才发现 LAYA 真的太太太太好用了!!!! 分享:LayaAir下Loading进度条的制作(ActionScript 3.0) sprite旋转以后,但是原来碰撞检测rect没有旋转 请问有没有方法能够获取“鼠标是否处于按下状态”? Layabox 2.0 bate5 运行编译之后 bundle...

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

2760. 帮忙看看Texture类getPixels内存泄漏的问题。 [ 42%]

...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