大约有 477 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0083 秒)
...roperty } = Laya; @regClass() export class UI_Tab extends Laya.Script { // 图片资源来自“引擎API使用示例” private skins: any[] = ["resources/res/ui/tab1.png", "resources/res/ui/tab2.png"]; constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建...
来源: Laya3.0_文档 发布时间: 20251010
...变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边到...
来源: laya_api 发布时间: 20170929
...的纹理图片需要先经过CPU解码,然后传送到GPU进行使用。图片资源的像素宽高是影响GPU内存占用大小的直接因素。而采用了纹理压缩的格式文件,无需解码即可直接被GPU读取并显示。所以,一方面是节省了大量的显示内存,另一...
来源: Laya2.0_文档 发布时间: 20210714
...代码编辑器查看文件信息。 1.4 2D图片编辑成精灵纹理 2D图片资源,assets目录下,默认会作为3D模型的纹理格式,在2D界面开发中,通常要改为2D的图片格式,需要开发者自行编辑。 如图1-6所示,这是一张有透明通道的png图片 (图...
来源: Laya3.0_文档 发布时间: 20251010
...变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边到...
来源: Laya2.0_api 发布时间: 20190513
RopeJoint代码动态创建 无法设置otherbody等属性 var img:Sprite = new Sprite(); //加载显示图片,坐标位于100,50 img.loadImage("res/layabox.png"); img.x=(Laya.stage.width-256)/2; //添加到舞台 Laya.stage.addChild(img); var img2:Sprite = new Sprite(); //加载显示图片,...
来源: Laya_社区 发布时间: 20200217
...变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边到...
来源: Laya2.0_api 发布时间: 20190513
...布尔值,指定是否允许通过点击滑动条改变 Slider 的 value 属性值。 Slider alpha : Number透明度,值为0-1,默认值为1,表示不透明。更改alpha值会影响drawcall。Sprite anchorX : NumberX锚点,值为0-1,设置anchorX值最终通过pivotX值来改变节点...
来源: Laya2.0_api 发布时间: 20190513
...位于 CheckBox 右侧。 CheckBox 使用 dataSource赋值时的的默认属性是:selected。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是否激活。 Node activeInHierarchy : Boolean[read-only] 获取...
来源: Laya2.0_api 发布时间: 20190513
...,如果想回收,请调用destroy接口,可以通过unDestroyedScenes属性查看还未被销毁的场景列表 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是否激活。 Node activeInHierarchy : Boolea...
来源: Laya2.0_api 发布时间: 20190513