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

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

2461. UI-ProgressBar [ 45%]

...ndler.create(this, onLoadComplete)); } private function onLoadComplete(e:*=null):void { progressBar = new ProgressBar("../../../../res/ui/progressBar.png"); progressBar.width = 400; progressBar.x = (Laya.stage.width - progressBar.width ) / 2; progressBar.y = Laya.stage.height / 2; progressBar.sizeGr...

来源: Laya_示例 发布时间: 20251223

2462. Sprite-容器 [ 45%]

...Laya.timer.frameLoop(1, this, animate); } private function animate(e:Event=null):void { apesCtn.rotation += 1; } } }

来源: Laya2.0_示例 发布时间: 20251223

2463. Sprite-容器 [ 45%]

...Laya.timer.frameLoop(1, this, animate); } private function animate(e:Event=null):void { apesCtn.rotation += 1; } } }

来源: Laya_示例 发布时间: 20251223

2464. 3D阴影无法渲染出来 [ 45%]

...form.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = null; //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.8, 0.8, 0.8); directionLight.direction = new Laya.Vector3(-1, -1, 2); //灯光开启阴影 dire...

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

2465. 没有预加载的图片怎么获取width和height ? [ 45%]

...w Laya.Image(PHOTO); BaseLayer.addChild(photo); photo.on(Laya.Event.LOADED,null,function(){ console.log(photo.getGraphicBounds()); //此时得到的x、y、width、height都是0 }); 二、 Laya.loader.load(PHOTO, Laya.Handler.create(this, function(){ var photo = new Laya.Image(PHOTO); BaseLayer.addC...

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

2466. 微信关系链:LayaAir引擎针对开发数据域使用图集支持介绍 [ 45%]

...c var SHAREDRESIZE:String = "sharedresize"; private static var _i:MsgMgr = null; public function MsgMgr() { super(); } public static function get instance():MsgMgr { return _i ||= new MsgMgr(); } /**初始化消息监听**/ public function init():void { //接收主域透传的数据 if(MiniAdpter.is...

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

2467. [LayaAir3]Laya3.3.1中一个宽高0的box运行时宽高改变了 [ 45%]

... layabox 赞同来自: 在引擎中,如果宽高不设置或者设置为null的时候,视为自动大小的宽高。   3.3的时候,考虑到box作为容器默认自适应宽高的体验更好,而做出了调整,宽高为0的时候,不再存这个宽高值,所以导致引擎视为没...

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

2468. ShaderPass介绍(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 45%]

...3D.RENDER_STATE_DEPTH_WRITE } var shader = Laya.Shader3D.add("BLINNPHONG", null, null, true); var subShader = new Laya.SubShader(attributeMap, uniformMap); shader.addSubShader(subShader); subShader.addShaderPass(MeshBlinnPhongVS, MeshBlinnPhongPS, stateMap); ``` > BLINNPHONG材质关联渲染通道...

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

2469. 性能测试-虫子(慎入) [ 45%]

...ler.create(this, onTextureLoaded)); } private function onTextureLoaded(e:*=null):void { maggotTexture = Laya.loader.getRes(texturePath); initMaggots(); Laya.timer.frameLoop(1, this, animate); } private function initMaggots():void { var maggotContainer:Sprite; for (var i:int = 0; i wb.x + wb.width) x...

来源: Laya2.0_示例 发布时间: 20251223

2470. 场景进行destroy销毁后,再次加载同一场景,就会报错 [ 45%]

...复 158*****796 赞同来自: TypeError: Cannot read property 'length' of null laya.core.js:13721 at Scene3D.__proto._activeHierarchy (file:///D:/H5/bin/libs/laya.core.js:13721:28)   at Scene3D.__proto._onAdded (file:///D:/H5/bin/libs/laya.core.js:13770:58)   at Scene3D.__proto._setParent (file://...

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