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

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

2451. laya.events.Keyboard_API3.0 [ 46%]

...rited Externals Only exported Menu Globals "laya/events/Keyboard" Keyboard Class Keyboard Keyboard 类的属性是一些常数,这些常数表示控制游戏时最常用的键。 Hierarchy Keyboard Index Properties A ALTERNATE B BACKQUOTE BACKSLASH BACKSPACE C CAPS_LOCK COMMA COMMAND CONTROL D DEL...

来源: Laya3.0_api 发布时间: 20231115

2452. Spine 间隔一段时间卡顿5000毫秒左右,期间GPU占用极高, Demo已上传 [ 46%]

...ya.Stat; import Templet = Laya.Templet; import Skeleton = Laya.Skeleton;  class Main {  constructor() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Stat.show();  //棋子动画 this.genSpine("res/spine/ludo_qizidongzuo.skel", Laya.Handler.create(this, (templet: Laya.SpineTemplet) =&...

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

2453. laya.sprite精灵无缝拼接地图,会出现黑线跟白线,使用laya的2.0.1beta版本 [ 46%]

...位是没错,而且都是整数的移动地图的。   export default class MapSprite extends Laya.Image{ isShow:boolean = false; name:string = ""; constructor() { super(); }  loadImageAndPos(name:string,posX:number,posY:number):void { this.name = name; this.anchorX = 0; this.anchorY = 0; this.x...

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

2454. laya.d3.physics.constraints.ConfigurableConstraint_API3.0 [ 46%]

...laya/d3/physics/constraints/ConfigurableConstraint" ConfigurableConstraint Class ConfigurableConstraint ConfigurableConstraint类用于可设置的约束组件 Hierarchy ConstraintComponent ConfigurableConstraint Index Constructors constructor Properties _extra _singleton disableCollisionsBetweenLin...

来源: Laya3.0_api 发布时间: 20231115

2455. 微信小游戏想使用截图功能是使用canvasToTempFilePath()吗 [ 46%]

... /** * 微信不带ImageData,需重写,记得赋值到window */ export class ImageData { public data: Uint8ClampedArray; public width: number; public height: number; public constructor(width: number, height: number) { this.width = width; this.height = height; this.data = new Uint8ClampedArray(wi...

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

2456. 图片像素精准点击问题! [ 46%]

... on(Laya.Event.MOUSE_DOWN 来检测。   下面是我的代码处理: class demo { private down:Laya.Image; constructor() { // 鼠标事件 Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.onMouseDown); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.onMouseMove); Laya.stage.on(Laya.Event.MOUSE_UP...

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

2457. 从Unity中编辑并导出摄像机(ActionScript-3D基础(AS3)-LayaAir3D之Camera) [ 46%]

...a.display.Stage; import laya.utils.Handler; import laya.utils.Stat; public class LayaAir3D { public function LayaAir3D() { //初始化引擎 Laya3D.init(1000, 500,true); //适配模式 Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NONE; //开启统计信息 Stat.show(...

来源: Laya2.0_文档 发布时间: 20210715

2458. JSON文件加载成功后,怎么解析成Object对象 [ 46%]

....Loader; import laya.utils.Handler; /** * ... * @author OttoChen */ public class TestMain { private var txt:Text = null; public function TestMain() { Laya.init(800, 800); txt = new Text(); txt.mouseEnabled = false; txt.overflow = Text.SCROLL; txt.size(Laya.stage.width, Laya.stage.height); txt.pos(10...

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

2459. mac安装typescript的问题 [ 46%]

...! fstream_path: '/usr/local/lib/node_modules/typescript', npm ERR! fstream_class: 'DirWriter', npm ERR! fstream_stack: npm ERR! [ '/usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:35:25', npm ERR! '/usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:47:53', npm ERR! 'F...

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

2460. laya.map.TiledMap [ 46%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames TiledMapProperties | Methods | Constants Packagelaya.mapClasspublic class TiledMapInheritanceTiledMap Object tiledMap是整个地图的核心 地图以层级来划分地图(例如:地表层,植被层,建筑层...

来源: laya_api 发布时间: 20170929