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

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

2511. 3Ddemo加载Unity导出场景报错resou._removeReference is not a function [ 49%]

...3D = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D; Laya.Scene3D.load("res/LayaScene_terrain/Conventional/terrain.ls",Laya.Handler.create(this,function(scene:Laya.Scene3D){ Laya.stage.addChild(scene) as Laya.Scene3D; console.log("加载3D场景") //添加照相机 var camera: Laya.Camera =...

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

2512. 关于3D物件半透明漫反射率(官网上的例子)的BUG。 [ 48%]

...a.StandardMaterial();         material.diffuseTexture = Laya.Texture2D.load("Assets/test.png");         material.albedo = new Laya.Vector4(1, 1, 1, 0.95);         material.renderMode = Laya.StandardMaterial.RENDERMODE_DEPTHREAD_TRANSPARENTDOUBLEFACE;     //渲染模式,混合类型 ...

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

2513. 更新到1.7.6beta之后,HBox有bug [ 48%]

... 分享 微博 QZONE 微信 lusky 赞同来自: Laya.init(1200, 400); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { var hbox: laya.ui.HBox = new laya.ui.HBox(); for (var i: number = 0; i < 10; i++) { var sk...

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

2514. iframe页面嵌套下失焦(焦点在父窗口被聚焦),playMusic背景音乐播放无声音 [ 48%]

...) return null; } var tSound:Sound; if (!Browser.onMiniGame) { tSound= Laya.loader.getRes(url); } if (!soundClass) soundClass = _soundClass; if (!tSound) { tSound = new soundClass(); tSound.load(url); if (!Browser.onMiniGame) { Loader.cacheRes(url, tSound); } } var channel:SoundChannel; channel = tSo...

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

2515. ui编辑器编辑了一个面板,面板里有个button, 编辑好以后,正常加载ui 面板,button的图片资源没找到,导致button无法正常显示 [ 48%]

...相关的链接 提交 3 个回复 jiaoxueoo 赞同来自: cuixueying Laya.loader.load(url, completeFun)加载 在completeFun里才创建你那个UI编辑器里编辑的界面 2017-04-02 1 0 分享 微博 QZONE 微信 kongbu0621 赞同来自: 注意调试控制台的输出,   lose skin mj/Button_...

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

2516. Panel使用文档(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 48%]

...est() { //初始化引擎 Laya.init(800,600); //预加载所需资源 Laya.loader.load("res/atlas/comp.atlas",Handler.create(this,onLoaded)); } private function onLoaded():void { //实例化Panel组件 var panel:Panel = new Panel(); //给panel添加背景色 panel.graphics.drawRect(0,0,100,100,"#ffc...

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

2517. 关于as版的Animation.createFrames()不能工作? [ 48%]

...ite; import laya.display.Stage; import laya.utils.Handler; import laya.net.Loader; import laya.events.Event; public class LayaUISample { protected var text:Text; protected var aaa:AAA; public function LayaUISample() { Laya.init(1540, 990); Laya.Stat.show(); Laya.loader.load("res/atlas/war.json", Lay...

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

2518. 官方DynamicBatchTest照做为什么动态合不了批? [ 48%]

...0), true, false); camera.addComponent(CameraMoveScript);   Laya.Texture2D.load("res/threeDimen/layabox.png", Laya.Handler.create(this, function (tex) { var radius = new Laya.Vector3(0, 0, 1); var radMatrix = new Laya.Matrix4x4(); var circleCount = 50;   var boxMesh = Laya.PrimitiveMesh.createBox(0...

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

2519. 【初学者】导入模型进行旋转结果出现问题 [ 48%]

...加自定义模型 var box : Laya.Sprite3D = scene.addChild(Laya.Sprite3D.load("res/Scene.lh")) as Laya.Sprite3D; box.transform.rotate(new Laya.Vector3(0, 0, 0), false, false); //旋转方向与角度设置 var vect:Laya.Vector3 = new Laya.Vector3(1,0,0); //每10毫秒旋转一次 Laya.timer.loop(10...

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

2520. h5项目打包成单机版本的apk 出现卡死 [ 48%]

...p: 32%;width: 80%;left: 10%;text-align:center;"> <img src="loading_logo.png" style="width: 100%;max-width:500px;" /> </div>

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