大约有 341 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0076 秒)
...oid { //如果子弹超出屏幕,则移除子弹 if ((this.owner as Laya.Sprite).y < -10) { this.owner.removeSelf(); } } onDisable(): void { //子弹被移除时,回收子弹到对象池,方便下次复用,减少对象创建开销 Laya.Pool.recover("bullet", this.owner); } } 在游戏中...
来源: Laya3.0_文档 发布时间: 20250103
...什么? 已上传 Demo 附件 TS项目使用matter.js库无智能提示 sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale 分享:自定义事件派发与侦听(A页面派发 B页面侦听) LayaAirIDE下如何使用mask? 微信小游戏:HTMLDivElement的使用 ...
来源: Laya_社区 发布时间: 20170109
...问题 分享:LayaAir下Loading进度条的制作(ActionScript 3.0) sprite旋转以后,但是原来碰撞检测rect没有旋转 请问LayaAir中如何使图片以圆形的方式显示? 分享:自定义事件派发与侦听(A页面派发 B页面侦听) 分享:适配LayaAir版本的P...
来源: Laya_社区 发布时间: 20190629
...框的左上角显示了重绘次数与重绘时间,性能统计工具的Sprite、DrawCall等也会发生改变。 实际上这种频繁刷新的不建议用 2019-06-17 0 2 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 如果项目不大的话,建议用2.0引擎。或者不使用cach...
来源: Laya_社区 发布时间: 20190616
... = false Inherited from AnimationBase._ownGraphics Defined in laya/display/Sprite.ts:245 _scene _scene: Node Inherited from Node._scene Defined in laya/display/Node.ts:631 _skinBaseUrl _skinBaseUrl: string Inherited from AnimationBase._skinBaseUrl Defined in laya/display/Sprite.ts:269 如果节点...
来源: Laya3.0_api 发布时间: 20231102
...aya.stage.addChild(text);//将 text 添加到显示列表。 } } Hierarchy Sprite Text Input Index Constructors constructor Properties _extra _onPostLayout _ownGraphics _parseEscapeChars _scene _skinBaseUrl _url autoSize hitTestPrior ignoreLang mouseThrough name tag ELLIPSIS HIDDEN RightToLeft SCROL...
来源: Laya3.0_api 发布时间: 20231115
... = false Inherited from AnimationBase._ownGraphics Defined in laya/display/Sprite.ts:245 _scene _scene: Node Inherited from Node._scene Defined in laya/display/Node.ts:631 _skinBaseUrl _skinBaseUrl: string Inherited from AnimationBase._skinBaseUrl Defined in laya/display/Sprite.ts:269 如果节点...
来源: Laya3.0_api 发布时间: 20231102
...个边缘光的自定义shader,有很多问题,帮忙看一下 大量sprite如何优化性能 LayaAir 3D 有提供 3D 物理引擎功能吗? [引擎优化]希望官方可以增加stencil功能 想让一个2D的图形被鼠标点击时缩放一下,或左右摇晃一下,最后回到原大小...
来源: Laya_社区 发布时间: 20190722
...用帧率甚至动态更改帧率有利于改进手机耗电。 Hierarchy Sprite Stage Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize canvasDegree canvasRotation designHeight designWidth focus hitTestPrior mouseThrough name renderingEnabled screenAdap...
来源: Laya3.0_api 发布时间: 20231115
...| Events Packagelaya.device.mediaClasspublic class VideoInheritanceVideo Sprite Node EventDispatcher Object Video将视频显示到Canvas上。Video可能不会在所有浏览器有效。 关于Video支持的所有事件参见:http://www.w3school.com.cn/tags/html_ref_audio_video_dom.asp。 注意...
来源: Laya2.0_api 发布时间: 20190513