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

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

101. laya.map.GridSprite [ 69%]

...| Frames No Frames GridSpriteProperties | Methods | Events Packagelaya.mapClasspublic class GridSpriteInheritanceGridSprite Sprite Node EventDispatcher Object 地图的每层都会分块渲染处理 本类就是地图的块数据 Public Properties Hide Inherited Public Properties Show Inherited ...

来源: laya_api 发布时间: 20170929

102. 3D模型怎么删除?没回切换页面原来的模型都还在? [ 69%]

...addChild(this.scene); 3.新建模型,并且添加B页面的3D场景中 var map: Laya.Sprite3D = Laya.Sprite3D.load("cj/cj.lh"); this.scene.addChild(map);   4.切换页面 private playGame(): void { Laya.stage.removeChild(this.welcomePanel); this.gamePanel = new GamePanel();//不管是不是重新ne...

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

103. WebGL模式下,使用fillTexture填充Sprite,在Sprite移动时,会有间隔线显示并闪烁 [ 69%]

...显示,当背景移动时,会显示间隔线且会不停闪烁  this.mapBg = new Laya.Sprite(); this.mapBg.name = "map"; this.mapBg.width = GameMain._width; this.mapBg.height = GameMain._height; this.mapBg.x = 0; this.mapBg.y = 0; this.mapBg.graphics.fillTexture(texture, 0, 0, GameMain._width, ...

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

104. laya.map.TiledMap [ 69%]

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

来源: laya_api 发布时间: 20170929

105. laya.map.TiledMap [ 69%]

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

来源: Laya2.0_api 发布时间: 20190513

106. 微信小游戏中音乐播放报错 [ 69%]

...戏中音乐播放报错 gameThirdScriptError Invalid value used as weak map key;at audioContext.oncanplay callback function TypeError: Invalid value used as weak map key at WeakMap.set (native) at e.P (http://127.0.0.1:9973/game/__d ... :29956) at e.t.(anonymous function) [as onCanplay] (http://127...

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

107. sprite.loadImage加载图片怎么设置要显示的x,y坐标和宽高? [ 69%]

...图片怎么设置要显示的x,y坐标和宽高? 代码: import TiledMap = Laya.TiledMap; class GameMain{ private tMap:TiledMap; constructor() { Laya.init(935, 224, Laya.WebGL); this.tMap = new TiledMap(); var viewRect: Laya.Rectangle = new Laya.Rectangle(0, 0, Laya.stage.width, Laya.stage.heig...

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

108. 关于设置动画轴心点问题 [ 69%]

关于设置动画轴心点问题 // 动画 Laya.Animation.createFrames(["map/Characters/Blue_JumpLeft_Smile.png"], ActionType.JUMP_LEFT); // 创建动画 this.animation = new Laya.Animation(); this.animation.interval = 150; this.animation.play(0, true, ActionType.MOVE_RIGHT); this.addChild(this.an...

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

109. TiledMap加载报错 relativePath为空 [ 69%]

TiledMap加载报错 relativePath为空 如图,加载tiledmap是一直报错这个。relativePath应该是json文件中png的位置吧,我明明有定义,但是为啥加载不到呢 var TiledMap = Laya.TiledMap; var Rectangle = Laya.Rectangle; var Handler = Laya.Handler; var Sprite = Laya.Spr...

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

110. laya.map.GridSprite [ 68%]

...| Frames No Frames GridSpriteProperties | Methods | Events Packagelaya.mapClasspublic class GridSpriteInheritanceGridSprite Sprite Node EventDispatcher Object 地图的每层都会分块渲染处理 本类就是地图的块数据 Public Properties Hide Inherited Public Properties Show Inherited ...

来源: Laya2.0_api 发布时间: 20190513