大约有 573 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0055 秒)
Laya_社区(347) Laya3.0_api(60) Laya2.0_文档(52) Laya_示例(41) Laya2.0_示例(40) Laya3.0_文档(29) laya_api(2) Laya2.0_api(2)
...yFont"; constructor() {super();} onAwake(): void { //加载位位图字体 this.loadBitmapFont(); } /** * 实例化位图字体类,并加载位图字体 */ loadBitmapFont(): void { let bitmapFont: Laya.BitmapFont = new Laya.BitmapFont(); bitmapFont.loadFont("res/vvv.fnt", new Laya.Handler(this, th...
来源: Laya2.0_文档 发布时间: 20210715
Laya Label text不显示 public static showNativeGroup() { /* if (this.nativeGroup) { return; } */ var self = this; Laya.View.load(SdkUtil.sdkDomain + "sdkres/laya/native/NativeGroup.json", new Laya.Handler(this, function (group: Laya.View) { /* if (this.nativeGroup) { return; } */ self.nativeGroup...
来源: Laya_社区 发布时间: 20200630
...-09-11 0 0 分享 微博 QZONE 微信 youxin 赞同来自: this.box.dataSource = {slider: 50, scroll: 80, progress: 0.2, input: "This is a input", label: {color: "#ff0000", text: "Hello LayaAir"}}; this.TestLablel.text = "测试测试"; 官网提供...
来源: Laya_社区 发布时间: 20170911
...ller; onStart() { // 初始化组件引用 this.playerScript = this.player.getComponent(Player); this.joystickScript = this.joystick.getComponent(Joystick); this.cameraController = this.camera.getComponent(CameraController); // ...
来源: Laya_社区 发布时间: 20251125
...的使用形同虚设: public function set text(value:String):void { if (this._text !== value) { var a:Array = (value + "").split("|"); var p:Array; if(a.length > 1){ p = a.slice(1); lang(a[0],p); }else if(a.length == 1){ lang(a[0]); }else { lang(""); } isChanged = true; event(Event.CHANGE); } ...
来源: Laya_社区 发布时间: 20180820
...el设置宽高和pivot 2、直接再代码里对label进行控制,如下 this.my_label.text='AAAAAAAAAAAdddddddddddddddddddddddddddAAAA'; this.my_label.pivot(this.my_label.width/2,this.my_label.height/2); 2017-03-14 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复...
来源: Laya_社区 发布时间: 20170314
...和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.progressBar.value = 0.01; //初始进度值 this.loadText.text = "资源加载中……"; // 测试加载效果 Laya.timer.loop(100, this, this.changeProgress); } //这里仅模拟加载演示效果 changeProgress(): void ...
来源: Laya3.0_文档 发布时间: 20251010
...景颜色 Laya.stage.bgColor = "#232628"; //加载资源 Laya.loader.load(this.skins, Handler.create(this, this.onSkinLoadComplete)); } /***加载资源完成***/ private onSkinLoadComplete(e:any=null):void { //创建水平滚动条 this.createHScroller(); } /***创建水平滚动条***/ private cre...
来源: Laya2.0_文档 发布时间: 20210715
...景颜色 Laya.stage.bgColor = "#232628"; //加载资源 Laya.loader.load(this.skins, Handler.create(this, this.onSkinLoadComplete)); } /***加载资源完成***/ private onSkinLoadComplete(e:any=null):void { //创建垂直滚动条 this.createVScroller(); } /***创建水平滚动条***/ private cre...
来源: Laya2.0_文档 发布时间: 20210715
....Stat.show(); var textBox=new Laya.Sprite(); for(var i=0;i<10000;i++) { this.text=new Laya.Text(); this.text.text=(Math.random()*100).toFixed(0); this.text.color="#CCCCCC"; this.text.x=Math.random()*550; this.text.y=Math.random()*400; textBox.addChild(this.text); } Laya.stage.addChild(textBox); }...
来源: Laya3.0_文档 发布时间: 20251010