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

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

651. 鼠标穿透问题 [ 50%]

...LE; Laya.loader.load([{url:"image/comp.json", type:Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { createList(); createItems(); createLoading(); _list.addChild(_loadingBg); Laya.stage.addChild(_list); } protected function createList():void { _list = new List(); ...

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

652. 环形进度条 [ 50%]

...看一下这种遮罩bar的进度条设了遮罩不起作用 Laya.loader.create 进度回调函数执行两次 关于环形进度条,进度不能重置问题 这种进度条怎么实现? 官方提供的进度条示例 只能设置progress.png的九宫, 里面的progress$bar.png 无法设置,...

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

653. GlowFilter和TimeLine/Tween一起用的问题 [ 50%]

...all"; Laya.stage.bgColor = "#232628";   Laya.loader.load(apePath, Handler.create(this, setup)); })();   function setup() { createApe(); applayFilter(); }   function createApe() { ape = new Sprite(); ape.loadImage(apePath);   var texture = Laya.loader.getRes(apePath); ape.x = (Laya.stage.width - ...

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

654. dialog的lock属性没出现 [ 50%]

.../ui/dialog (1).png", "res/ui/close.png"]; Laya.loader.load(assets, Handler.create(this, onSkinLoadComplete)); } private function onSkinLoadComplete(e:*=null):void { var dialog:Dialog = new Dialog(); var bg:Image = new Image(assets[0]); dialog.addChild(bg); var button:Button = new Button(assets[1]); ...

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

655. 3D场景中背景无法透明,版本2.7.1 [ 50%]

...模型 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) { material.albed...

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

656. 分享:List相关(Item增删功能) [ 50%]

...ya.loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //实例UI界面 listP = new ListPageUI(); Laya.stage.addChild(listP); Laya.timer.once(1000,this,onAdd);//1000毫秒后初始化list数据 listP.add.on(Event.CLICK...

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

657. worker.js 使用问题 [ 50%]

...was found that matched the signature provided.     at Texture2D.__proto._createWebGlTexture (laya.d3.js:33519)     at Texture2D.__proto.recreateResource (laya.d3.js:33562)     at Texture2D.__proto.activeResource (laya.core.js:13234)     at Texture2D.<anonymous> (laya.d3.js:21347)    ...

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

658. socket.sent [ 50%]

...as",type: Laya.Loader.ATLAS}, ]; Laya.loader.load (uiResArr , Laya.Handler.create(this,this.onLoded));      //加载图片 this.byte = new Laya.Byte(); //这里我们采用小端 this.byte.endian = Laya.Byte.LITTLE_ENDIAN; this.socket = new Laya.Socket(); //这里我们采用小端 this.socket.e...

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

659. Unity插件使用说明(TypeScript-3D基础(TS)-LayaAir3D之3D场景可视化编辑) [ 50%]

... ```typescript //3d场景加载 Laya.Scene3D.load("xx/xx.ls",Laya.Handler.create(null,function(scene){ //加载完成后,把加载回调中返回的完整场景scene添加到舞台 Laya.stage.addChild(scene); //获取摄像机 var camera = scene.getChildByName("Main Camera"); /** ** 省略其它...

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

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

....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 = (scene.addChild(new Laya.Camera(0, 0.1, 1000))) as Laya.Camera; c...

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