大约有 2,741 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0052 秒)
Laya_社区(1926) Laya3.0_api(248) Laya2.0_api(162) laya_api(132) Laya_示例(81) Laya2.0_文档(81) Laya2.0_示例(65) Laya3.0_文档(46)
...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
...Laya.timer.frameLoop(1, this, animate); } private function animate(e:Event=null):void { apesCtn.rotation += 1; } } }
来源: Laya2.0_示例 发布时间: 20251223
...Laya.timer.frameLoop(1, this, animate); } private function animate(e:Event=null):void { apesCtn.rotation += 1; } } }
来源: Laya_示例 发布时间: 20251223
...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
...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
...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
... layabox 赞同来自: 在引擎中,如果宽高不设置或者设置为null的时候,视为自动大小的宽高。 3.3的时候,考虑到box作为容器默认自适应宽高的体验更好,而做出了调整,宽高为0的时候,不再存这个宽高值,所以导致引擎视为没...
来源: Laya_社区 发布时间: 20250915
...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
...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
...复 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