大约有 296 项符合查询结果, 库内数据总量为 30,935 项。 (搜索耗时: 0.0071 秒)
...本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 hitTestPrior hitTestPrior: boolean = false Inherited from AnimationBase.hitTestPrior Defined in laya/display/Sprite.ts:266 指定鼠标事件检测是优先检测自身,还是优先检测其子对象...
来源: Laya3.0_api 发布时间: 20231102
...地址或者示例,我们这边具体测试下,遮罩本身比较影响性能,建议尽量少用!
来源: Laya_社区 发布时间: 20161108
...的方式与环境交互,而不会导致环境本身发生移动。 从性能角度看,静态碰撞器比动态的刚体更为高效。由于它们不需要计算位置、速度、加速度等动态属性,有助于提升性能并减少不必要的物理运算。 在LayaAir3引擎中,静态...
来源: Laya3.0_文档 发布时间: 20250310
...错。: onStageClick(e: Laya.Event): void { //停止事件冒泡,提高性能,当然也可以不要 e.stopPropagation(); //舞台被点击后,使用对象池创建子弹 let flyer: Laya.Sprite = Laya.Pool.getItemByCreateFun("bullet", this.bullet.create, this.bullet); flyer.pos(Laya.stage.mou...
来源: Laya_社区 发布时间: 20181130
...本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite bgColor : String舞台的背景颜色,默认为黑色,null为透明。Stage blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite cacheAs : String 指定...
来源: Laya2.0_api 发布时间: 20190513
...本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 hitTestPrior hitTestPrior: boolean = false Inherited from Text.hitTestPrior Defined in laya/display/Sprite.ts:273 指定鼠标事件检测是优先检测自身,还是优先检测其子对象。鼠标...
来源: Laya3.0_api 发布时间: 20231115
...想实现裁剪效果,请使用srollRect),合理使用能提高渲染性能。比如由一个个小图片拼成的地图块,viewport外面的小图片将不渲染 srollRect和viewport的区别: 1.srollRect自带裁剪效果,viewport只影响子对象渲染是否渲染,不具有裁剪效...
来源: Laya_社区 发布时间: 20170323
...本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 hitTestPrior hitTestPrior: boolean = false Inherited from Text.hitTestPrior Defined in laya/display/Sprite.ts:273 指定鼠标事件检测是优先检测自身,还是优先检测其子对象。鼠标...
来源: Laya3.0_api 发布时间: 20231115
...染优化,所以保证一个类实现丰富功能的同时,又达到高性能。 example 创建了一个 Sprite 实例。 package { import laya.display.Sprite; import laya.events.Event; public class Sprite_Example { private var sprite:Sprite; private var shape:Sprite public function Sprite_Examp...
来源: Laya3.0_api 发布时间: 20231115
...本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite cacheAs : String 指定显示对象是否缓存为静态图像,cacheAs时,子对象发生变化,会...
来源: Laya2.0_api 发布时间: 20190513