• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,133 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0077 秒)

321. 垂直滑动条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 60%]

...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

322. 水平滑动条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 60%]

...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

323. 基于Cannon.js的物理系统(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 60%]

...08* [Cannon.js](https://github.com/schteppe/cannon.js) :完全使用 JavaScript 编写的优秀 3D 物理引擎,包含简单的碰撞检测、各种形状的摩擦力、弹力、约束等功能。在LayaAir 2.7.0beta中,完成了对其基本功能的支持,并逐步在后续的版本中完...

来源: Laya2.0_文档 发布时间: 20210715

324. 加载prefab的代码编译失败,提示“Property 'transform' does not exist on type 'Node'” [ 59%]

...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

325. 弹窗视图组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 59%]

...”,创建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

326. FlashDevelop开发环境配置(ActionScript-LayaAir基础篇(AS3)-快速上手) [ 59%]

... 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

327. 如何将一段文字放置到粘贴板 , 或者说点击一个按钮后复制copy一段文字? [ 59%]

...layer中: LayaPlayer只关心html中的 <meta> 标签和, <script> 标签。其他标签都会被忽略。而<meta>标签现在只认包含name='laya'属性的,用来设置横竖屏和其他配置,例如: <meta name='laya' screenorientation='landscape' > script标...

来源: Laya_社区 发布时间: 20170531

328. 使用百度地图 · LayaAir3.3 · 引擎文档 · LAYABOX [ 59%]

...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

329. 基础文本 · LayaAir3.3 · 引擎文档 · LAYABOX [ 59%]

...代码: 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

330. @regClass编译报错! [ 59%]

... = 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