大约有 274 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0074 秒)
...本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 hitTestPrior hitTestPrior: boolean = false Inherited from Text.hitTestPrior Defined in laya/display/Sprite.ts:273 指定鼠标事件检测是优先检测自身,还是优先检测其子对象。鼠标...
来源: Laya3.0_api 发布时间: 20231115
...错。: onStageClick(e: Laya.Event): void { //停止事件冒泡,提高性能,当然也可以不要 e.stopPropagation(); //舞台被点击后,使用对象池创建子弹 let flyer: Laya.Sprite = Laya.Pool.getItemByCreateFun("bullet", this.bullet.create, this.bullet); flyer.pos(Laya...
来源: Laya_社区 发布时间: 20181128
...为true,否则就设置为false,这样既不影响功能,又能提高性能 2018-05-10 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 18120789265 相关问题 请问LayaAir中如何使图片以圆形的方式显示? 微信关系...
来源: Laya_社区 发布时间: 20180426
...本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 hitTestPrior hitTestPrior: boolean = false Inherited from Text.hitTestPrior Defined in laya/display/Sprite.ts:273 指定鼠标事件检测是优先检测自身,还是优先检测其子对象。鼠标...
来源: Laya3.0_api 发布时间: 20231115
...本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 hitTestPrior hitTestPrior: boolean = false Inherited from Text.hitTestPrior Defined in laya/display/Sprite.ts:273 指定鼠标事件检测是优先检测自身,还是优先检测其子对象。鼠标...
来源: Laya3.0_api 发布时间: 20231115
... if (!url) return "null path"; //如果是全路径,直接返回,提高性能 if (url.indexOf(":") > 0) return url; //自定义路径格式化 if (customFormat != null) url = customFormat(url); var char1:String = url.charAt(0); if (char1 === ".") { return formatRelativePath((base || basePath)...
来源: Laya_社区 发布时间: 20180820
...。Graphics是比Sprite更轻量级的对象,合理使用能提高应用性能(比如把大量的节点绘图改为一个节点的Graphics命令集合,能减少大量节点创建消耗)。 See alsolaya.display.Sprite.graphicsPublic Properties PropertyDefined By cmds : ArrayGraphicsPublic Met...
来源: 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
...本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 hitTestPrior hitTestPrior: boolean = false Inherited from Text.hitTestPrior Defined in laya/display/Sprite.ts:273 指定鼠标事件检测是优先检测自身,还是优先检测其子对象。鼠标...
来源: Laya3.0_api 发布时间: 20231115
...本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 hitTestPrior hitTestPrior: boolean = false Inherited from Text.hitTestPrior Defined in laya/display/Sprite.ts:273 指定鼠标事件检测是优先检测自身,还是优先检测其子对象。鼠标...
来源: Laya3.0_api 发布时间: 20231115