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

大约有 283 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0048 秒)

221. 加载的时候动画会卡 [ 52%]

...e));     }   (function() {     function Lload() {         Lload.__super.call(this);         this.dh();         this.btn.on(Event.MOUSE_DOWN,game,this.toquanjing);         Laya.propertyIsEnumerable = true;     }     Laya.class(Lload,"Lload",ui.loadUI);     Lload.prototype.d...

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

222. 3d显示对象克隆体超出舞台不再显示的bug2.1.0.btea1 [ 52%]

...(-0.05, 0, 0); translateD = new Laya.Vector3( 0.05, 0, 0); constructor() { super(); //添加3D场景 var scene: Laya.Scene3D = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D; this.scene3d = scene; //添加照相机 var camera: Laya.Camera = (scene.addChild(new Laya.Camera(0, 0.1, 100))) as ...

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

223. 怎么清理掉 Sprite3D 相关的缓存资源, 资源destroy后内存还下降、。 [ 52%]

...        effect3D = null;             }             super.destroy(true);             Laya.loader.clearRes(this._path);         } 画红框的区域还在内存里。。 https://ask.layabox.com/question/14807     。。 附件 : --> 2018-05-17 添加评论 免...

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

224. 在微信小游戏中使用list,兼听不到mouseHandler跟selectHandler。 [ 52%]

...mage = Laya.Image;   var WID = 373, HEI = 85;   function Item() { Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img);   this.setImg = function(src) { this.img.skin = src; } } Laya.class(Item, "Item", Box);   // 主要逻辑代码 var Stage   = Laya.St...

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

225. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 52%]

... = "data";         constructor(decorate?:Decorate) {             super();             this.mDecorate = decorate || new Decorate(this);             this.pomelo = new Pomelo();             this.configuration();         }         /** 配置*/         private conf...

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

226. 如何自定义Shader(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 52%]

...script export class CustomMaterial extends Laya.Material { constructor() { super(); //设置本材质使用的shader名字 this.setShaderName("CustomShader"); } } ``` #### 4.使用自定义材质 ​ 在使用自定义材质之前,一定要记得初始化自己的Shader。LayaAir中自带的材质...

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

227. UNITY导出的模型旋转不了 [ 52%]

...; })(this); class BoxControlScript extends Laya.Script3D { constructor() { super(); this.obj = null; this.rotation = new Laya.Vector3(0, 1, 0); } /** * 覆写3D对象组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake() { //得到3D对象 th...

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

228. 在微信小游戏中,主域中显示开发域的list为什么显示不全? [ 52%]

...mg: Laya.Image;         //private text: Laya.Label; constructor(){ super(); this.size(Item.WID, Item.HEI); this.img = new Laya.Image();             //this.text = new Laya.Label(); this.addChild(this.img);             //this.addChild(this.text); } public setImg(src: st...

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

229. Laya List给子元素添加事件后,滚动事件被劫持了 [ 51%]

...问题 export default class StoreItem extends Laya.Box { constructor() { super(); this.size(195, 210); }  } 附件 : --> ListDemo.zip 2019-07-11 添加评论 已悬赏10元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 Another 赞同...

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

230. 像素线 · LayaAir3.0文档 · LAYABOX [ 51%]

...name 名字。 */ constructor(maxCount: number = 2, name: string = null) { super(name); this._render = this.addComponent(PixelLineRenderer); this._geometryFilter = (this._render as PixelLineRenderer)._pixelLineFilter; (this._render as PixelLineRenderer).maxLineCount = maxCount; let material = this._...

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