大约有 874 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0049 秒)
布局后的对象的x y坐标如何获取? 问一下,是不是设置了centerX 和centerY后,就无法获取到这个Box的坐标了呀? console.log(this.test1.x ) //结果是 0 但console.log 这个对象,可以看到_x _y 的坐标 请问如何获取到这个被布局后的x...
来源: Laya_社区 发布时间: 20190701
localToGlobal获取坐标总是错误! 如图通过 localToGlobal获取蓝色小块的全局坐标,将粉色小块添加到Stage里面,然后设置小块的全局坐标,总是对不上,不知道是否是我代码的问题,附件有DEMO工程 let buttonTest = this.getChildByName("button...
来源: Laya_社区 发布时间: 20190221
laya里如何获取一个unity导出模型的中间某个节点 我用unity插件导出了一个场景,场景里有个模型,我想获得这个模型下面的某个子节点,但现在我发现怎么都获取不到,求教。 想获得图中node_1节点,用的getChildByName方法,但导...
来源: Laya_社区 发布时间: 20190408
如何一次性预加载多个.sk 资源,加载后使用是如何获取,并且创建动画? this.sk_86.loadAni("birdami_86.sk"); this.sk_87.loadAni("birdami_87.sk"); 这样是加载后的回调,没有达到预加载效果 this.sk_86.buildArmature(1); 有其他方法提供参考一下吗?...
来源: Laya_社区 发布时间: 20170829
...roscopeInheritanceGyroscope EventDispatcher Object 使用Gyroscope.instance获取唯一的Gyroscope引用,请勿调用构造函数。 listen()的回调处理器接受两个参数: function onOrientationChange(absolute:Boolean, info:RotationInfo):void absolute: 指示设备是否可以提供绝...
来源: Laya2.0_api 发布时间: 20190513
Image缓存bitmap后怎样获取缓存后的像素数据? 1、创建一个Image对象image 2、在image容器中添加一个blendMode = "destination-out"的Sprit容器 3、擦除后使用image.source.getPixels(x,y,width,height)获取的数据和未擦除前相同 4、这样就实现了擦除的...
来源: Laya_社区 发布时间: 20170407
... Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean Inherited from Component.runInEditor Defined in laya/components/Component.ts:34 是否可以在IDE环境中运行 Optional scriptPath scriptPath: string Inhe...
来源: Laya3.0_api 发布时间: 20231115
... Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean Inherited from Component.runInEditor Defined in laya/components/Component.ts:34 是否可以在IDE环境中运行 Optional scriptPath scriptPath: string Inhe...
来源: Laya3.0_api 发布时间: 20231115
还可以设置autoSize=true,然后再获取宽高 但是获取是 0? 这里说明: http://layaair.ldc.layabox.com ... prite “注意: Sprite 默认没有宽高,可以通过getBounds函数获取;也可手动设置宽高;还可以设置autoSize=true,然后再获取宽高。Sprite的...
来源: Laya_社区 发布时间: 20181029
... 1 个回复 cuixueying 赞同来自: 你可以网上搜下js原生如何获取,如果有这个方法直接用即可! 2017-08-09 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 KGYGPS 相关问题 Laya mac版的IDE 是没测试就上...
来源: Laya_社区 发布时间: 20170809