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

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

411. 限制区域拖动效果,为什么会无法限制呢? [ 57%]

...活资源版本控制 Laya.ResourceVersion.enable("version.json", Handler.create(null, beginLoad), Laya.ResourceVersion.FILENAME_VERSION);  function beginLoad() { Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded)); }  function onLoaded() { Laya.stage.addChild(new GolfMainUI()...

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

412. Loader.BUFFER的问题 [ 57%]

...,采用的是以下语句: Laya.loader.load("config.zip", Laya.Handler.create(this, this.configLoaded,["config.zip"]), null, Laya.Loader.BUFFER, 1, true)   private configLoaded(url):void {     var data:Object = Laya.loader.getRes(url);     console.log(data)     var e = new Zlib.Inflate(data...

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

413. 微信小游戏中如何加载XML文件? [ 57%]

...加载XML文件? 使用Laya.loader.load("res/xml/info.xml", Laya.Handler.create(null, onLoadedXML),null,Laya.Loader.XML);来加载xml文件,在网页中能正常加载,在微信小游戏中显示 request:fail invalid url "res/xml/info.xml"。 2018-05-19 添加评论 免费帖 --> 分享 微博...

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

414. Image 动态替换图片后变小了 [ 57%]

.../157.jpg", type:Loader.IMAGE});      Laya.loader.load(assets, Handler.create(this, loadMapBGComplete));      function loadMapBGComplete():void{       var tx:Texture = Laya.loader.getRes("map/157.jpg");       this._test.source = tx;      }  我这张图是913X1400没有打...

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

415. 怎么将图片转换成base64格式 [ 57%]

... 如题。一直转换没成功。 Laya.loader.load("hall/111.png",Handler.create(this,function():void { var img:Texture = Laya.loader.getRes("hall/111.png"); var encode:String = Base64ImageTool.getBase64Pic(img); } 2017-06-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

416. ui.TestPUI() 找不到 [ 57%]

... = "#ffffff"; Laya.loader.load("./res/atlas/blackMagic.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ var efc =new ui.TestPUI(); Laya.stage.addChild(efc); } //new ui.TestPUI(); 这个东西找不到。我是按照官方文档动效模板来操作的。     2019-04-24 添加评论...

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

417. 创建材质(TypeScript-3D基础(TS)-LayaAir3D之Material材质) [ 57%]

...模型 var box = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))); box.transform.rotate(new Vector3(0, 45, 0), false, false); //创建材质 var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(this, function(tex){ //纹...

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

418. 创建材质(JavaScript-3D基础(JS)-LayaAir3D之Material材质) [ 57%]

...模型 var box = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); //创建材质 var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function(tex){ ...

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

419. 直接new sprite 跟graphics.drawTexture 有什么区别 [ 57%]

...集区别在哪? var name 的详细区别是什么? Laya.Handler.create和new Laya.Handler有啥区别 LayaAir使用AS语言能直接挂断点吗? 关于几种文本的区别用法 3d支持直接调手机的拍照和上传功能吗 Mesh.load()必须加载lm文件吗?lm和lh等有什...

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

420. 先前提交的几个问题想咨询下处理进度的 [ 57%]

...看一下这种遮罩bar的进度条设了遮罩不起作用 Laya.loader.create 进度回调函数执行两次 最新版LayaAir IDE 2.2.0beta4的几个问题 问题状态 最新活动: 2017-05-31 11:24 浏览: 1061 关注: 2 人

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