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

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

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

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

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

382. 仿照laya官方demo做了一个视频播放的UI,为啥在微信里不能用? [ 52%]

...DE*/ module view { export class Guide extends ui.GuideUI { constructor() { super(); // 创建Video元素 let videoElmt: any = Laya.Browser.createElement("video"); Laya.Browser.document.body.appendChild(videoElmt); // 设置Video元素地样式和属性 videoElmt.style.zInddex = Laya.Render.canvas.st...

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

383. laya加载unity插件导出的场景 physics3D is not a function [ 52%]

... export default class GameUI extends ui.test.TestSceneUI { constructor() { super();       //添加3D场景 Laya.Scene3D.load("res/Conventional/SimpleTown_DemoScene.ls",Laya.Handler.create(this,function(s:Laya.Scene3D):void{ var scene = s; Laya.stage.addChild(scene); //创建摄像机(横纵比,...

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

384. 写了个边缘光的自定义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

385. 3D中摄像机绕物体旋转该如何实现? [ 51%]

...d targetDistance: number; //protected camera: Laya.Camera; constructor() { super(); } public transform: Transform3D; onStart(): void { this.transform = (this.owner as Laya.Sprite3D).transform; this.CurrentAngles = new Vector3(-this.transform.rotationEuler.x, this.transform.rotationEuler.y, 0); this....

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

386. dialog 里的数据已经获取到了,也赋值了但是页面没跟新,addChild好像无效果 [ 50%]

...xt } // console.log(); } } console.log('+++++++++++++++++++') console.log(_super); console.log(fooddata); self.foodList.dataSource = fooddata;  //实例化角色容器 var foodBox = new Laya.Sprite(); //添加到舞台上 console.log(self.foodBox); Laya.stage.addChild(foodBox); self.foodBox = foodd...

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

387. 抖音小游戏 · LayaAir3.4 · 引擎文档 · LAYABOX [ 50%]

...; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { //小游戏加载分包 Laya.loader.loadPackage("sub1", this.printProgress).then(() =&g...

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

388. 怎么实现同一个工程内分包? [ 50%]

...tJS; public class LoginView extends Sprite { public function LoginView() { super(); addEventListener(Event.ADDED_TO_STAGE, init); } private function init(e:Event = null):void { importJS("homeModule.js", homeModuleComplete); //导入包文件 "homeModule.js" } private function homeModuleComplete():vo...

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

389. 3D场景中背景无法透明,版本2.7.1 [ 50%]

...是黑色 export default class GameUI extends Laya.Scene { constructor() { super(); Config.isAlpha = true; Laya.init(480, 900); Laya.stage.bgColor = null; //加载场景文件 this.loadScene("test/TestScene.scene"); //添加3D场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //添加照相...

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

390. 对游戏中各种控件字体样式使用“白鹭style”样式表 [ 50%]

...以确保控件已经创建完毕的。)[i]protected initialize(): void { super.initialize(); this._txUserName["fontStyle"] = "default_1"; // let tf: TextFormat = new TextFormat(); // tf.color = "#ffff00"; // tf.fontSize = 30; // tf.stroke = 2; // tf.strokeColor = "#000000"; // this._txUserName["fon...

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