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

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

661. 3D场景中背景透明 [ 81%]

...脚本类里,入口的Main已经有画布的初始化了,   第二,new Config3D,不是new Laya.Config3D,   你把你在chuanglian1.js里的这段删除 //1.开启第四个参数 let config3D = new Laya.Config3D(); config3D.isAlpha = true; Laya3D.init(0, 0, config3D); Laya.stage.scaleMode...

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

662. drawCallOptimize与滤镜同时使用时文本显示异常 [ 81%]

...drawCallOptimize = true;                  let text1 = new Laya.Text();         text1.text = "ceshi1";         Laya.stage.addChild(text1);         text1.fontSize = 40;         text1.x = 280;         text1.y = 180;         l...

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

663. ScrollRect设置会引起其他的UI资源无法正在显示 [ 81%]

...:Number = 120.0; private var speed:Number = 15; private var _path:Sprite = new Sprite(); private var arr:Array = []; public function TestView() { super(); _path.pivot(0,0); _path.pos(a.x,a.y); this.addChild(_path); _path.rotation = Math.atan2(b.y - a.y, b.x - a.x) / Math.PI * 180; var len:int = Math...

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

664. tiledMap问题,getTileProperties获取地图属性不能获取到 [ 81%]

...p: Laya.TiledMap; constructor(){ super(); Laya.loader.create(this.MAP_URL, new Laya.Handler(this, this.onComplete)) }  private onComplete(){ this.map = new Laya.TiledMap(); this.map.createMap(this.MAP_URL, new Laya.Rectangle(0,0,Laya.stage.width, Laya.stage.height), new Laya.Handler(this, this.onMa...

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

665. [LayaAir3]Laya3.3.5 2D相机drawToRenderTexture2D不生效问题 [ 81%]

...Start() {         console.log("Game start");         let render1 = new Laya.Sprite();         let render2 = new Laya.Sprite();          let tex1 =  this.testSprite.drawToRenderTexture2D(200,200,0,0);         let tex2 =  this.testSprite2.drawToRenderTexture2D(200,200,0,0);   ...

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

666. clas not a constructor [ 81%]

...tructor 使用GlowFilter的时候报错: GlowFilter is not a constructor new Laya.TiledMap()提示错误:Laya.TiledMap is not a constructor 报错,这不是个构造函数 "StartPage is not a constructor" LayaAir新建3D示例项目,在as开发模式下,运行报错 TypeError: Vector3 is n...

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

667. DirectionLight介绍(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 81%]

... ```typescript //创建方向光 this.directionLight = this.scene.addChild(new Laya.DirectionLight()); //设置灯光颜色 this.directionLight.color = new Laya.Vector3(1, 1, 1); //设置灯光方向 var mat = this.directionLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(-1.0, -1.0, -1....

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

668. Laya 绑定显示内容到骨骼动画 [ 81%]

... let index:number=this.__bindList.indexOf(source); if(index<0){ throw new Error("找不到要删除的绑定内容"); } this.removeChild(source); this.__bindList.splice(index,1); }  private __updateBinds():void{ let source:BindSource; let position:Laya.Point=Laya.Point.create(); for(let i...

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

669. worker的问题 [ 81%]

...档里的方法写了一个js文件,在AS3脚本里加入 var worker:* = new Browser.window.Worker("my_task.js"); 执行时总是报错,加载不了my_task.js这个文件,是为什么呢? [warn]Retry to load: D:/LayaBox/1219/bin/h5/my_task.js [error]Failed to load: D:/LayaBox/1219/bin/h5/my_...

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

670. viewport 的用法 [ 81%]

...   this.graphics.drawRect(0,0,200,200,'#123456');       var viewPort = new Rectangle(0,0,200,200);             this.viewport = viewPort;       var ccc = new Sprite();       ccc.graphics.drawRect(0,0,50,50,'#123000');       this.addChild(ccc);       //ccc.x = -30   }  Laya.cla...

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