大约有 153 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0052 秒)
Laya_社区(77) Laya3.0_api(64) laya_api(3) Laya2.0_api(3) Laya_示例(2) Laya2.0_文档(2) Laya3.0_文档(1) Laya2.0_示例(1)
...Laya.Vector3.ZERO); this.phasorSprite3D = new Laya.PhasorSpriter3D(); Laya.stage.on(Laya.Event.MOUSE_DOWN,this,this.onMouseDown); } private onMouseDown():void{ this.camera.viewportPointToRay(new Laya.Vector2(Laya.MouseManager.instance.mouseX,Laya.MouseManager.instance.mouseY),this.ray); Laya.Physi...
来源: Laya_社区 发布时间: 20181020
...:URLLoader; private var l:Loader; public function UrlImage() { super(); if(stage) { init(); } else { this.addEventListener(Event.ADDED_TO_STAGE,init); } } private function init(e:Event=null):void { urlLoader=new URLLoader(); urlLoader.dataFormat=URLLoaderDataFormat.BINARY; urlLoader.addEventListener...
来源: Laya_社区 发布时间: 20151228
....create(this, function(){ this.scene = Laya.loader.getRes(模型url); Laya.stage.addChild(this.scene); }),null, null, 1, true, "scene1"); 执行后,浏览器报 : laya.core.js:13290 Uncaught TypeError: node._setParent is not a function at Stage.__proto.addChild (laya.core.js:13290) at Main.<a...
来源: Laya_社区 发布时间: 20181208
...() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 onInit(); } private function onInit():void { sprite = new Sprite();//创建一个 Sprite 类的实例对象 sprite 。 sprite.loadImage("resource/ui/bg.png");//加载...
来源: Laya3.0_api 发布时间: 20231115
...52, 480, Laya.WebGL); //FPS Laya.Stat.show(0,0); //设置适配模式 Laya.stage.scaleMode = "exactfit"; //设置剧中对齐 Laya.stage.alignH = "center"; //设置横屏 Laya.stage.screenMode = "horizontal"; 打开浏览器(哦这里要说一下 因为浏览器有本地加载文件策略 具...
来源: Laya_社区 发布时间: 20160722
...ponents customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY rotation scaleX scaleY scene scrollRect skewX ske...
来源: Laya3.0_api 发布时间: 20231115
...r3D() { //初始化引擎 Laya3D.init(0, 0, true); //适配模式 Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; //开启统计信息 Laya.Stat.show(); //添加3D场景 var scene = Laya.stage.addChild(new Laya.Scene()); //添加照相机 var c...
来源: Laya_社区 发布时间: 20180605
... var image:Laya.Image = new Laya.Image(); image.source = rankTexture; Laya.stage.addChild(image); 附件 : --> 2018-04-03 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_XS 赞同来自: 你在报错的...
来源: Laya_社区 发布时间: 20180403
...xtWidth customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea href innerHTML is3D mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY rotation scaleX scaleY scene scrol...
来源: Laya3.0_api 发布时间: 20231102
...Cloud = new Animation(); this.aniCloud.loadAnimation("AniCloud.ani"); Laya.stage.addChild(this.aniCloud); }报错 Uncaught ReferenceError: Animation is not defined 2017-10-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 ...
来源: Laya_社区 发布时间: 20171026