大约有 3,979 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0090 秒)
Laya_社区(2827) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(53)
...tion public function get data():*maxTimeOutproperty public static var maxTimeOut:int = 100 每帧回调最大超时时间,如果超时,则下帧再处理。parserMapproperty public static var parserMap:Object资源解析函数对应表,用来扩展更多类型的资源加载解析。...
来源: laya_api 发布时间: 20170929
...出来,, 主域代码 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
...件 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
...。 | | readyState | unsigned short | 请求的五种状态 | | response | varies | 响应实体的类型由 `responseType 来指定,` 可以是 `ArrayBuffer` ,`Blob`, [`Document`](https://developer.mozilla.org/zh-CN/docs/Web/API/Document), JavaScript 对象 (即 “json”), 或者是字...
来源: Laya2.0_文档 发布时间: 20210714
...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
...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
...码的吗 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
...示例代码如下: ```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
...果可以当作图片源,再次绘制到其他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
... 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