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

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

71. ts项目 模块问题 [ 76%]

...s项目 模块问题 b文件写了个class ,怎么在a文件new class? export 显示未定义,require也用不了   //b文件 export default class player extends Laya.Sprite { constructor() { super(); this.pivot(this.width / 2, this.height / 2); this.graphics.drawRect(0, 0, this._size, this._...

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

72. Windows扩展 · LayaAir3.4 · 引擎文档 · LAYABOX [ 76%]

... lib/ | └── x64 | └── conch.lib ├──dllmain.cpp ├──exports.cpp 包含示例代码 ├──LayaExt.vcxproj └──framework.h 2.2 生成动态链接库 打开项目后,点击图2-3中的“生成解决方案”, (图2-3) 控制台的输出如下图2-4所示, (图...

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

73. 后期处理 · LayaAir3.4 · 引擎文档 · LAYABOX [ 76%]

...效果,示例如下: const { regClass, property } = Laya; @regClass() export class Script extends Laya.Script { //获取节点 @property(Laya.Sprite) public sp: Laya.Sprite; onAwake(): void { //创建后期处理实例 this.sp.postProcess = new Laya.PostProcess2D(); //创建变色效果 let colo...

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

74. 获取不到父物体 节点 [ 76%]

...体 节点 类库 2.2.0beta 新手小白 不明白为什么都是null 的export default class startScene extends Laya.Scene { private sp: Sprite; public constructor() { super(); console.log("startScene"); console.log(Laya.stage.name); console.log(Laya.stage.numChildren); console.log(this.numChildren...

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

75. ConchShader is not defined [ 76%]

...fined? layaair-cmd 编译提示 ReferenceError: primordials is not defined exports is not defined (js篇) LayaNative 预览在Android底下报错 ConchShader is not defined window is not defined 引用了laya.physics3D.runtime.js后报enum_btConstraintParams_BT_CONSTRAINT_ERP is not defined native u...

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

76. 版主紧急问题求助! [ 75%]

版主紧急问题求助! 1.ts module A{   export var a:类;(类里面包含坐标、Sprite3D等变量) }   2.ts module A{   export function test(){     a = new a();     a.vector2 = new Vector2(100, 100);      a.加载() //Laya.loader.create 加载一个模型。 这个a类里面有回...

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

77. 文本竖排排版布局 [ 75%]

...自: 谢谢 有方式获取类的全名吗?像: module My.ux.panel { export class BasePanel { } }  module My.ux.uuxx.panel { export class BasePanel { } }  什么获取BasePanel 的全名 即:My.ux.panel,BasePanel 和  My.ux.uuxx.panel.BasePanel,     2017-04-08 0 2 分享 微博 QZONE ...

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

78. 使用命名空间遇到的问题 [ 75%]

... QZONE 微信 nevercai 赞同来自: 你需要把命名空间也导出。 export namespace global2 { ......   在使用的地方import {global2} from "......"   BTW:这样的命名空间不好用,你多个文件同一个命名空间,你import的时候就会有问题。   你可以单独创...

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

79. LAYAIDE运行VSCODE插件失败问题(VSCODE正常) [ 75%]

...plate" } ] },extension.js 内容如下 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); const vscode = require("vscode"); function activate(context) { let disposable = vscode.commands.registerCommand('extension.buildTemplate', () => { vscode.window.showInformationMessa...

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

80. layaAir3d能做图层叠加吗? [ 75%]

...方式 Unity3d导出模型时 报错:LayaAir3D UnityPlugin prefab can't export You should check the texture file format Unity场景使用Laya导出插件导出,总是提示LayaAir3D UnityPlugin: unknown Shader Please use LayaAir3D shader LayaAir3D Warning : MyWater must config in CustomShaderCon...

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