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

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

881. LayaAir编译器错之for_in [ 69%]

...dedMap)             {                 var t:Texture = null;                 if(Loader.loadedMap[i] is Texture)                 {                     t=Loader.loadedMap[i];                     t.destroy();            ...

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

882. 为什么mc取得的时候有时候mc.getBounds().width;有值有时候是0 [ 69%]

...dth问题 跳转场景后laya.core.js就报Cannot read property 'width' of null的错误 IDE打开某个场景时弹处弹框报错:对[Dialog]的texture属性赋值时遇错误:cannot read property 'width' of null 问题状态 最新活动: 2016-12-27 22:23 浏览: 1478 关注: 2 人 c416288806...

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

883. 3D模式下使用Tween使模型移动如何写法 [ 69%]

...th.PI/2,0)); //移动鱼 Laya.Tween.to(fish,{x:-1},3000,Laya.Ease.linearIn,null) 这个Laya.Tween.to(fish,{x:-1},3000,Laya.Ease.linearIn,null)是不是写错了。。。应该怎么写啊。假设我要移动他到x为-1.z为-1 2017-09-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

884. FontChip不能显示 [ 69%]

...行          */         public function FontClip(skin:String = null, sheet:String = null) { 2018-04-16 1 1 分享 微博 QZONE 微信 w1114367261 赞同来自: 你没有设置FontClip的内容哦(sheet) 2018-04-16 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折...

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

885. [LayaNative3]LayaNative在安卓上播放音效后会一直输出报错日志 [ 69%]

...prototype["onPlayAgain"] = function onPlayAgain(): void { if (this._ele == null) { console.warn(`HTMLAudioChannel.onPlayAgain _ele is null, url=${this.url}`); return; } return window["Laya.HTMLAudioChannel.onPlayAgain"].call(this); } 你可以试试暂时重写这个方法 等修复了再注释调 ...

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

886. 多次用Laya.Scene.load加载同名的.ls场景,返回是同一个 [ 69%]

...注意:不缓存 然而它的实现调用的是 Laya.loader.create(url, null, null, Scene); 但是create的第7个参数,cache默认是true。   也就是说Laya.Scene.load的注释不太对。 不知道是不是这个原因,请官方答疑。 2018-09-07 0 0 分享 微博 QZONE 微信 古 赞...

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

887. laya.d3.core.pixelline.PixelLineSprite3D_API3.0 [ 69%]

...ue maxCount: number = 2 最大线段数量。 Default value name: string = null 名字。 Returns PixelLineSprite3D Properties Optional _extra _extra: INodeExtra Inherited from Node._extra Defined in laya/display/Node.ts:56 _scene _scene: Node Inherited from Node._scene Defined in laya/display/Node....

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

888. laya.utils.Tween.to的第一个参数可以是个label? [ 69%]

...c static function to(target:*, props:Object, duration:int, ease:Function = null, complete:Handler = null, delay:int = 0, coverBefore:Boolean = false, autoRecover:Boolean = true):Tween {             return Pool.getItemByClass("tween", Tween)._create(target, props, duration, ease, complete, d...

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

889. 2.0 怎么样才能将htmlcanvas 的东西 显示在texture上? [ 69%]

...接口变了, Texture 的drawto public function setTo(bitmap:Texture2D = null, uv:Array = null, sourceWidth:Number = 0, sourceHeight:Number = 0):void { 变成了Textrue2d了, 像以前1.x版本Textrue 还能用htmlcanvas,现在不能用了。而且直接强传入,会报错。 请问现在怎...

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

890. laya.particle.Particle2D_API3.0 [ 69%]

...区域滚动效果,但scrollRect会保持0,0点位置不变。 default null Returns Rectangle Inherited from Text.viewport Defined in laya/display/Sprite.ts:1885 视口大小,视口外的子对象,将不被渲染(如果想实现裁剪效果,请使用srollRect),合理使用能提高渲染...

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