大约有 558 项符合查询结果, 库内数据总量为 30,939 项。 (搜索耗时: 0.0050 秒)
Laya_社区(175) Laya2.0_示例(114) Laya2.0_api(91) Laya3.0_文档(87) laya_api(48) Laya_示例(24) Laya2.0_文档(16) Laya3.0_api(3)
...用资源,方法与web发布略有不同,加载代码示例如下: const { regClass, property } = Laya; @regClass() export class Script extends Laya.Script { @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } // 组件被激活后执行,此时所有节点和...
来源: Laya3.0_文档 发布时间: 20250103
...se strict"; Object.defineProperty(exports, "__esModule", { value: true }); const t = require("./test/TestExportClass"); // 程序入口 class GameMain { constructor() { // Laya.init(600,400); console.log("start"); var exportCls = new t.TestExportCls(); exportCls.callFunc(); } } new GameMain(); } htt...
来源: Laya_社区 发布时间: 20171116
...创建一个gulpfile.js脚本文件,脚本内容参照如下: ```json const {watch ,task } = require("gulp"); const {exec} = require("child_process"); function compile(cb) { //执行编译命令 layaair2-cmd compile let process = exec("layaair2-cmd compile"); process.stdout.on("data",(data)=>{ c...
来源: Laya2.0_文档 发布时间: 20210715
...sses | Index | Frames No Frames TextProperties | Methods | Events | Constants Packagelaya.displayClasspublic class TextInheritanceText Sprite Node EventDispatcher ObjectSubclasses Input Text 类用于创建显示对象以显示文本。 注意:如果运行时系统找不到设定的字体...
来源: Laya2.0_api 发布时间: 20190513
...+ "attribute vec4 a_BoneIndices;\n" + "attribute vec4 a_BoneWeights;\n" + "const int c_MaxBoneCount = 24;\n" + "uniform mat4 u_Bones[c_MaxBoneCount];\n" + "#endif\n" + "#if defined(DIRECTIONLIGHT)\n" + "varying vec3 v_PositionWorld;\n" + "#endif\n" + "void main(){\n" + "#ifdef BONE\n" + "mat4 skinTr...
来源: Laya_示例 发布时间: 20250318
...from "./GameConfig"; import ui from "./ui/layaMaxUI"; class Main { constructor(){ //初始化引擎 Laya3D.init(0, 0); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; ...
来源: Laya_社区 发布时间: 20190531
...STATE_BLEND_DST_ALPHA | | 混合常量颜色 | Shader3D.RENDER_STATE_BLEND_CONST_COLOR | | 混合方程 | Shader3D.RENDER_STATE_BLEND_EQUATION | | RGB混合方程 | Shader3D.RENDER_STATE_BLEND_EQUATION_RGB | | ALPHA混合方程 | Shader3D.RENDER_STATE_BLEND_EQUATION_ALPHA | 关于各渲染状态可...
来源: Laya2.0_文档 发布时间: 20210715
...2D相机,就需要通过代码来创建2D相机,示例代码如下: const { regClass, property } = Laya; @regClass() /** * 创建2D相机的脚本,开发者可将脚本添加到2D场景中查看效果 */ export class Script extends Laya.Script { declare owner : Laya.Scene; area2D: Laya.Area2...
来源: Laya3.0_文档 发布时间: 20250310
...STATE_BLEND_DST_ALPHA | | 混合常量颜色 | Shader3D.RENDER_STATE_BLEND_CONST_COLOR | | 混合方程 | Shader3D.RENDER_STATE_BLEND_EQUATION | | RGB混合方程 | Shader3D.RENDER_STATE_BLEND_EQUATION_RGB | | ALPHA混合方程 | Shader3D.RENDER_STATE_BLEND_EQUATION_ALPHA | 关于各渲染状态可...
来源: Laya2.0_文档 发布时间: 20210715
... Classes | Index | Frames No Frames QuaternionProperties | Methods | Constants Packagelaya.d3.mathClasspublic class QuaternionInheritanceQuaternion ObjectImplements laya.d3.core.IClone Quaternion 类用于创建四元数。 Public Properties PropertyDefined By elements : Float32Array四...
来源: laya_api 发布时间: 20170929