大约有 163 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0077 秒)
...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
...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
...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
...序播放完结尾后,如果继续播发,则会改变播放顺序)。Constructor DetailAnimationBase()Constructorpublic function AnimationBase() 可以继承此类,但不要直接实例化此类,因为有些方法需要由子类实现。 Method DetailaddLabel()method public function addLabel...
来源: Laya2.0_api 发布时间: 20190513
...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
...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
...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
...能极大提高性能,但是可能某些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
... 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
...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