大约有 890 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0070 秒)
Laya_社区(515) Laya_示例(65) Laya3.0_api(65) Laya2.0_api(62) Laya2.0_文档(60) laya_api(57) Laya2.0_示例(51) Laya3.0_文档(15)
...ter.init(); //初始化引擎 Laya3D.init(0, 0, true); //适配模式 Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; //开启统计信息 // Laya.Stat.show(); //添加3D场景 this.scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Scene; //添加照...
来源: Laya_社区 发布时间: 20180307
...() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 init();//初始化 } private function init():void { var animation:Animation = new Animation();//创建一个 Animation 类的实例对象 animation 。 animation.load...
来源: Laya3.0_api 发布时间: 20231115
...下:private function showFoods():void{ foodSprite = new Sprite(); Laya.stage.addChild(foodSprite); //初始化当前菜品下标 this.index = 0; //数据数组 foodArray = ; foodArray.push(new Food("菜品1", "1", 0)); foodArray.push(new Food("菜品2", "2", 1)); foodArray.push(new Food("菜品3",...
来源: Laya_社区 发布时间: 20180407
...ser; public class Main { public function Main() { Laya.init(500,500); Laya.stage.once(Event.CLICK,this,this.clickHandler); } private function clickHandler():void { var iframe:Object = Browser.document.createElement("iframe"); iframe.style.position ="absolute";//设置布局定位。这个不能少...
来源: Laya_社区 发布时间: 20180223
...: ```typescript //初始化引擎 Laya.init(600, 400, Laya.WebGL); Laya.stage.bgColor = "#ffcccc"; var data = "data:image/svg+xml," + '' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var sp = new Laya.Sprite(); sp.loadImage(data, 0, 0, 200, 200); Laya.stage.addChild(sp); ``` 通过data来...
来源: Laya2.0_文档 发布时间: 20210714
...地图还是会移动,主要是因为Mouse_DOWN, Mouse_UP是加在Laya.stage上的,请问什么好一点的办法让我打开Dialog的时候,滑动屏幕,后面的TiledMap不会滚,Dialog关掉,后面地图又可以滚动? 2017-09-02 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20170902
...aya.Config3D(); config3D.isAlpha = true; Laya3D.init(0, 0, config3D); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; //2.设置舞台背景色为空 Laya.stage.bgColor = null; this.scene = new Laya.Scene3D(); this.camera = new Laya.Camera(0, 0.1, 100); ...
来源: Laya_社区 发布时间: 20200903
...ponents customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize emitter filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY rotation scaleX scaleY scene scrollRect s...
来源: Laya3.0_api 发布时间: 20231115
...,w,h只是个临时变量啊 reven1983 • 2017-02-09 21:02 好像Laya.stage.size()就行了,非常感谢 reven1983 • 2017-02-09 21:03 Laya的文档真的太少了 Laya_XS • 2017-02-09 22:54 文档在完善,很快文档就健全了!
来源: Laya_社区 发布时间: 20170209
...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