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

大约有 3,003 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0072 秒)

71. 获取不到父物体 节点 [ 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

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

73. 版主紧急问题求助! [ 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

74. 文本竖排排版布局 [ 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

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

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

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

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

77. 资源加载 · LayaAir3.0文档 · LAYABOX [ 75%]

...的脚本示例如下: const { regClass, property } = Laya; @regClass() export class LoaderDemo extends Laya.Script { onAwake(): void { this.loadTexture("resources/image/monkey2.png", 500);//需要在resources/image放入相应的资源 this.loadTexture("https://layaair.com/3.x/demo/resources/res/...

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

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

79. typescript的版本能不能更新 [ 75%]

...本已经是2.9.2了; 还有就是ts项目的ui发布能不能自动生成export, 我是用webpack打包js的, 如果需要某个ui, 我在js中import就可以了, 2018-07-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 ...

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

80. 3D变换 · LayaAir3.0文档 · LAYABOX [ 74%]

...1,示例代码如下: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Sprite3D }) public cube: Laya.Sprite3D; // 平移距离 private translate: Laya.Vector3 = new Laya.Vector3(1, 1, 1); constructor() { super(); } /** * 组件...

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