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

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

1061. 为unity导出的场景种的模型添加碰撞器失败 [ 87%]

...为myCar的模型后,为该模型添加碰撞器失败。 onComplete(){ this.scene1 = Laya.loader.getRes("3D/LayaScene_map/Conventional/map.ls"); Laya.stage.addChild(this.scene1); this.myCar = this.scene1.getChildByName("myCar"); var scale = new Laya.Vector3(2, 2, 2); this.myCar.transform.localSca...

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

1062. 绘图graphics中的鼠标事件 [ 87%]

...件 在舞台上添加了好几个节点,用于存放绘图,结构是 this.box.addChild(this.data); Laya.stage.addChild(this.box) 其中鼠标事件MOUSE_DOWN点击需要获取的是this.data的内容 this.data是由一块画布,几个点构成,我用循环函数创建几个点,并且设...

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

1063. 有震屏的算法吗 [ 87%]

...= 0;    var offsetArr:Array = [0, 0];    var point:Point = new Point(this.x, this.y);    Laya.stage.timerLoop(speed, this, shakeObject);        function shakeObject(args:Array=null, frameNum:uint=1, frameTime:uint=0):void{     var count:int = (num++) % 4;     offsetArr[num % 2...

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

1064. 微信小游戏利用开放域好友关系链做排行榜 [ 87%]

...er;  class GameBootstrap{      public constructor(){         this.init();     }      private init():void{         //初始化微信小游戏         Laya.MiniAdpter.init(true);         //程序入口         Laya.init(600, 400,Laya.WebGL);   ...

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

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

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

1067. 我照着例子做的换装例子切换不了卡槽的图片,附件为我的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

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

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

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

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

1070. 下拉选项框组件 · LayaAir3.4 · 引擎文档 · 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