• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 204 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0084 秒)

131. laya.ui.VSlider_API3.0 [ 63%]

...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

132. laya.ui.UIGroup_API3.0 [ 63%]

...如果节点需要加载相关的皮肤,但放在不同域,这里可以设置 Optional _url _url: string Inherited from Node._url Defined in laya/display/Node.ts:55 autoSize autoSize: boolean = false Inherited from Text.autoSize Defined in laya/display/Sprite.ts:265 指定是否自动计算宽...

来源: Laya3.0_api 发布时间: 20231115

133. laya.ui.ProgressBar_API3.0 [ 63%]

... example 以下示例代码,创建了一个新的 ProgressBar 实例,设置了它的皮肤、位置、宽高、网格等信息,并添加到舞台上。 package { import laya.ui.ProgressBar; import laya.utils.Handler; public class ProgressBar_Example { private var progressBar:ProgressBar; publi...

来源: Laya3.0_api 发布时间: 20231115

134. UI编辑器内的图片如何盖住代码添加的精灵? [ 63%]

...制层级,zOrder暂时还不支持,不过最新版本会加上,如下设置即可! var img:Image=new Image(); img.loadImage('comp/image.png'); this.addChildAt(img,this.numChildren-2); 如果是同级下的显示对象,通过zOrder、addChildAt、setChildIndex都可以   2017-01-12 0 0 分...

来源: Laya_社区 发布时间: 20170112

135. laya.ui.ColorPicker_API3.0 [ 63%]

...er_Example { public function ColorPicker_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/color.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():...

来源: Laya3.0_api 发布时间: 20231115

136. laya.ui.Radio_API3.0 [ 63%]

...如果节点需要加载相关的皮肤,但放在不同域,这里可以设置 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

137. laya.ui.Clip_API3.0 [ 62%]

...vate var clip:Clip; public function Clip_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 onInit(); } private function onInit():void { clip = new Clip("resource/ui/clip_num.png", 10, 1);//创建一个 Clip 类的实例对...

来源: Laya3.0_api 发布时间: 20231115

138. laya.ui.TextInput_API3.0 [ 62%]

...nput_Example { public function TextInput_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/input.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function...

来源: Laya3.0_api 发布时间: 20231115

139. laya.ui.UIComponent_API3.0 [ 62%]

...如果节点需要加载相关的皮肤,但放在不同域,这里可以设置 Optional _url _url: string Inherited from Node._url Defined in laya/display/Node.ts:55 autoSize autoSize: boolean = false Inherited from Text.autoSize Defined in laya/display/Sprite.ts:265 指定是否自动计算宽...

来源: Laya3.0_api 发布时间: 20231115

140. laya.display.FrameAnimation [ 62%]

...内容的变化而变化,如果想根据绘制内容获取宽高,可以设置属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite cacheAs : String 指定显...

来源: laya_api 发布时间: 20170929