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

大约有 163 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0077 秒)

131. laya.ui.Dialog_API3.0 [ 53%]

...aya.utils.Handler; class Dialog_Example { private dialog: Dialog_Instance; constructor() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/btn_close.png", Handler.create(this, this.onLoadComplete));//加...

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

132. laya.ui.ColorPicker_API3.0 [ 53%]

...orPicker; import Handler = laya.utils.Handler; class ColorPicker_Example { constructor() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/color.png", Handler.create(this, this.onLoadComplete));//加载...

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

133. laya.display.Text_API3.0 [ 53%]

...d(text);//将 text 添加到显示列表。 } example class Text_Example { constructor() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 this.onInit(); } private onInit(): void { var text: laya.display.Text = new laya...

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

134. laya.display.AnimationBase [ 53%]

...序播放完结尾后,如果继续播发,则会改变播放顺序)。Constructor DetailAnimationBase()Constructorpublic function AnimationBase() 可以继承此类,但不要直接实例化此类,因为有些方法需要由子类实现。 Method DetailaddLabel()method public function addLabel...

来源: Laya2.0_api 发布时间: 20190513

135. laya.ui.HSlider_API3.0 [ 52%]

...lider = laya.ui.HSlider; class HSlider_Example { private hSlider: HSlider; constructor() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/hslider.png", "resource/ui/hslider$bar.png"], Handler.create(thi...

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

136. laya.ui.Clip_API3.0 [ 52%]

...ort Handler = laya.utils.Handler; class Clip_Example { private clip: Clip; constructor() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 this.onInit(); } private onInit(): void { this.clip = new Clip("resource/ui/clip_num.png", 10, ...

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

137. laya.ui.ComboBox_API3.0 [ 52%]

...ui.ComboBox; import Handler = laya.utils.Handler; class ComboBox_Example { constructor() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/button.png", Handler.create(this, this.onLoadComplete));//加载...

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

138. laya.ani.bone.Skeleton [ 52%]

...能极大提高性能,但是可能某些mesh动画效果会不太正常 Constructor DetailSkeleton()Constructorpublic function Skeleton(templet:Templet = null, aniMode:int = 0) 创建一个Skeleton对象 Parameters templet:Templet (default = null) — 骨骼动画模板  aniMode:int (default = 0)...

来源: Laya2.0_api 发布时间: 20190513

139. laya.d3.core.BaseCamera [ 52%]

... public var useOcclusionCulling:Boolean 渲染时是否用遮挡剔除。 Constructor DetailBaseCamera()Constructorpublic function BaseCamera(nearPlane:Number = 0.3, farPlane:Number = 1000) 创建一个 BaseCamera 实例。 Parameters nearPlane:Number (default = 0.3) — 视野。  farPlane:Number...

来源: laya_api 发布时间: 20170929

140. laya.ui.Tab_API3.0 [ 51%]

...ab = laya.ui.Tab; import Handler = laya.utils.Handler; class Tab_Example { constructor() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/tab.png"], Handler.create(this, this.onLoadComplete));//加载...

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