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

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

521. 模型与动画的导入使用 · LayaAir3.4 · 引擎文档 · LAYABOX [ 41%]

...port KeyBoardManager = Laya.InputManager; import Keyboard = Laya.Keyboard; const { regClass, property } = Laya; @regClass() export class Main extends MainBase { private _animator: Laya.Animator; private _isRun: boolean; onAwake() { console.log("Game start"); //加载指定的模型预制体,并添...

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

522. 引擎 TiledMap 居然不支持图块翻转 [ 41%]

...-------------------- (function (exports, Laya) {     'use strict';     const TiledMapFlipConst = 1073741824;     const TiledMapFlipConstHalf = TiledMapFlipConst / 2;     class GridSprite extends Laya.Sprite {         constructor() {             super(...arguments);           ...

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

523. 关于适配模式 Laya.Stage.SCALE_FIXED_AUTO [ 41%]

...型,stage的宽高等于设计宽高。*/         public static const SCALE_EXACTFIT:String = "exactfit"; 2018-08-06 0 6 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: http://ldc.layabox.com/doc/?nav=zh-as-1-8-3  这篇文档有详解,相信看过之后对这一系列适配模式...

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

524. 自定义场景继承导出,会在自定义类中加入Laya.前缀导致layaMaxUI文件报错 [ 41%]

...end:Laya.Button;         public btnClose:Laya.Button;         constructor(){ super()}         createChildren():void {             super.createChildren();             this.createView(GmPanelUI.uiView);         }     } }   2.0之前版本,是不...

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

525. 鼠标交互-拖动 [ 40%]

...res/apes/monkey2.png"; private ape: Sprite; private dragRegion: Rectangle; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "sh...

来源: Laya_示例 发布时间: 20260303

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

...Library/ToolService.ts, 内容为module Library{ export class ToolService{ constructor(){ } public static sum(a:number, b:number):number { return a + b; } } }   一个是 src/Library/UserService.ts, 内容为module Library{ export class UserService{ constructor(){ } public multiple(a:number, b:numb...

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

527. 扇形遮罩画不全画了一个很奇怪的形状但是矩形的就没问题。显示效果如下:版本号1.7.10 [ 40%]

...              im.skin=p;                 im.setColor(Const_colorData.ColorData[0]);                 im.setName("grayIcon");                 view.icon_3.addChild(im);                  var img:Image = view.icon_3.getChildByName("grayIcon") as ...

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

528. laya.display.AnimationPlayerBase [ 40%]

...| Frames No Frames AnimationPlayerBaseProperties | Methods | Events | Constants Packagelaya.displayClasspublic class AnimationPlayerBaseInheritanceAnimationPlayerBase Sprite Node EventDispatcher ObjectSubclasses Animation, FrameAnimation 动画播放基类,提供了基础的动画播放控制...

来源: laya_api 发布时间: 20170929

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

...code]var fs = require('fs'); // 引入fs模块 var path = require('path'); const child_process = require("child_process"); function deleteall(path) { // lear var files = []; if(fs.existsSync(path)) { files = fs.readdirSync(path); files.forEach(function(file, index) { var curPath = path + "/" + file;...

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

530. 插件开发说明 · LayaAir3.4 · 引擎文档 · LAYABOX [ 40%]

...块 import fs from "fs"; import path from "path"; //也可以通过require const fs = IEditor.require("fs"); const sharp = IEditor.require("sharp"); const glob = IEditor.require("glob"); 二、插件运行环境 编辑器是多进程体系,主要有三个进程:Main进程/UI进程/Scene进程。...

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