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

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

1801. drawTexture 画出来的数据会有以前的数据 [ 53%]

... var xNum:int = 0; private var yNum:int = 0; private var img:Image; public function TestView() { img = new Image("comp/lhjicon_5.png"); img.x = 640; img.y = 320; iconSpr = new Sprite(); iconSpr.width = 1280; iconSpr.height = 640; iconSpr.addChild(img); btn.on(Event.CLICK,this,runGame1); } private fu...

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

1802. LayaAir中字符串转xml [ 53%]

...3 浏览: 1254 关注: 2 人 yurong3000 • 2017-02-21 10:55 public static function stringToXMLDom(value:String):XmlDom { var xml:XmlDom; /*[IF-SCRIPT-BEGIN] if(document.all) {   xml=new ActiveXObject("Microsoft.XMLDOM");   xml.loadXML(value); } else { xml = new DOMParser().parseFr...

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

1803. laya.d3.core.trail.TrailFilter_API3.0 [ 53%]

...ype parameter Constructor Property Method Accessor Object literal Variable Function Type alias Static property Static method Enumeration Interface

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

1804. 两个问题都关于LayaAir的ios真机 [ 53%]

...de> 事件侦听处理函数。 * @param e Event 对象。 */ protected function onMouse(e:Event):void { if (toggle === false && _selected) return; if(e.type==Event.MOUSE_DOWN){ QuickUtils.addDark(this,true); }else{ QuickUtils.addDark(this,false); } if (e.type === Event.CLICK) { toggle &a...

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

1805. 微信小游戏常见问题汇总(10.25更新)(TypeScript-小游戏适配文档-微信小游戏) [ 53%]

...,视项目情况自行修改或拓展 public static var getUrlAndEncode:Function = function(url:String,type:String):String { if (url.indexOf(".fnt") != -1 || url.indexOf("xxx.json") != -1) { return "utf8"; } else if (type == "arraybuffer") { return ""; } return "ascii"; } ``` 另外,从网络中...

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

1806. 【已解决】 sprite无法加载图片 [ 53%]

...代码如下: private var chatLayer:Sprite; /** 游戏入口 */ public function Main() { //初始化引擎,建议增加WebGl模式 Laya.init(1280, 720, WebGL); //加载游戏页面资源(如果界面资源太多太大[超过50k],建议开始页面单独建立文件夹打包) Laya.loader.load("re...

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

1807. 微信小游戏默认项目代码添加unity导出.lh文件,微信开发工具提示错误 [ 53%]

...ptError Sprite3D: The .lh file root type must be Sprite3D,please use other function to load this file.;at api readFile success callback function [b]Error: Sprite3D: The .lh file root type must be Sprite3D,please use other function to load this file. at Sprite3D.__proto.onAsynLoaded (http://127.0.0.1...

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

1808. laya.d3.resource.RenderTextureCube_API3.0 [ 53%]

...建 Parameters url: string Returns boolean off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Function, args?: any[]): EventDispatcher Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:112 从 EventDispatcher 对象中删...

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

1809. laya.resource.NativeRenderTexture2D_API3.0 [ 53%]

...建 Parameters url: string Returns boolean off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Function, args?: any[]): EventDispatcher Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:112 从 EventDispatcher 对象中删...

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

1810. laya.d3.renderobjs.nativeobj.NativeBounds_API3.0 [ 53%]

...ss with type parameter Constructor Method Accessor Object literal Variable Function Type alias Enumeration Interface Static property

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