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

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

2571. 今天打开微信工具出现错误Cannot read property 'USER_DATA_PATH' of undefined [ 45%]

...f undefined Wechat Lib:2.0.1, 2018.4.14 12:32:36 code.js:107 Warning!,this class[MiniAdpter] already exist: {init: ƒ} WAGame.js:3 gameThirdScriptError Cannot read property 'USER_DATA_PATH' of undefined TypeError: Cannot read property 'USER_DATA_PATH' of undefined     at Function.MiniFileMgr.setNa...

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

2572. 分享:截屏! [ 45%]

... laya.utils.Browser;     import laya.webgl.WebGL;          public class LayaAirDemo {         private var sp:Sprite ;         public function LayaAirDemo() {             //初始化引擎             Laya.init(Browser.width, Browser.height,WebGL);        ...

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

2573. laya.html.dom.HTMLDivElement [ 45%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames HTMLDivElementProperties | Methods | Events Packagelaya.html.domClasspublic class HTMLDivElementInheritanceHTMLDivElement Sprite Node EventDispatcher ObjectSubclasses HTMLIframeElement HTML图文类,用于显示html...

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

2574. SCALE_FIXED_WIDTH适配屏幕的问题 [ 45%]

...Chrome/66.0.3359.126 MQQBrowser/6.2 T     代码如下,另附上demo  class Main {         private _roomId = 0;         constructor(roomId?: number) {             this._roomId = roomId;             Laya.init(750, 1218, Laya.WebGL);             Laya.Browser.document.tit...

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

2575. Laya.Socket 是不是不支持Safari浏览器二进制格式的数据传输? [ 45%]

...821207 赞同来自: 就是按照官方例子来做的测试 /* * name; */ class Test{ private socket: Laya.Socket; private byte: Laya.Byte; constructor() { //初始化引擎 Laya.init(600, 400, Laya.WebGL); this.byte = new Laya.Byte(); //这里我们采用小端 this.byte.endian = Laya.Byte.LITTLE_...

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

2576. 官方提供的关系链代码执行报错,是不是wx的sharedCanvas不是Laya的canvas导致的问题 [ 45%]

...码 /** *<code>Texture</code> 是一个纹理处理类。 */ //class laya.resource.Texture extends laya.events.EventDispatcher var Texture=(function(_super){ function Texture(bitmap,uv){ /**图片或者canvas 。*/ //this.bitmap=null; /**UV信息。*/ //this.uv=null; /**沿 X 轴偏移...

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

2577. 2D精灵光 · LayaAir3.4 · 引擎文档 · LAYABOX [ 45%]

...后,加入下述代码,实现一个2D精灵光的效果: const { regClass, property } = Laya; @regClass() export class SpriteLight extends Laya.Script { @property({type: Laya.Sprite}) private spriteLight: Laya.Sprite; @property({type: Laya.Sprite}) private directLight: Laya.Sprite; @property({...

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

2578. 分享:DrawToCanvas内存释放问题! [ 45%]

...esource.Texture; import laya.utils.Browser; import laya.utils.Stat; public class LayaAirDemo { private var sp:Sprite ;//被截屏对象 private var htmlC:HTMLCanvas;//保存截屏后返回的HtmlCanvas对象 private var texture:Texture ;//texture实例,用于放置HtmlCanvas对象 private var coun...

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

2579. laya.map.GridSprite [ 45%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames GridSpriteProperties | Methods | Events Packagelaya.mapClasspublic class GridSpriteInheritanceGridSprite Sprite Node EventDispatcher Object 地图的每层都会分块渲染处理 本类就是地图的块数据 Public P...

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

2580. laya.ui.Dialog [ 45%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames DialogProperties | Methods | Events | Constants Packagelaya.uiClasspublic class DialogInheritanceDialog View Box Component Sprite Node EventDispatcher ObjectSubclasses AsynDialog Dialog 组件是一个弹出对话框...

来源: laya_api 发布时间: 20170929