大约有 814 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0113 秒)
...且不会随着绘制内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 hitTestPrior hitTestPrior: boolean = false Inherited from Text.hitTestPrior Defined in laya/display...
来源: Laya3.0_api 发布时间: 20231115
我把好几个按钮转化在一个box里面,代码模式下如何获取到每个按钮并赋值 2017-08-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 176*****233 赞同来自: boxName.getChildByName(butto...
来源: Laya_社区 发布时间: 20170825
...ies Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是否激活。 Node activeInHierarchy : Boolean[read-only] 获取在场景中是否激活。 Node alpha : Number透明度,值为0-1,默认值为1,表示不透明。更改alpha值会影响drawcall。Sprite...
来源: Laya2.0_api 发布时间: 20190513
localToGlobal获取坐标总是错误! 如图通过 localToGlobal获取蓝色小块的全局坐标,将粉色小块添加到Stage里面,然后设置小块的全局坐标,总是对不上,不知道是否是我代码的问题,附件有DEMO工程 let buttonTest = this.getChildByName("button...
来源: Laya_社区 发布时间: 20190221
如何一次性预加载多个.sk 资源,加载后使用是如何获取,并且创建动画? this.sk_86.loadAni("birdami_86.sk"); this.sk_87.loadAni("birdami_87.sk"); 这样是加载后的回调,没有达到预加载效果 this.sk_86.buildArmature(1); 有其他方法提供参考一下吗?...
来源: Laya_社区 发布时间: 20170829
...且不会随着绘制内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 hitTestPrior hitTestPrior: boolean = false Inherited from Text.hitTestPrior Defined in laya/display...
来源: Laya3.0_api 发布时间: 20231115
多application打包laya获取资源失败导致闪退 AndriodStudio分多个applicationId打包,但是R.java只会生成一个,包名是AndroidManifest.xml的packege配置的com.company.app这个包下 这个时候,如果applicationId不是com.company.app,而是另外一个比如com.compan...
来源: Laya_社区 发布时间: 20190214
...且不会随着绘制内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 hitTestPrior hitTestPrior: boolean = false Inherited from Text.hitTestPrior Defined in laya/display...
来源: Laya3.0_api 发布时间: 20231115
...texture填充。 Graphics getBounds(realSize:Boolean = false):Rectangle 获取位置及宽高信息矩阵(比较耗CPU,频繁使用会造成卡顿,尽量少用)。 Graphics loadImage(url:String, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, complete:Function = null):void 加...
来源: Laya2.0_api 发布时间: 20190513
loadAnimation无法获取动画文件 Main.as类: gameCol = new GameControl(); gameCol.gameLoad(); GameControllei类: 动画文件统一在GameAni.ani内制作 private var aniArr:Array = [ "res/atlas/role/hero.atlas", ...
来源: Laya_社区 发布时间: 20170619