大约有 494 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0085 秒)
Laya3.0_文档(217) Laya_社区(86) Laya3.0_api(67) Laya2.0_api(51) laya_api(47) Laya2.0_文档(17) Laya2.0_示例(5) Laya_示例(4)
...删除对该对象的所有引用。Sprite提供的destory()方法会帮助设置内部引用为null。 例如,以下代码确保对象能够被作为垃圾回收: //创建一个Sprite实例 var sp:Laya.Sprite = new Laya.Sprite(); //将sp内部引用设置为null sp.destroy(); 当对象设置为...
来源: Laya3.0_文档 发布时间: 20251010
...Component Sprite Node EventDispatcher Object 自适应缩放容器,容器设置大小后,容器大小始终保持stage大小,子内容按照原始最小宽高比缩放 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获...
来源: Laya2.0_api 发布时间: 20190513
...内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件...
来源: laya_api 发布时间: 20170929
...S 3.0的设备都支持ASTC。因此在安卓上需要根据具体情况来设置纹理压缩格式,一般而言若项目依旧要考虑低端机型,就要退而求其次使用ETC2格式进行压缩。 1.2.2 ETC ETC(Ericsson Texture Compression)最初为移动设备开发,如今它是安...
来源: Laya3.0_文档 发布时间: 20251010
...向量。 Vector4 setValue(x:Number, y:Number, z:Number, w:Number):void 设置xyzw值。 Vector4 subtract(a:Vector4, b:Vector4, out:Vector4):void[static] 求两个四维向量的差。 Vector4 transformByM4x4(vector4:Vector4, m4x4:Matrix4x4, out:Vector4):void[static] 通过4x4矩阵把一...
来源: Laya2.0_api 发布时间: 20190513
...内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite cacheAs : String 指定显...
来源: Laya2.0_api 发布时间: 20190513
物理系统项目设置1、2D物理1.1 2D物理碰撞组定义1.2 默认配置与自定义2D物理配置1.3 刚体休眠功能开关 allowSleeping1.4 重力加速度 gravity1.5 速度迭代次数 velocityIterations1.6 位置迭代次数 positionIterations1.7 长度单位转换比率 pixelRatio1.8 ...
来源: Laya3.0_文档 发布时间: 20260122
...alpha值会影响drawcall。Sprite anchorX : NumberX锚点,值为0-1,设置anchorX值最终通过pivotX值来改变节点轴心点。UIComponent anchorY : NumberY锚点,值为0-1,设置anchorY值最终通过pivotY值来改变节点轴心点。UIComponent autoSize : Boolean = false 指定...
来源: Laya2.0_api 发布时间: 20190513
...内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件...
来源: laya_api 发布时间: 20170929
...alpha值会影响drawcall。Sprite anchorX : NumberX锚点,值为0-1,设置anchorX值最终通过pivotX值来改变节点轴心点。UIComponent anchorY : NumberY锚点,值为0-1,设置anchorY值最终通过pivotY值来改变节点轴心点。UIComponent autoSize : Boolean = false 指定...
来源: Laya2.0_api 发布时间: 20190513