大约有 192 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0087 秒)
...如果节点需要加载相关的皮肤,但放在不同域,这里可以设置 Optional _url _url: string Implementation of ISelect._url Inherited from Node._url Defined in laya/display/Node.ts:55 autoSize autoSize: boolean = false Implementation of ISelect.autoSize Inherited from Text.autoSize D...
来源: Laya3.0_api 发布时间: 20231115
..._Example { public function List_Example() { Laya.init(640, 800, "false");//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/vscroll.png", "resource/ui/vscroll$bar.png", "resource/ui/vscroll$down.png", "resource/...
来源: Laya3.0_api 发布时间: 20231115
...方法,那么就需要对`Laya.Hanlder.create()`方法中的`once`参数设置为`false`。或者用`new Laya.Handler()`的方式创建。 例如,我们需要在游戏开始界面中加载资源,需要对加载资源的进度进行显示,下面的编码为就是错误的。 1. `Laya.loader.l...
来源: Laya2.0_文档 发布时间: 20210715
...回调方法,那么就需要对`Hanlder.create()`方法中的`once`参数设置为`false`。或者用`new Handler()`的方式创建。 例如,我们需要在游戏开始界面中加载资源,需要对加载资源的进度进行显示,下面的编码为就是错误的。 ```javascript Laya.lo...
来源: Laya2.0_文档 发布时间: 20210715
... example 以下示例代码,创建了一个新的 ProgressBar 实例,设置了它的皮肤、位置、宽高、网格等信息,并添加到舞台上。 package { import laya.ui.ProgressBar; import laya.utils.Handler; public class ProgressBar_Example { private var progressBar:ProgressBar; publi...
来源: Laya3.0_api 发布时间: 20231115
...hSlider:HSlider; public function HSlider_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/hslider.png", "resource/ui/hslider$bar.png"], Handler.create(this, onLoadComplete));//加载资源。 ...
来源: Laya3.0_api 发布时间: 20231115
...vSlider:VSlider; public function VSlider_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/vslider.png", "resource/ui/vslider$bar.png"], Handler.create(this, onLoadComplete));//加载资源。 ...
来源: Laya3.0_api 发布时间: 20231115
...内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite bgColor : String舞台的背景颜色,默认为黑色,null为透明。Stage blendMode : String指定要...
来源: laya_api 发布时间: 20170929
...内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite bgColor : String舞台的背景颜色,默认为黑色,null为透明。Stage blendMode : String指定要...
来源: Laya2.0_api 发布时间: 20190513
...yer.x, this.player.y)){ //人物如果踩到地板了 就把人物的坐标设置到地板上面 this.player.y = floor.y; //如果到地板上面的 就得重置跳的方法 this.player.jumpReset(); } } } //点击 出发人物 跳跃 _proto.onMouseDown = function(){ this.player.jump(); } _proto.onMo...
来源: Laya_社区 发布时间: 20160803