大约有 1,133 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0077 秒)
...Slider: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({type:Laya.VSlider}) public vslider: Laya.VSlider; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.vslider.po...
来源: Laya3.0_文档 发布时间: 20240910
...Slider: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.HSlider }) public hslider: Laya.HSlider; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.hslider...
来源: Laya3.0_文档 发布时间: 20240910
...08* [Cannon.js](https://github.com/schteppe/cannon.js) :完全使用 JavaScript 编写的优秀 3D 物理引擎,包含简单的碰撞检测、各种形状的摩擦力、弹力、约束等功能。在LayaAir 2.7.0beta中,完成了对其基本功能的支持,并逐步在后续的版本中完...
来源: Laya2.0_文档 发布时间: 20210715
...23:43:30] Starting 'compile'... { Error: D:/Workspace/LayaTest/demo010/src/script/GameUI.ts(50,17): semantic error TS2339: [31mProperty 'transform' does not exist on type 'Node'.[39m at error (D:\Software\Develop\LayaAirIDE\resources\app\node_modules\rollup\dist\rollup.js:9402:30) at Object.error (D...
来源: Laya_社区 发布时间: 20211009
...”,创建UI组件脚本。 (动图1-7) 保存场景后,在RuntimeScript.ts中添加如下代码: const { regClass } = Laya; import { RuntimeScriptBase } from "./RuntimeScript.generated"; @regClass() export class RuntimeScript extends RuntimeScriptBase { onAwake(): void { this.closeBtn.on(...
来源: Laya3.0_文档 发布时间: 20240910
... layaAir **2.2开始的**版本可以参照下面的指令配置。 ```typescript SaveAllModified RunProcessCaptured|D:\layaide2.0\layaairide\resources\app\out\vs\layaEditor\laya\libs\2.0.0beta1\as\layajs.exe;"$(ProjectPath)";asconfig.json;iflash=false;quickcompile=true;out=.laya/temp.js;subpath=;sc...
来源: Laya2.0_文档 发布时间: 20210715
...layer中: LayaPlayer只关心html中的 <meta> 标签和, <script> 标签。其他标签都会被忽略。而<meta>标签现在只认包含name='laya'属性的,用来设置横竖屏和其他配置,例如: <meta name='laya' screenorientation='landscape' > script标...
来源: Laya_社区 发布时间: 20170531
...4Bfy6,在<body> </body>标签中添加的代码如下: <script src="https://api.map.baidu.com/api?v=2.0&ak=LIhOlvWfdiPYMCsK5wsqlFQD8wW4Bfy6&s=1&callback=appendCode"></script> 一、首先介绍成员变量: // 百度地图 private map: any;// 地图引用 pr...
来源: Laya3.0_文档 发布时间: 20240910
...代码: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Text }) txt: Laya.Text; constructor() { super(); } onAwake(): void { this.txt.text = "第{n=1}页"; //显示文本的初始化内容 } onSta...
来源: Laya3.0_文档 发布时间: 20240910
... = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); var __decorateClass = (decorators, target, key, kind) => { var result = kind > 1 ? void 0 : kind ? __get...
来源: Laya_社区 发布时间: 20230608