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

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

1091. 深入理解LayaAir引擎架构和实现原理(一)跨平台引擎源码编译 [ 40%]

...取引擎源码 LayaAir查看目录结构      laya引擎是使用TypeScript开发的,引擎核心代码在src/LayaAir路径下,查看tsconfig.json文件可知其编译目标环境为es6。编译引擎代码 项目路径下[code]npm i 复制代码[/code] 安装所需依赖库 查看package.js...

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

1092. 精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 39%]

...代码: 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_文档 发布时间: 20250103

1093. LayaAir IDE 1.4.0新增功能 附加(扩展)脚本的使用 [ 39%]

LayaAir IDE 1.4.0新增功能 附加(扩展)脚本的使用 .script和.prop脚本结合IDE在代码层的使用方式 2016-10-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: SONIC3D...

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

1094. TiledMap地图 · LayaAir3.3 · 引擎文档 · LAYABOX [ 39%]

... { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { private tMap:Laya.TiledMap; onEnable() { //创建地图对象 this.tMap = new Laya.TiledMap(); //创建Rectangle实例,视口区域 var viewRect:Laya.Rectangle = new Laya.Rectangle(0, 0, Laya.stage.designWidth, Lay...

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

1095. unity 新建场景,预览报错。 [ 39%]

...shRenderer' has been destroyed but you are still trying to access it. Your script should either check if it is null or you should not destroy the object. n.a (UnityEngine.SkinnedMeshRenderer A_0, System.String A_1, System.Boolean A_2) (at <f23f19a62c944610ba98639869d48a79>:0) n.b () (at <f2...

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

1096. 2D线渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 39%]

...的图形也是在宽高范围内。 */ export class DrawLine extends Laya.Script { declare owner: Laya.Sprite; line2DRender: Laya.Line2DRender; lastMousePos: number[] = []; isDrawing: boolean = false; // 标记是否正在绘制 // 组件被激活后执行,此时所有节点和组件均已创建...

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

1097. Windows扩展 · LayaAir3.3 · 引擎文档 · LAYABOX [ 39%]

...文件。 在LayaExtInit函数中,导出上面这些函数,使得JavaScript代码可以调用这些原生功能。 extern "C" { LAYAEXTAPI void LayaExtInit(jsvm_env env, jsvm_value exp) { //注册新的函数 jsvm_value fn; jsvm_create_function(env, "testAdd", SIZE_MAX, jsAdd, nullptr, &fn);...

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

1098. 2D灯光与网格 · LayaAir3.3 · 引擎文档 · LAYABOX [ 39%]

...gClass, property } = Laya; @regClass() export class lightTest extends Laya.Script { declare owner: Laya.Sprite; @property({ type: Laya.Sprite }) light1: Laya.Sprite; @property({ type: Laya.Sprite }) mesh1: Laya.Sprite; @property({ type: Laya.Sprite }) mesh2: Laya.Sprite; private light1Render: Laya.F...

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

1099. 碰撞检测 outHitInfo.distance 一直等于 -1 ?(TS代码) [ 38%]

...ance 一直等于-1?  -------------------------------- class RoleControlScript extends Laya.Script{ /*角色模型*/ public roleModel:Laya.Sprite3D; /*角色动画组件*/ public roleAni:Laya.Animator; /*角色当前动作*/ public currentAction:string = "stand"; /*角色动画是否完成*/ publ...

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

1100. 导出素材,不拷贝未打包资源 [ 37%]

...! Exit status 1 npm ERR! npm ERR! Failed at the electron@1.7.9 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional log ging output above. npm ERR! A complete log of this run can be found in: npm ERR!     C:\Users\guanll\AppData\Roaming\npm-cache\_logs\2...

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