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

大约有 501 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0084 秒)

491. 精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 37%]

...代码: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Sprite }) public sprite1: Laya.Sprite; @property({ type: Laya.Sprite }) public sprite2: Laya.Sprite; constructor() { super(); } /** * 组件...

来源: Laya3.0_文档 发布时间: 20251010

492. VSCode高效开发工作流配置指南(TypeScript-IDE篇(TS)-代码模式基础) [ 36%]

...) #### 1.2、下载安装Node.js Node.js 是一个基础环境,比如TypeScript编译、npm都需要依托于 Node.js。 如果没有安装,直接前往node官网下载安装即可, Node.js 10.x版本下载地址为: https://nodejs.org/download/release/latest-v10.x/ 截止到本篇文档撰...

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

493. 时间轴动画 · LayaAir3.3 · 引擎文档 · LAYABOX [ 35%]

...码如下: const { regClass, property } = Laya; @regClass() export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; constructor() { super(); } event1(p1:any, p2:any): void { console.log("event1",p1,p2); } } 在脚本中创建event1的方法和接收两个参数,最后我们来...

来源: Laya3.0_文档 发布时间: 20251118

494. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 33%]

...用A*作为寻路的方案,首先需要到 https://github.com/bgrins/javascript-astar 官网下载 astar.js 然后把 astar.js 放到项目的bin目录中,并在 index.html 里引入,如下所示 <script type="text/javascript" src="astar.js"></script> 2.2 A*代码中使用 添加...

来源: Laya3.0_文档 发布时间: 20230303

495. 2D寻路 · LayaAir3.3 · 引擎文档 · LAYABOX [ 29%]

...Class, property } = Laya; @regClass() export class TestSprite extends Laya.Script { // 用于显示鼠标点击的位置 @property({ type: Laya.Sprite }) public hit: Sprite; private _temp: Sprite; private _allAgent: Nav2DAgent[] = []; private findCompents(lists: any[], sprite: Sprite, componentType:...

来源: Laya3.0_文档 发布时间: 20251010

496. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 27%]

...上一杯红茶,写下了laya的故事。 工具及涉及:layaide+typescript+pomelo+tiledmap+其他工具 项目类型:mmorpg 人员:zom(客户端) + arrow(服务端) 进度:单机体验状态,实现 摇杆,切图,释放技能(由于人员和精力有限还需要处理公...

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

497. 官方案例里摄像机绕物体旋转脚本的问题 [ 27%]

...例里摄像机绕物体旋转脚本的问题 官方案例里的CameraMoveScripts在2.0版本下有很多接口,属性不存在。比如this.camera.moveForward、 super._initialize(owner)、super._update(state)等,放在1.7版本里是有的。是不是LayaAir.d.ts有修改。现在有别的接...

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

498. 使用3D摄像机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 25%]

...rty } = Laya; @regClass() export default class CameraControll extends Laya.Script { @property( { type: Laya.Sprite3D } ) public target: Laya.Sprite3D; private camera: Laya.Camera; public distanceUp: number = 0.5;//相机与目标的竖直高度参数 public distanceAway: number = 10;//相机与目...

来源: Laya3.0_文档 发布时间: 20251010

499. 3D粒子 · LayaAir3.3 · 引擎文档 · LAYABOX [ 24%]

...rticle3D } from "./Particle3D"; @regClass() export class Main extends Laya.Script { //粒子特效的路径 private filePath = "FireEffect"; onStart() { console.log("Game start"); //加载粒子特效资源 Laya.loader.load(this.filePath, Handler.create(this, () => { })); } //每次鼠标点下...

来源: Laya3.0_文档 发布时间: 20251010

500. 3D粒子编辑模块 · LayaAir3文档 · LAYABOX [ 24%]

...rticle3D } from "./Particle3D"; @regClass() export class Main extends Laya.Script { //粒子特效的路径 private filePath = "FireEffect"; onStart() { console.log("Game start"); //加载粒子特效资源 Laya.loader.load(this.filePath, Handler.create(this, () => { })); } //每次鼠标点下...

来源: Laya3.0_文档 发布时间: 20250104