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

大约有 890 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0070 秒)

591. 微信小游戏默认项目代码添加unity导出.lh文件,微信开发工具提示错误 [ 65%]

...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

592. laya.display.Animation_API3.0 [ 65%]

...() { 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

593. 【求助】怎么在自定义对象进行实例化的时候,给它绑定监听事件 [ 65%]

...下: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

594. 怎么打开第二个工程 [ 65%]

...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

595. LayaAir和原生DOM交互(JavaScript-2D进阶篇(JS)-扩展模块) [ 65%]

...: ```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

596. 滚动地图问题 [ 65%]

...地图还是会移动,主要是因为Mouse_DOWN, Mouse_UP是加在Laya.stage上的,请问什么好一点的办法让我打开Dialog的时候,滑动屏幕,后面的TiledMap不会滚,Dialog关掉,后面地图又可以滚动? 2017-09-02 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

597. Cannot read property 'rayCast' of undefined [ 65%]

...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

598. laya.particle.Particle2D_API3.0 [ 65%]

...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

599. 建议:Laya.init(width, height)设定后可以动态调整 [ 65%]

...,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

600. laya.map.GridSprite_API3.0 [ 65%]

...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