大约有 1,069 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0085 秒)
sprite.loadImage加载图片怎么设置要显示的x,y坐标和宽高? 代码: import TiledMap = Laya.TiledMap; class GameMain{ private tMap:TiledMap; constructor() { Laya.init(935, 224, Laya.WebGL); this.tMap = new TiledMap(); var viewRect: Laya.Rectangle = new Laya.Rectangle(0, 0, Laya.stage...
来源: Laya_社区 发布时间: 20190214
...内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite bgColor : String[override] 文本背景颜色,以字符串表示。 Input blendMode : String指定要使用...
来源: Laya2.0_api 发布时间: 20190513
...lements IItem ViewStack 类用于视图堆栈类,用于视图的显示等设置处理。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是否激活。 Node activeInHierarchy : Boolean[read-only] 获取在场...
来源: Laya2.0_api 发布时间: 20190513
...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 cacheAs : String 指定显...
来源: Laya2.0_api 发布时间: 20190513
...alpha值会影响drawcall。Sprite anchorX : NumberX锚点,值为0-1,设置anchorX值最终通过pivotX值来改变节点轴心点。UIComponent anchorY : NumberY锚点,值为0-1,设置anchorY值最终通过pivotY值来改变节点轴心点。UIComponent autoSize : Boolean = false 指定...
来源: Laya2.0_api 发布时间: 20190513
...和关闭,都会出发管理类的open和close事件 可以通过UIConfig设置弹出框背景透明度,模式窗口点击边缘是否关闭,点击窗口是否切换层次等 通过设置对话框的zOrder属性,可以更改弹出的层次 Public Properties Hide Inherited Public Properties S...
来源: Laya2.0_api 发布时间: 20190513
...个图片 ,A的层级比B的层级高,B下面有个子图片C,如何设置C,能让C的显示在A之上?设置了zOrder没有用 主要在做一个游戏,我把障碍物都放在一个容器里面,容器和英雄在同一父物体下,容器层级比英雄层级高,但是有的障碍...
来源: Laya_社区 发布时间: 20180816
...内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite cacheAs : String 指定显...
来源: Laya2.0_api 发布时间: 20190513
...内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite cacheAs : String 指定显...
来源: Laya2.0_api 发布时间: 20190513