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

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

21. tiledmap有时尺寸不正确 [ 92%]

...动的时候地图尺寸会变大(会调用到注册的RESIZE事件回调函数),大部分时候是正常的(不会调用到RESIZE事件回调函数),是我写的问题还是LayaAir有bug吗,我的代码是根据教程来写的,现附上代码export class Scene{ // 当前场景的配置...

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

22. 报错,这不是个构造函数 "StartPage is not a constructor" [ 92%]

报错,这不是个构造函数 "StartPage is not a constructor" StartPage: /**Created by the LayaAirIDE*/ var StartPage=(function(_super){ function StartPage(){ StartPage.__super.call(this); } Laya.class(StartPage,'view.StartPage',_super); return StartPage; })(StartPageUI) LayaSample: var La...

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

23. 关于Laya.Component3D脚本生命周期BUG反馈 [ 91%]

...反馈 如果脚本继承了Laya.Component3D,并且重写了_initialize()函数,那么该脚本的_update()、_lateUpdate()函数将不会再执行,必须在_initialize()函数中调用父类的_initialize()函数才行,这应该是bug。         public _initialize(owner: Laya.Sprite...

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

24. laya.d3.core.material.GlitterMaterial [ 91%]

...aterial cull : int渲染剔除。BaseMaterial depthFunc : int深度测试函数。BaseMaterial depthTest : Boolean是否深度测试。BaseMaterial depthWrite : Boolean是否深度写入。BaseMaterial  diffuseTexture : BaseTexture 获取漫反射贴图。 GlitterMaterial dstBlend : int目标...

来源: laya_api 发布时间: 20170929

25. laya.d3.core.material.ParticleMaterial [ 91%]

...aterial cull : int渲染剔除。BaseMaterial depthFunc : int深度测试函数。BaseMaterial depthTest : Boolean是否深度测试。BaseMaterial depthWrite : Boolean是否深度写入。BaseMaterial  diffuseTexture : BaseTexture 获取漫反射贴图。 ParticleMaterial dstBlend : int目...

来源: laya_api 发布时间: 20170603

26. laya.d3.core.particleShuriKen.ShurikenParticleMaterial [ 91%]

...aterial cull : int渲染剔除。BaseMaterial depthFunc : int深度测试函数。BaseMaterial depthTest : Boolean是否深度测试。BaseMaterial depthWrite : Boolean是否深度写入。BaseMaterial  diffuseTexture : BaseTexture 获取漫反射贴图。 ShurikenParticleMaterial dstBlend : ...

来源: laya_api 发布时间: 20170929

27. Laya.tween设置了完成回调函数,但是偶尔会出现不回调的问题 [ 90%]

Laya.tween设置了完成回调函数,但是偶尔会出现不回调的问题 公司项目,当游戏里面动效很多的时候,偶尔就会出现这样的问题, 基本上测试个十几分钟就会出现, 动效停在过程中,不播放了,update也不调用了,回调完成函数...

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

28. Laya.Timer.clear 的源码可能有个问题。 [ 90%]

...源码可能有个问题。 是这样的,当我需要定时执行某个函数时,并且想要在某个情况下clear掉这个执行,clear掉的只是最后入栈的Handler。情景如下:  //我想要每隔1s, 执行一次 b 函数(行为),最多执行6次 for(let i = 0; i < 6; i++){ Lay...

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

29. tween 函数的单次执行任务数量问题 [ 89%]

tween 函数的单次执行任务数量问题 Laya.Tween.to(_car,{              x:_targetP.x,              y:_targetP.y,              // "scaleX": 0,              // "scaleY": 0 },550,null,Handler.create(this,this.skillEffecting)); 如代码所示,如果写了...

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

30. 深入理解LayaAir引擎架构和实现原理(三)引擎渲染主循环与AOP介入控制 [ 89%]

...一个管理渲染的单例。 2.渲染结构 Rander 来看Rander的构造函数发现,游戏渲染的主循环是通过window.requestAnimationFrame不断loop实现的,是程序的主要更新源头。 需要注意的是window.requestAnimationFrame原生的浏览器重绘接口函数都不兼容...

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