大约有 1,167 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0054 秒)
...nit(1136,640); var txt = new Laya.Text(); //设置文本内容 txt.text = "hello_world"; //设置文本颜色 txt.color = "#ffffff"; Laya.stage.addChild(txt); ``` 这个时候我们就可以看到txt已经添加到舞台上了,显示了txt中白色的hello_world。 接着我们给文本添加一...
来源: Laya2.0_文档 发布时间: 20210714
...本应用:const TEST_PAGE = 'TestPage.json'; //我们的 ViewModel class HelloViewModel { //每隔 500ms 自增的一个数字序列 hello$ = $.timer(0, 500); } //一个 View @createView(TEST_PAGE) class HelloView extends VmViewBase<HelloViewModel> { //绑定 viewModel 的 hello$ 的值...
来源: Laya_社区 发布时间: 20180128
...始化引擎 Laya.init(1136, 640); var txt:Text = new Text(); txt.text = "hello_world"; txt.color = "#ffffff"; Laya.stage.addChild(txt); } } } ``` 这个时候我们就可以看到txt已经添加到舞台上了,显示了txt中 白色的hello_world。 接着我们给我们的文本添加一些其...
来源: Laya2.0_文档 发布时间: 20210714
... 假设我有三个文件,一个是src/Functions.ts,内容为function hello(): string { return 'Hello World!'; } 一个是src/Library/ToolService.ts, 内容为module Library{ export class ToolService{ constructor(){ } public static sum(a:number, b:number):number { return a + b; } } } 一个...
来源: Laya_社区 发布时间: 20181214
...被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 hello 相关问题 请问LayaAir中如何使图片以圆形的方式显示? 安装layaAirIDE2 ,跟着官网敲hello world 例子,为什么不显示? List 组件列表渲染异常 加载到舞台的3D模型不显示贴...
来源: Laya_社区 发布时间: 20250113
...实际可用。怎么让 ts 不显示红色的? laya.ui.Image.prototype.hello= function () { alert(3); }; 如果用 ts 去调用 hello 方法的时候,会显示红色。实际运行肯定是没问题。 如果是自己的类,用 d.ts 肯定没问题。 2018-01-10 添加...
来源: Laya_社区 发布时间: 20180110
...到IDE上的精灵上, 例如画面上有3个精灵分别显示了: "Hello", "World", "Hello World"的渐变文字, 在Safari环境下却变成"Hello" , "Hello"+"World"(重疊), "Hello"+"World"+"Hello World"(重疊), 如附图, 在Chrome或Opera环境下是没有重叠的问题, 小弟想不...
来源: Laya_社区 发布时间: 20180824
...port module ui { export class CustomSceneUI extends BaseScene { public txt_hello:Laya.Label; constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("CustomScene"); } } REG("ui.CustomSceneUI",CustomSceneUI); } 创建runtime类 如果想方便的引用导出类的组...
来源: Laya_社区 发布时间: 20200827
...xt; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class HelloLayabox { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage....
来源: Laya2.0_文档 发布时间: 20210715
...供一个可复现问题的Demo 2025-01-13 0 0 分享 微博 QZONE 微信 hello 赞同来自: 感觉是spine的坐标转换有问题 LayaProject7.rar 2025-01-13 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 ...
来源: Laya_社区 发布时间: 20250113