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

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

2311. laya.net.Loader [ 61%]

...tion     public function get data():*maxTimeOutproperty public static var maxTimeOut:int = 100 每帧回调最大超时时间,如果超时,则下帧再处理。parserMapproperty public static var parserMap:Object资源解析函数对应表,用来扩展更多类型的资源加载解析。...

来源: laya_api 发布时间: 20170929

2312. 关于微信小游戏渲染子域图的问题 [ 61%]

...出来,,   主域代码 Laya.timer.once(2000, this, function():void{ var sprite:Sprite = new Sprite(); sprite.pos(0, 0); var texture:Texture = new Texture(Browser.window.sharedCanvas); texture.bitmap.alwaysChange = true;//小程序使用,非常费,这个参数可以根据自己的需求适...

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

2313. Laya2.0导入protobufjs第三方库,报错找不到文件 [ 61%]

...件 Laya2.0 在Main.ts里:import protoAll = require("../libs/protoAll"); var pCls = protoAll.com.bee.protobuf.ClimbingTowerInfoProto; var p: protoAll.com.bee.protobuf.ClimbingTowerInfoProto = pCls.create(); p.curId = 10; p.isSecondPass = true;   用了第三方库protobufjs。 protoAll.d.ts是pro...

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

2314. HttpRequest详解(JavaScript-LayaAir基础篇(JS)-数据与通信) [ 61%]

...。 | | readyState | unsigned short | 请求的五种状态 | | response | varies | 响应实体的类型由 `responseType 来指定,` 可以是 `ArrayBuffer` ,`Blob`, [`Document`](https://developer.mozilla.org/zh-CN/docs/Web/API/Document), JavaScript 对象 (即 “json”), 或者是字...

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

2315. Sprite-节点控制 [ 61%]

...rowser; import laya.webgl.WebGL; public class Sprite_NodeControl { private var ape1:Sprite; private var ape2:Sprite; public function Sprite_NodeControl() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; L...

来源: Laya2.0_示例 发布时间: 20250226

2316. 屏幕方向:自动横屏与自动竖屏的设置详解(JavaScript-LayaAir基础篇(JS)-屏幕适配) [ 61%]

...mo.ts 示例代码如下: ```javascript function showScreen() { //图片 var img = new Laya.Image(); img.centerX = 0; img.centerY = -70; img.skin = "res/monkey2.png"; Laya.stage.addChild(img); //文字 var text = new Laya.Label(); text.text = "游戏的水平方向"; text.color = "gray"; text.font...

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

2317. 微信小游戏编译出错 [ 61%]

...码的吗 Yangcy • 2018-06-11 10:39 @Laya_Aaron:ascii编码? private var assetArr:Array=[{url: "res/atlas/comp.atlas"}, {url: "res/atlas/wxlocal.atlas"}, {url: "res/atlas/middleMoive.atlas"}, {url: "res/atlas/resoutel.atlas"}, {url: "res/atlas/texiaol...

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

2318. 屏幕方向:自动横屏与自动竖屏的设置详解(TypeScript-LayaAir基础篇(TS)-屏幕适配) [ 61%]

...示例代码如下: ```javascript function showScreen(): void { //图片 var img:Laya.Image = new Laya.Image(); img.centerX = 0; img.centerY = -70; img.skin = "res/monkey2.png"; Laya.stage.addChild(img); //文字 var text:Laya.Label = new Laya.Label(); text.text = "游戏的水平方向"; text.col...

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

2319. laya.ani.bone.Skeleton [ 61%]

...果可以当作图片源,再次绘制到其他Sprite里面,示例: var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var texture:Texture = new Texture(htmlCanvas);//使用htmlCanvas创建Texture var sp:Sprite = new Sprite().pos(0, 200);//创建精...

来源: laya_api 发布时间: 20170929

2320. 微信飞机大战报错 [ 61%]

...    at readableAddChunk (_stream_readable.js:[...]   GameInfo.js代码: var GameInfo = (function(_super){     function GameInfo(){         GameInfo.super(this);         this.pauseBtn.on(Laya.Event.CLICK, this, this.onPauseBtnClick);         this.reset();     }     Laya.class(Gam...

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