大约有 1,250 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0071 秒)
Laya_社区(854) Laya3.0_api(116) Laya2.0_api(95) laya_api(83) Laya2.0_文档(72) Laya3.0_文档(25) Laya_示例(3) Laya2.0_示例(2)
...且不会随着绘制内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite cache...
来源: laya_api 发布时间: 20170929
...);//清除所有数据归零。 ``` - **getSystemEndian()**:string[static] 获取系统的字节存储顺序。 ```typescript console.log(Laya.Byte.getSystemEndian());//打印系统的字节顺序 ``` - ### 属性 - **BIG_ENDIAN** : string= bigEndian[static] 表示多字节数字的最高有效字...
来源: Laya2.0_文档 发布时间: 20210714
...ole",role); } } // 处理发射子弹逻辑 if(role.shootType > 0) { // 获取当前浏览器时间 var time = Laya.Browser.now(); // 如果当前时间大于下次射击时间 if(time > role.shootTime) { // 更新下次射击时间 role.shootTime = time + role.shootInterval; // 根据不同...
来源: Laya_社区 发布时间: 20170525
...ies Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是否激活。 Sprite3D activeInHierarchy : Boolean[read-only] 获取在场景中是否激活。 Sprite3D attenuation : Vector3 获取聚光的衰减。 SpotLight color : Vector3 灯光颜色。 LightSprite...
来源: laya_api 发布时间: 20170929
...通过Laya.Pool.getItemByCreateFun("hero", this.pHero.create, this.pHero)获取这个对象时,获取成功,设置对象位置为新位置无效,日志打印还是a场景所在位置 添加对象到b场景中,dump了,错误信息如下: TypeError: Cannot read property 'length' of null at Sprite._s...
来源: Laya_社区 发布时间: 20200309
...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
...ies Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是否激活。 Node activeInHierarchy : Boolean[read-only] 获取在场景中是否激活。 Node color : Vector3 灯光颜色。 LightSprite destroyed : Boolean = false[只读]是否已经销毁。对象销...
来源: Laya2.0_api 发布时间: 20190513
...);//清除所有数据归零。 ``` - **getSystemEndian()**:String[static] 获取系统的字节存储顺序。 ```typescript trace(Byte.getSystemEndian());//打印系统的字节顺序 ``` - ### 属性 - **BIG_ENDIAN** : String= bigEndian[static] 表示多字节数字的最高有效字节位于字...
来源: Laya2.0_文档 发布时间: 20210715
...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
...且不会随着绘制内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite bgColor : String 文本背景颜色,以字符串表示。 Text blendMode : String指定...
来源: laya_api 发布时间: 20170929