大约有 633 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0048 秒)
...ect的问题 您好!我用的Laya2.0版本, 用Laya.WeakObject,会报this._obj.set is not a function。 也就是WeakObject的 __proto.set函数的 this._obj.set( objKet, value ); 这条语句报错了。。。。 但在new Laya.WeakObject之前, 加上 laya.utils.We...
来源: Laya_社区 发布时间: 20190502
...6 09:01 浏览: 2170 关注: 2 人 昵称syy的是猪 • 2019-07-17 12:02 this.drawToTexture is not a function这个this继承自Laya.Scene 1567516014用户 • 2019-09-03 21:23 没有 drawToTexture 这个方法
来源: Laya_社区 发布时间: 20190715
...会抖动 官网案例运动起来也会抖动。 部分代码: this.characterController = this._tempVirtualMoveGo.addComponent(Laya.CharacterController); let sphereShape = new Laya.CapsuleColliderShape(0.5, 1); sphereShape.localOffset = new Laya.Vector3(0, 0.3, 0); this.characterControll...
来源: Laya_社区 发布时间: 20190626
... { var _canvas:* =this.drawToCanvas(this.width,this.height,0,0); var base64:* = _canvas._canvas.source.toDataURL(); return base64; } 附件 : --> 2017-04-01 添...
来源: Laya_社区 发布时间: 20170401
...ya.Sprite3D; scene.addChild(temp); temp.on(Laya.Event.HIERARCHY_LOADED,this,()=> { this.model = Laya.MeshSprite3D.instantiate(temp,scene) as Laya.MeshSprite3D; if(index == 0) { this.model.transform.position = new Laya.Vector3(0.8,0,0); } }); //===================报错=====...
来源: Laya_社区 发布时间: 20180827
...selectEnable = true; list.selectHandler = new Handler(this, this.onSelect); list.renderHandler = new Handler(this, this.updateItem); // 设置数据项为对应图片的路径 var data: Array<String>...
来源: Laya_社区 发布时间: 20210122
...代码 export default class TestView { constructor() { this.init(); } init() { Laya.stage.bgColor='#ffffff'; Laya.stage.addChild(new Laya.Image('comp/img/img1.png')); Laya.timer.once(1000, this, this.delayShow); } delaySho...
来源: Laya_社区 发布时间: 20230419
...ersion.enable( "version.json?" + Math.random(), Handler.create(this, this.onVersonLoaded)); 然而发布的游戏启动后发现加载失败,查看日志发现加载的URL拼得不对: 它加载使用的路径是一个奇怪的: http://localhost/h5/res/atlas/ui/sharedcpf27ce0...
来源: Laya_社区 发布时间: 20180115
...,且设置了var为mydiv,然后在代码中 var myChart = echarts.init(this.mydiv);进行echarts的初始化时,报: [ts] Argument of type 'HTMLDivElement' is not assignable to parameter of type 'HTMLDivElement | HTMLCanvasElement'. Type 'HTMLDivElement' is not assignable to type 'HTMLCanvas...
来源: Laya_社区 发布时间: 20170721
... XSprite extends Sprite 3 new出这个对象 将对象addChild到TestUI里 this.addChild(xSprite); 4 然后设置xSprite.x = 100; xSprite.y = 200; 5 然后再XSprite这个类里将XY复写比如 public set x(val: number) { this._x = val; } public get x(): number { return this._x; } public set y(val:...
来源: Laya_社区 发布时间: 20180226