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

大约有 4,102 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0078 秒)

1061. laya接入vivo平台加载资源卡住66% [ 87%]

...wser.onVVMiniGame) {// _http = new HttpRequest(); _http.on(Event.PROGRESS, this, onProgress); _http.on(Event.ERROR, this, onError); _http.on(Event.COMPLETE, this, onLoaded); ////////////////////////////////////////////////////// } else { //...... } 已解决。 2020-11-23 0 0 分享 微博 QZONE 微...

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

1062. ComboBox属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 87%]

...de = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(this.skin, Handler.create(this, this.onLoadComplete)); } private onLoadComplete(): void { var cb: ComboBox = this.createComboBox(this.skin); cb.autoSize = true; cb.pos((Laya.stage.width - cb.width) / 2, 100); cb.autoSize = fa...

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

1063. 我照着例子做的换装例子切换不了卡槽的图片,附件为我的demo,请帮忙看看 [ 87%]

...子切换不了卡槽的图片,附件为我的demo,请帮忙看看 if (this.currTexture && Render.isWebGL && this.currDisplayData.type==0 && this.currDisplayData.uvs){ this.currTexture=this.currDisplayData.createTexture(this.currTexture); } 跟代码发现this.currDisplay...

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

1064. 新版本射线检测不能根据layer检测了 [ 87%]

...有根据layer层 目前是只能给所有碰撞器分组来检测吗? _this.scene.physicsSimulation.rayCast(_this.ray, _this._outHitResult,_this._distance,_this._collisionGroup); 2019-04-19 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

1065. List中如何动态加载多个image,并为每个image添加监听事件? [ 87%]

...监听事件? var Index=(function(_super){ function Index(){ Index.super(this); this.data = ["1tong","2tong","3tong","4tong","5tong","6tong","7tong","8tong","9tong","1tiao","2tiao","3tiao","4tiao","5tiao"]; var _dataSource_=[]; for(var i = 0;i<this.data.length;++i) { var _data_={ skin:"Images/"...

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

1066. 下拉选项框组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 87%]

...和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.combobox.pos(100, 100); this.combobox.labels = "item0,item1,item2,item3,item4,item5,item6,item7"; this.combobox.labelColors = "#32556b,#32cc6b,#ff0000"; this.combobox.itemHeight = 60; // itemColors格式:"悬停或被选...

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

1067. 3D粒子特效初始化卡顿 [ 87%]

...有解决方案,以下为示例代码: var sprite= Laya.loader.getRes(this._stlurl) as Laya.Sprite3D; this.skill = Laya.Sprite3D.instantiate(sprite); target.addChild(this.skill); this.Play();   这种卡顿在PC谷歌浏览器上不明显,但手机上就很明显了,另外在IDE的layaair...

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

1068. TypeError: Cannot set property 'material' of undefined [ 87%]

TypeError: Cannot set property 'material' of undefined this.unit3D = Laya.Loader.getRes("Unity/Unit.lh") as Laya.MeshSprite3D; this.scene3D.addChild(this.unit3D);         this.unit3D.transform.localScale = new Laya.Vector3(1, 1, 1); this.unit3D.transform.translate(new Laya.Vector3(0, 0, 0))...

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

1069. Native IOS下获取陀螺仪数据为0 [ 87%]

... //设置陀螺仪的处理 Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, this.onOrientationChange);   private onOrientationChange(absolute:Boolean, info: Laya.RotationInfo):void         {             if (info.alpha === null)             {               ...

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

1070. [LayaAir3]Laya.Slider 的结束拖拽的事件监听 怎么写, [ 87%]

...lider节点上添加下面这段脚本     onAwake(): void {         this.owner.bar.on(Laya.Event.MOUSE_UP, () => {             console.log("aaa");         })     } 2025-07-11 0 1 分享 微博 QZONE 微信 Archangelᴱᴿᴵᑦ 赞同来自: this.owner.on(Laya.Event.CHANGE, thi...

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