大约有 558 项符合查询结果, 库内数据总量为 30,938 项。 (搜索耗时: 0.0058 秒)
Laya_社区(175) Laya2.0_示例(114) Laya2.0_api(91) Laya3.0_文档(87) laya_api(48) Laya_示例(24) Laya2.0_文档(16) Laya3.0_api(3)
... 组件的可重用性。 https://github.com/yingDev/vmLaya 基本应用:const TEST_PAGE = 'TestPage.json'; //我们的 ViewModel class HelloViewModel { //每隔 500ms 自增的一个数字序列 hello$ = $.timer(0, 500); } //一个 View @createView(TEST_PAGE) class HelloView extends VmViewBase...
来源: Laya_社区 发布时间: 20180128
... All Classes | Index | Frames No Frames PointProperties | Methods | Constants Packagelaya.mathsClasspublic class PointInheritancePoint Object Point 对象表示二维坐标系统中的某个位置,其中 x 表示水平轴,y 表示垂直轴。 Public Properties PropertyDefined By x : ...
来源: laya_api 发布时间: 20170929
...前的容器元素,清屏就可以继续使用 if (ls.Browser.container) { const container = document.getElementById('b-layabox') container.parentNode.replaceChild(ls.Browser.container, container) } else { ls.Browser.container = document.getElementById('b-layabox') } Laya.stage.destroyCh...
来源: Laya_社区 发布时间: 20190520
...变型,stage的宽高等于屏幕宽高。*/ public static const SCALE_FULL:String = "full"; 这个出现白边是正常的 1、你的游戏宽高比浏览器宽高小的时候,hui会出现白边 2、浏览器出现地址栏的时候可能会出现白边 如果你想去掉白边的...
来源: Laya_社区 发布时间: 20170328
...ation.ts”中用代码对Animation进行控制了,示例代码如下: const { regClass, property } = Laya; @regClass() export class Animation extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Animation }) //在IDE面板中显示属性 ani: Laya.Animation; constructor...
来源: Laya3.0_文档 发布时间: 20240910
...es | Index | Frames No Frames DialogProperties | Methods | Events | Constants Packagelaya.uiClasspublic class DialogInheritanceDialog View Box Component Sprite Node EventDispatcher ObjectSubclasses AsynDialog Dialog 组件是一个弹出对话框,实现对话框弹出,拖动,模式窗...
来源: laya_api 发布时间: 20170929
...否做到每个子游戏分别打包zip,在Native中解包并跳转? const 用法 有没有克隆控件的方法,prefab能否在代码上调用 问题状态 最新活动: 2017-04-19 20:15 浏览: 1469 关注: 2 人 bing • 2017-04-19 20:42 非常感谢!!!
来源: Laya_社区 发布时间: 20170419
...比缩放不变型,stage的宽高等于设计宽高。*/ public static const SCALE_NOBORDER:String = "noborder"; 2016-12-26 0 2 分享 微博 QZONE 微信 wcj951627735 赞同来自: @cuixueying:我这样写,软件输出还是没有全部铺满 2016-12-26 0 1 分享 微博 QZONE 微信 为什么...
来源: Laya_社区 发布时间: 20161226
...,但是在使用发布3.0的时候报错 bundle.js 中有不支持的const 图一发布的截图是 tsconfig.json 改成es6之后的报错 图二三是不改tsconfig.json后,发布成功后,代码运行的报错 2019-02-26 0 0 分享 微博 QZONE 微信 186*****871 赞同...
来源: Laya_社区 发布时间: 20190226
...口中。下面给出一个示例代码,实现脚本控制TextInput: const { regClass, property } = Laya; @regClass() export class TextInputControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.TextInput } ) public txtin: Laya.TextInput; constructor() { super();...
来源: Laya3.0_文档 发布时间: 20240910