大约有 228 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0051 秒)
Laya_社区(93) Laya3.0_api(41) Laya2.0_文档(29) Laya2.0_api(18) laya_api(17) Laya2.0_示例(12) Laya3.0_文档(9) Laya_示例(9)
...agmove拖动中调度。Sprite dragstart开始拖动后调度。Sprite label自定义事件。Skeleton mousedown在显示对象上按下后调度。Sprite mousemove鼠标在对象身上进行移动后调度Sprite mouseout鼠标离开对象后调度。Sprite mouseover鼠标经过对象后调...
来源: Laya2.0_api 发布时间: 20190513
...this.getComponent(LoveControl); //点击提示文字,开始游戏 this.label_start.on(Laya.Event.CLICK, this, this.onTipClick); //this._loveControl.startGame(); //点击重置按钮,重新开始 this.button_reset.on(Laya.Event.CLICK, this, this.onClickReset); let partPath = "res/aixin_bao....
来源: Laya_社区 发布时间: 20190704
...// 初始化舞台 Laya.init(400,400); // 图标数据 var data:Object = { labels: [ //最上方矩形的标签提示和颜色设置 "Red", "Blue", "Yellow" ], datasets: [ { data: [300, 50, 100],//所占整个扇形的比率,以及分割份数 backgroundColor: [ //默认的饼图背景色 "#FF6384...
来源: Laya_社区 发布时间: 20170109
...:/wxdemo/demo-main/src/myOpenDataContext 5.主域这边代码: import Label = Laya.Label; import Handler = Laya.Handler; import Loader = Laya.Loader; class GameBootstrap{ public constructor(){ this.init(); } private init():void{ //初...
来源: Laya_社区 发布时间: 20180529
...直居中 请问 在LayaAir中怎么显示和隐藏文字? Morn UI中的Label文字颜色显示不正确 文本显示错误,多个文字被不相关的同一个文字替换了,如下图 laya引擎在3D中如何在人物头顶加上文字(对话框)? 官网文档真的太垃圾了了,...
来源: Laya_社区 发布时间: 20180517
...:给文本组件设置位图字体 我们分别在场景中创建Text、Label、TextInput,三个组件, 这几个文本组件,正常情况下都是使用的是系统字体,由于我们已在IDE里注册了位图字体,所以就可以直接为这几个组件设置位图字体。 分别点...
来源: Laya2.0_文档 发布时间: 20210715
...ctive addChild addChildAt addChildren addComponent addComponentInstance addLabel bubbleEvent callLater clear clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce fromParentPoint getBounds getChildAt getChildByName getChildIndex...
来源: Laya3.0_api 发布时间: 20231115
...Button相关属性 btn.width = 100; btn.height = 50; btn.pos(100,100); btn.label = "按钮"; } ``` 上述代码运行效果如动图2所示:  (动图2) **Tips:** Button 组件的属性接口介绍请参考 [Button API](https://layaair2.ldc2.layabox.com/api2/Chinese/index.html?...
来源: Laya2.0_文档 发布时间: 20210714
...Button相关属性 btn.width = 100; btn.height = 50; btn.pos(100,100); btn.label = "按钮"; } } new GameMain(); ``` 上述代码运行效果如动图2所示:  (动图2) **Tips:** Button 组件的属性接口介绍请参考 [Button API](https://layaair2.ldc2.layabox.com/api2/C...
来源: Laya2.0_文档 发布时间: 20210714
...ton相关的属性 btn.width = 100; btn.height = 50; btn.pos(100,100); btn.label = "按钮"; } } } ``` 上述代码运行效果如动图2所示:  (动图2) **Tips:** Button 组件的属性接口介绍请参考 [Button API](https://layaair2.ldc2.layabox.com/api2/Chinese/index.h...
来源: Laya2.0_文档 发布时间: 20210715