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

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

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

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

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

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

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

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

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

224. 如何自定义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

225. 在微信小游戏中,主域中显示开发域的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

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

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

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

227. 像素线 · LayaAir3.0文档 · LAYABOX [ 52%]

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

228. 写了个边缘光的自定义shader,有很多问题,帮忙看一下 [ 51%]

...。修改下CustomMaterial.js function CustomMaterial() { CustomMaterial.__super.call(this); this.setShaderName("CustomShader"); } Laya.class(CustomMaterial, "CustomMaterial", Laya.BaseMaterial); CustomMaterial.DIFFUSETEXTURE = 1; CustomMaterial.prototype.getDiffuseTexture = function () { return thi...

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

229. 位图字体的制作与使用(TypeScript-LayaAir基础篇(TS)-文本) [ 51%]

...册的字体起个名 private fontName: string = "diyFont"; constructor() {super();} onAwake(): void { //加载位位图字体 this.loadBitmapFont(); } /** * 实例化位图字体类,并加载位图字体 */ loadBitmapFont(): void { let bitmapFont: Laya.BitmapFont = new Laya.BitmapFont(); bitmapFo...

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

230. list ,增加item ,我想在末尾增加,但是每次都给我翻倍的增加,如何解决 [ 51%]

...E_DOWN, this, function (e) { list.addItem(1); }); function Item() { Item.__super.call(this); this.size(416, 270); this.text = new Text(); this.text.fontSize = 20; this.text.pos(12, 5); this.text.color = "#FF00FF"; this.text.zOrder = 1; this.addChild(this.text); this.setImg = function(data) { var aar...

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