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

大约有 1,282 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0063 秒)

1041. [LayaAir3]sprite.drawToTexture( ) 无法绘制容器内容 [ 53%]

...id {         const { x, y, width, height } = this.box         Laya.loader.load('comp/image.png').then(v=>{             const texture = this.box.drawToTexture(width, height, x, y) as Laya.Texture             this.snapshot.texture = texture         });     } 2024-06-05 0 0...

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

1042. LayaUI中的input组件不显示 [ 53%]

...dres(); function loadres(){ var res=[ {'url':'res/atlas/comp.json'} ] Laya.loader.load(res,Laya.Handler.create(this,Main)); } function Main(){ Laya.stage.addChild(new loginUI()); } })();   附件 : --> 2017-11-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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

1043. 通用发布 · LayaAir3.0文档 · LAYABOX [ 53%]

...方法只执行一次 */ onAwake(): void { //Web平台使用远程包 Laya.loader.loadPackage("sub1","http://192.168.56.1:2840/",this.printProgress).then(()=>{ Laya.loader.load("sub1/cube.lh").then((res:Laya.PrefabImpl) =>{ let sp3:Laya.Sprite3D =res.create() as Laya.Sprite3D; this.scene3d.add...

来源: Laya3.0_文档 发布时间: 20240926

1044. 分享:解决 QQ / 微信 获取头像跨域问题 [ 53%]

... 人 Spick • 2017-02-24 15:03 您好,请问一下:客户端直接用 loader 加载微信给的头像连接不可行是不是?因为我们服务器想让客户端自己保存微信的头像连接来使用 bluesea • 2017-09-23 18:27 上面的想法,在加载图片的时候,要等好久...

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

1045. t._addReference is not a function [ 53%]

... llc 赞同来自: 碰到相同的问题,解决了,供参考: Laya.loader.load(chapterBG, Laya.Handler.create(this, this.onBGLoaded, [chapterBG])/* , Laya.Handler.create(this, this.onBGLoadProgress) */); 第三个参数打开在某些条件下会出t._addReference is not a function 可能是...

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

1046. 一个图集动画由多张图集组成这种图集动画怎么加载播放? [ 53%]

...Monica • 2017-10-13 10:44 @hypo_chen:那就加载多个json文件...Laya.loader.load第一个参数是数组类型的

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

1047. 无法触发浏览器文件上传框 [ 53%]

...n: string = 'images/button.png'; constructor() { Laya.init(200, 300); Laya.loader.load(this.skin, Laya.Handler.create(this, () => { this.btn = this.createBtn(this.skin); this.btn.on(Laya.Event.CLICK, this, this.onClick); })); } /** * 创建btn */ private createBtn(skin: string): Laya.Button { let...

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

1048. 在Iphone6下Chrom:调用laya.utils.Browser.onPC返回true? [ 53%]

...false后过一段时间设置mouseWheelEnable=true;无法滚动 使用Laya.loader.load缓存下来的文件还在res目录下吗?在编辑模式下怎么调用缓存下来的文件? 编辑器选择分离模式生成TS代码时能自动在createChildren里加上createView调用代码么? Mac Chro...

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

1049. 百度小游戏 内存不断增大的情况 [ 53%]

...大的情况 __proto.onConfigLoaded=function(){ Laya.init(600,400); Laya.loader.load([{url:"res/atlas/comp.json",type:"atlas"}],Handler.create(this,this.onLoadUi)); } __proto.onLoadUi=function(){ Laya.timer.loop(100,this,this.onLoaded); } __proto.onLoaded=function(){ if(this.isOpen){ return; } this....

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

1050. layaAir TS项目如何引用protoBuf库? [ 53%]

...: // 程序入口 class GameMain{     constructor(){         var Loader = Laya.Loader;         var Browser = Laya.Browser;         var Handler = Laya.Handler;         var ProtoBuf = Browser.window.protobuf;         Laya.init(550, 400);         //加载协议...

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