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

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

131. laya.d3.core.pixelline.PixelLineSprite3D_API3.0 [ 77%]

...器。功能同Laya.timer.clearTimer()。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void clone clone(): Node Inherited from RenderableSprite3D.clone Defined in laya/d3/core/Sprite3D.ts:300 克隆。 Returns Node 克隆副本。 contains contains(n...

来源: Laya3.0_api 发布时间: 20231115

132. 关于js继承类class的参数问题 [ 77%]

...{      *     function Item(){      *         Item.__super.call(this);//初始化父类      *         this.graphics.drawRect(0, 0, 100, 20, "#ff0000");      *         var label = new laya.ui.Label();//创建一个 Label 类的实例对象 label 。      *         lab...

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

133. 升级2.0以后,部分浏览器的兼容性很差 [ 77%]

...ne { constructor() { super(); } createChildren() { super.createChildren(); this.loadScene("test/TestScene"); } } UC指这行报错,这个都是编译后的代码 addScore(value = 1) { this._score += value; this.scoreLbl.changeText("分数:" + this._score); if (this._control.c...

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

134. 在Laya2上 getGraphicBounds获取失败 [ 76%]

...8-11-19 10:53 浏览: 1979 关注: 2 人 忽啊忽啊 • 2018-11-21 13:59 this.sp = new Laya.Sprite(); this.sp.loadImage("Attack_0_0002.png", Laya.Handler.create(this, (data)=>{ this.sp.graphics.drawTexture(this.sp.texture); var bounds = this.sp.getGraphicBounds(true); })); 这样绘...

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

135. 我想在拖动startDrag时,根据X的值助理其它的业务 [ 76%]

...解决了,谢谢你了 这样才行! public get x(): number { return this._x; } public set x(value: number) { this._x = value; this.event(XYImage.SPRITE_PROPERTY_CHANGE, { "x": this._x }); } Monica • 2017-11-01 12:15 好的,多谢分享。有问题再联系~

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

136. 对接上架字节跳动小游戏技术指南(TypeScript-小游戏适配文档-字节跳动小游戏) [ 75%]

...rivate _videoPath: String = ""; constructor() { GameRecorderMgr.instance = this; //判断是否已初始化录屏对象 if (!this._recorder) { //判断是否为字节小游戏环境 if (Browser.onTTMiniGame) { //初始化录屏对象 this._recorder = tt.getGameRecorderManager(); } } } static get ins...

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

137. Laya中Button等组件lose skin的问题 [ 75%]

...hangeClips。 __getset(0,__proto,'skin',function(){         return this._skin;         },function(value){         if (this._skin !=value){             this._skin=value;             this.callLater(this.changeClips);             this._setStat...

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

138. Laya.HttpRequest 没有调用回调方法? [ 75%]

...; xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.on(Event.PROGRESS,this,processHandler); xhr.send("https://www.baidu.com/","","get","text"); function processHandler(data){ console.log(data); console.log("11...

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

139. 关于js继承类class的参数问题 [ 75%]

...{      *     function Item(){      *         Item.__super.call(this);//初始化父类      *         this.graphics.drawRect(0, 0, 100, 20, "#ff0000");      *         var label = new laya.ui.Label();//创建一个 Label 类的实例对象 label 。      *         lab...

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

140. 如何在3D旋转中使用缓动 Laya.Tween.to()?官方示例我看过,不是旋转 [ 75%]

...动 Laya.Tween.to()? 我看过官方示例,不是旋转 Laya.Tween.to(this.camera.transform.localRotationEuler, { x: _vector3.x, y: _vector3.y, z: _vector3.z + (20 * Math.PI / 180) }, 500); 2017-08-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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