大约有 633 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0054 秒)
... Laya.class(Class, className, Laya.Sprite); function Class() { Class.super(this); // this定义.. this.init(); } Class.prototype.init = function() { console.log(this); }; return Class; })(); } var __extends = (this && this.__extends) || function(d, b) { for (var p in b) { (b.hasOwnProperty(p...
来源: Laya_社区 发布时间: 20170619
... public customRender(context:Laya.RenderContext,x:number,y:number):void{ this.shaderValue.iTime += this.animeValue; let webgl2d = context.ctx instanceof Laya.WebGLContext2D if( webgl2d) (context.ctx as Laya.WebGLContext2D).setIBVB( x, y, this.iBuffer, this.vBuffer, this.iNum,null, WaterFlowShader.sh...
来源: Laya_社区 发布时间: 20180712
...ttpRequest = new Laya.HttpRequest(); httpRequest.once(Laya.Event.COMPLETE, this, (data)=>{ let byte = new Laya.Byte(data); byte.writeArrayBuffer(data, 4); let blob = new Laya.Browser.window.Blob([data], {type:'image/apng'}); let url = Laya.Browser.window.URL.createObjectURL(blob); showImg.skin = ...
来源: Laya_社区 发布时间: 20190430
...;=0;i--){ obj= node.getChildAt(i); obj.removeSelf(); if(obj.name=='Guan'){ this.guans.push(obj); }else if(obj.name=='Fangkuang'){ this.fangkuangs.push(obj); }else if(obj.name=='Cylinder'){ this.cylinders.push(obj); }else{ console.log('recycle loser'); } } } 开心@me • 2019-11-21 10:51 2.1.1.1版...
来源: Laya_社区 发布时间: 20191119
...是不可以挂载到3d场景的子节点上的,会报 Uncaught TypeError: this.owner.localToGlobal is not a function TypeError: this.owner.localToGlobal is not a function 这个错误. 如果可以用2D引擎挂载到3D物体上,也是可以解决我现在的问题,如果这个方面可以有解决...
来源: Laya_社区 发布时间: 20190714
...ader.prototype.skipType = function(wireType) { switch (wireType) { case 0: this.skip(); break; case 1: this.skip(8); break; case 2: this.skip(this.uint32()); break; case 3: do { // eslint-disable-line no-constant-condition if ((wireType = this.uint32() & 7) === 4) break; this.skipType(wireType);...
来源: Laya_社区 发布时间: 20191202
...,这个2d物理系统无法挂载到3d场景中,会报 Uncaught TypeError: this.owner.localToGlobal is not a function TypeError: this.owner.localToGlobal is not a function, 2d的实现似乎并不是3d忽略一个轴这样的方式,它们是不同的坐标系统,所以不通用,而我这边需要用...
来源: Laya_社区 发布时间: 20190714
....js应该怎么写??我这样写set的时候报错 Uncaught TypeError: this._setValue is not a function at CustomMaterial.setAlphaTestValue (CustomMaterial.js:34) at LayaAir3D.js:94CustomMaterial.setAlphaTestValue @ CustomMaterial.js:34 (anonymous) function CustomMaterial() { CustomMateria...
来源: Laya_社区 发布时间: 20170526
...存 用了cacheAs 不起作用 zhengjiajia • 2017-09-13 20:05 @Monica: this.itemSpr.cacheAs = 'normal'; this.itemSpr.cacheAsBitmap = false; 为何这样设置 在报错的时候 发现这两个属性完全不正确呢 zhengjiajia • 2017-09-13 20:09 @Monica:this.itemSpr = new Laya.Sprite; this.it...
来源: Laya_社区 发布时间: 20170913
...好了。自问自答,希望有用。 Laya.stage.on(Laya.Event.RESIZE, this, this.resize); static resize(): void { // let w = this.config.width; // let h = this.config.height; // let screen_wh_scale = Laya.Browser.clientWidth / Laya.Browser.clientHeight; // if (Laya.stage.scaleMode == Laya.S...
来源: Laya_社区 发布时间: 20200520