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

大约有 367 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0067 秒)

161. 粒子-粒子演示3 [ 61%]

...候,回调函数传入的参数不再是资源,可以通过以下方法获取资源 // let settings = Laya.loader.getRes(partPath); const Particle2D = Laya.Particle2D; // 创建 Particle2D 实例 let partIns = new Particle2D(settings); Laya.stage.addChild(partIns); // 开始发射粒子 partIns....

来源: Laya2.0_示例 发布时间: 20241001

162. 关于创建Sprite获取大小 [ 61%]

关于创建Sprite获取大小 发现个奇怪的问题,new Laya.Sprite().loadImage() 创建的对象大小不是图像大小,然后用getBounds获取也拿不到真实的大小?    这个建议官方改下接口,理论上width和height用来检测碰撞,那你看到的就应该是碰...

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

163. 背景音乐播放完毕要等很久才开始循环播放,版本1.7.17 [ 61%]

...rn SoundChannel对象,通过此对象可以对声音进行控制,以及获取声音信息。          */         public static function playMusic(url:String, loops:int = 0, complete:Handler = null, startTime:Number = 0):SoundChannel { 你的参数传入是否正确那? 或者能否...

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

164. 资源加载后的 回调 [ 61%]

...复 Monica - 知识达人 赞同来自: ysshao 你用Laya.loader.getRes()获取下这个资源,如果返回的不是undefined的话你手动调一下loadselectanimation这个函数即可 2017-11-04 1 0 分享 微博 QZONE 微信 ysshao 赞同来自: Laya.loader.getRes(),里面的 参数怎么写...

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

165. laya.html.dom.HTMLDivElement_API3.0 [ 61%]

...且不会随着绘制内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 hitTestPrior hitTestPrior: boolean = false Inherited from AnimationBase.hitTestPrior Defined in lay...

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

166. laya.ui.UIComponent_API3.0 [ 61%]

...且不会随着绘制内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 hitTestPrior hitTestPrior: boolean = false Inherited from Text.hitTestPrior Defined in laya/display...

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

167. laya.map.GridSprite_API3.0 [ 61%]

...且不会随着绘制内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 drawImageNum drawImageNum: number = 0 Defined in laya/map/GridSprite.ts:25 当前GRID包含多少...

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

168. laya.physics.PhysicsDebugDraw_API3.0 [ 61%]

...且不会随着绘制内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 hitTestPrior hitTestPrior: boolean = false Inherited from Text.hitTestPrior Defined in laya/display...

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

169. laya.media.VideoNode_API3.0 [ 61%]

...且不会随着绘制内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 hitTestPrior hitTestPrior: boolean = false Inherited from Text.hitTestPrior Defined in laya/display...

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

170. laya.map.MapLayer_API3.0 [ 61%]

...且不会随着绘制内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 hitTestPrior hitTestPrior: boolean = false Inherited from Text.hitTestPrior Defined in laya/display...

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