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

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

751. Laya.loader.load 教程代码出错 [ 66%]

...) {             //初始化引擎             Laya.init(600, 300);                          img = new Sprite();             var arr:Array = [];             for (index=0;index <=31;index++)             {      ...

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

752. mac下用FB打包发布测试页面,chrome浏览器看不到预期显示文字 [ 66%]

...译环境有问题?   /LayaAirTest/src/LayaAirTest.as (8):warning:Laya.init This variable is not defined. /LayaAirTest/src/LayaAirTest.as (9):warning:Laya.timer.currTimer This variable is not defined. /LayaAirTest/src/LayaAirTest.as (20):warning:Laya.stage.bgColor This variable is not defined. /L...

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

753. 物理引擎-布 [ 66%]

...; var engine; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(stageWidth, stageHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Stat.show(); setup(); })(); function setu...

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

754. 图集打包后使用Texture不显示啊 [ 66%]

...xture; import Handler = Laya.Handler; class GameMain{ constructor() { Laya.init(1080,1321); //设置适配模式 Laya.stage.scaleMode = "showall"; //设置剧中对齐 Laya.stage.alignH = "center"; //设置横竖屏 //Laya.stage.screenMode = "vertical"; var texture:Texture = Laya.loader.getRes("star...

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

755. laya.d3.core.render.posteffect.ColorGradEffect_API3.0 [ 66%]

...nce splitShadow splithighlights temperature tint toneMapping Methods effectInit getCameraDepthTextureModeFlag release __initDefine__ init Constructors constructor new ColorGradEffect(): ColorGradEffect Overrides PostProcessEffect.constructor Defined in laya/d3/core/render/PostEffect/ColorGradEffect....

来源: Laya3.0_api 发布时间: 20231115

756. 微信小游戏里面开放数据域的资源加载问题 [ 66%]

...同来自: 我也遇到过这个问题 主域里边要写Laya.MiniAdpter.init(true) 子域里边要写Laya.MiniAdpter.init(true, true) 这样解决了,你可以试试。 2018-06-29 0 2 分享 微博 QZONE 微信 158*****395 赞同来自: 解决了吗,我也遇到了,  2018-07-18 0 0 分享 微博...

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

757. 鼠标交互-Hold [ 66%]

...at, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); Laya.loader.load(apePath, Handler...

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

758. 打飞机点开始游戏加载飞机动画不出来,点重新开始,才出来,新手求助! [ 66%]

...下,在 onLoaded 里注册的开始游戏按钮事件,点击 执行gameInit添加hero,这时候界面没有东西;当三秒后游戏结束,点重新开始,飞机才出来 function onLoaded() { start = new GameStartUI(); start.btn_start.on(Event.MOUSE_UP,this,gameInit) Laya.stage.addChild(s...

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

759. 编译前(AS)和编译后(JavaScript)程序的行为是不一致的,求最佳实践和原理。 [ 66%]

...c class LayaSample { public function LayaSample() { //初始化引擎 Laya.init(1136, 640); var func:Function = new A().method; func(); } } } package { public class A { private var _attr:int = 123; public function A() { } public function method():void { trace(_attr); } } } 2016-12-13 添加评论 ...

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

760. laya.d3.component.volume.batchvolume.StatiVertexMergeBatchRender_API3.0 [ 66%]

... volume Methods _addList _applyReflection _batchOneRender _clear _cloneTo _initialize _removeOneRender _restorRenderNode _setOwner _updateOneRender addList destroy hasHideFlag onAdded onAwake onDestroy onDisable onEnable onLateUpdate onPostRender onPreRender onReset onStart onUpdate reBatch setRende...

来源: Laya3.0_api 发布时间: 20231115