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

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

2041. Sprite3D-Sprite3D克隆 [ 67%]

...inModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onComplete)); function onComplete() { var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); //克隆sprite3d var layaMonkey_clone1 = Laya.Sprite3D.instantiate(layaMonkey, scene, fal...

来源: Laya_示例 发布时间: 20260303

2042. 最新版本绘制100x100个sprite ios不能显示 [ 67%]

最新版本绘制100x100个sprite ios不能显示 /* 游戏地图 */ function GameMap(){ this.MapRowNum = 100; this.MapColNum = 100; GameMap.super(this); this.init(); } Laya.class(GameMap, "GameMap", laya.display.Sprite); var _proto = GameMap.prototype; _proto.init = function(){ var boxSp = new la...

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

2043. drawToCanvas真机资源无法释放 [ 67%]

...ayObject.height, 0,0); htmc.destroy(); --------》     __proto.destroy=function(){         this._ctx && this._ctx.destroy();         this._ctx=null;     } 在这里,this.ctx并没有destroy方法,native上直接崩溃 2018-12-19 0 1 分享 微博 QZONE 微信 为...

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

2044. 显存优化:纹理压缩的使用(TypeScript-2D进阶篇(TS)-性能优化) [ 67%]

...里的加载 Laya.loader.load("res/layabox.ktx", Laya.Handler.create(null, function (tex: Laya.Texture2D) { material.albedoTexture = tex; })); } else { //注意这里的加载 Laya.Texture2D.load("res/layabox.jpg", Laya.Handler.create(null, function (tex: Laya.Texture2D) { material.albedoTexture = t...

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

2045. 在微信小游戏中,主域中显示开发域的list为什么显示不全? [ 67%]

...Handler.create(null, beginLoad), Laya.ResourceVersion.FILENAME_VERSION);  function beginLoad(){     Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(null, onLoaded)); }*/  function updateItem(cell, index) { cell.setImg(cell.dataSource); }  function onLoaded(): void {      var...

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

2046. 缓动动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 67%]

...看演示DEMO,链接:[https://layaair.ldc.layabox.com/demo/?Tween_EaseFunctionsDemo](https://layaair2.ldc2.layabox.com/demo2/?language=zh&category=2d&group=Tween&name=EaseFunctionsDemo) ### 2.缓动类的常用API介绍 #### 2.1 Tween缓动类的常用方法from()与to() 缓动类Tween提供了...

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

2047. 多个模块之间相互嵌套import,导致运行报错 [ 67%]

...oid { let self = this; let cat = new Cat(); cat.Create(); cat.on('attack', function () { self.Change(); }); this.animals.push(cat); }   2019-02-26 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 karin666 相关...

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

2048. LayaNative2.0 UI移除舞台,再添加必然无法显示 [ 67%]

LayaNative2.0 UI移除舞台,再添加必然无法显示 private function CreateCon():void { _con1 = new Sprite(); _con2 = new Sprite(); _con3 = new Sprite(); _con4 = new Sprite(); Laya.stage.addChild(_con1); Laya.stage.addChild(_con2); Laya.stage.addChild(_con3); Laya.stage.addChild(_con4);   _...

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

2049. 动画-SWF动画 [ 67%]

... private const MCWidth:int = 318; private const MCHeight:int = 406; public function Animation_SWF() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scal...

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

2050. 引擎的text类中有没有直接读取Json文件的函数 [ 67%]

...a.net.Loader; import laya.utils.Handler; public class LayaAirDemo { public function LayaAirDemo() { Laya.init(500,400); Laya.loader.load("unpack.json",Handler.create(this,onLoaded),null,Loader.JSON); } private function onLoaded():void { var json:JSON=Laya.loader.getRes("unpack.json"); var str:String...

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