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

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

1091. unity插件报错 [ 40%]

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

1092. Laya ts版,使用jasmine进行单元测试 [ 40%]

...版,使用jasmine进行单元测试 使用的Laya ts 1.7.22类库, typescript 3.2.2, npm 5.5.1  1 创建package.json{ "scripts": { "test": "jasmine-ts --config=jasmine.json" } } 2 安装jasmine及所需其他库,打开命令行,在项目根目录下npm i -D jasmine jasmine-ts ts-node typesc...

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

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

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

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

1094. 精灵 · 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_文档 发布时间: 20250311

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

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

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

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

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

1098. 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_文档 发布时间: 20250314

1099. 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_文档 发布时间: 20250314

1100. 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_文档 发布时间: 20250314