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

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

1271. 着色器蓝图 · LayaAir3.3 · 引擎文档 · LAYABOX [ 51%]

...捷操作Shader蓝图 1.蓝图概述 1.1 创建蓝图 在Assert窗口右键Create菜单选择Shader BluePrint创建一个蓝图文件 在蓝图文件未打开时,蓝图文件对应的Shader文件并未创建;打开蓝图文件时才会创建Shader文件,完成蓝图与Shader的映射对应 图...

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

1272. 【紧急】laya2.0的loadImage方法为什么不触发complete? [ 51%]

...ge.addChild(logo); logo.loadImage("img/load_logo.png", 0, 0, 0, 0, Handler.create(this, function(){ trace("complete!!"); })); 我在laya1.0这么写,触发complete没毛病,为什么到了2.0这个complete不触发?谁给解释一下啊 2018-10-10 添加评论 免费帖 --> 分享 微博 QZONE...

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

1273. laya里的相机镜头 与u3的插件里的不一致, [ 51%]

...cene3D.load("LayaScene_game_scene/Conventional/game_scene.ls",Laya.Handler.create(this,function (scene) {             Laya.stage.addChild(scene); } 我这样导入场景,不new相机,就是在unity运行时什么样LayaBox运行也什么样 如果你在Laya中又重新new了相机,比如...

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

1274. 启用版本管理后,加载的资源很奇怪的在正确的路径后面又加了一次路径 [ 51%]

...s/samplegame.proto", ];   Laya.loader.load(this._proto_files,Laya.Handler.create(this,this.OnProtoLoaded),null, Laya.Loader.TEXT);     打包的时候在release/web下面有了protos/loginxxxxxxxx.proto这样的文件 然后运行的时候,报了这样的错 GET http://xxxxxxxx.com/newgame/pr ....

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

1275. 模仿教程里的打地鼠写的代码,运行报错 [ 51%]

...cccc"; //加载资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) })(); function onLoaded(){ //实例化 var tempBG=new background(); Laya.stage.addChild(tempBG); } })();在background.js里是这样写的 var background = (function (_super) { fu...

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

1276. Laya.Video内存泄漏问题 [ 51%]

...ya.loader.load([{url: video_url, type: Laya.Loader.BUFFER }], Laya.Handler.create(this, createVideo)); var v; function createVideo() { var video_file = new Blob([Laya.loader.getRes(video_url)], {type: 'video/webm'}); var blob_url = URL.createObjectURL(video_file); var video = new Laya.Video(); video...

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

1277. Panel使用文档(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 51%]

...加载所需资源 Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { //实例化Panel组件 var panel = new Laya.Panel(); //给panel添加背景色 panel.graphics.drawRect(0, 0, 100, 100, "#ffcccc"); //给panel设置宽高 panel.size(100, 100); //...

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

1278. ts项目加载version.json失败 [ 51%]

...FILENAME_VERSION; Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.beginLoad)); } private beginLoad(): void { console.debug("aaaaaaaaaaaaaaaaa"); var img = new Laya.Sprite(); img.loadImage("res/test.jpg"); Laya.stage.addChild(img); } } new GameMain(); 调试的时候可以...

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

1279. 问一下这个问题要怎么改啊? [ 51%]

...:int) { picUrl = str; picX = x; picY = y; Laya.loader.load(picUrl, Handler.create(this, showBgImg)); } private function showBgImg():void { pic = new Image(); pic.graphics.drawTexture(Laya.loader.getRes(picUrl), picX, picY); Laya.stage.addChild(pic); } } }   Main.as package { import laya.display.*; ...

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

1280. ProgressBar属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 51%]

...der.load(["res/ui/progressBar.png", "res/ui/progressBar$bar.png"], Handler.create(this, onLoadComplete)); })(); function onLoadComplete() { progressBar = new ProgressBar("res/ui/progressBar.png"); progressBar.width = 400; progressBar.x = (Laya.stage.width - progressBar.width) / 2; progressBar.y = La...

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