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

大约有 130 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0035 秒)

101. 3D变换 · LayaAir3.3 · 引擎文档 · LAYABOX [ 51%]

...果想实现动图2-1所示的效果,即绕Y轴进行旋转动画,则每帧需要增加localRotationEulerY的值,示例代码如下: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Sprite3D }) public cube: Laya.Sprite3D; //...

来源: Laya3.0_文档 发布时间: 20251010

102. WebGl下 graphics画出东西后 移动sprite 不起效果 [ 51%]

...博 QZONE 微信 devilsome 赞同来自: 你需要调用graphics.clear   每帧移动都需要clear,draw 2017-07-12 0 0 分享 微博 QZONE 微信 a1284964657 赞同来自: 最新测试出来的效果是  只要设置了 sprite的scale  在移动sprite  sprite.graphics的坐标不会变的。 ...

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

103. 场景切换造成的FPS下降的优化思路请教 [ 51%]

...新上传图片,但是顶点这些信息还是会上传给显卡,其实每帧都在上传这部分信息   2017-03-07 1 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 移除一个界面,需要同时移除自身removeSelf,事件removeEvent,子对象removeChildren,其中removeEvent...

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

104. laya.d3.core.ui3d.UI3D_API3.0 [ 50%]

...ed from Component.onLateUpdate Defined in laya/components/Component.ts:297 每帧更新时执行,在update之后执行,尽量不要在这里写大循环逻辑或者使用getComponent方法 Returns void Optional onPostRender onPostRender(): void Inherited from Component.onPostRender Defined in la...

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

105. setBounds()后无法碰撞 [ 49%]

...游戏需要很多image、骨骼、动画之间的相互碰撞,而且是每帧检测大量碰撞,且碰撞的的物体,比如骨骼是会平凡的变大变小,为了不影响性能,加上rectangle1改变大小很简单,所以选择rectangle加intersects的方式,很适合。 demo后,...

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

106. Laya 集成Box2d 可以么?着急 [ 49%]

...   textture.bitmap.alwaysChange = true;//小游戏使用,非常费,每帧刷新     Laya.stage.graphics.drawTexture(textture);     debugDraw.SetSprite(ctx);     debugDraw.SetDrawScale(30.0);     debugDraw.SetFillAlpha(0.3);     debugDraw.SetLineThickness(1.0);     debu...

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

107. 微信飞机大战 升级版,包含跟踪弹,散弹,道具,积分,难度 [ 48%]

...用道具   游戏不足之处: 1.  主角是根据鼠标的位置,每帧进行移动, 如果玩家点击道具, 会导致主角也跟着去道具的位置 目前解决方法是, 如果鼠标在 到处的范围里面,就不移动了 如果有更好的解决思路,欢迎交流一下 ...

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

108. laya.d3.physics.Rigidbody3D_API3.0 [ 48%]

...ed from Component.onLateUpdate Defined in laya/components/Component.ts:297 每帧更新时执行,在update之后执行,尽量不要在这里写大循环逻辑或者使用getComponent方法 Returns void Optional onPostRender onPostRender(): void Inherited from Component.onPostRender Defined in la...

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

109. laya.components.Animator2D_API3.0 [ 48%]

...ed from Component.onLateUpdate Defined in laya/components/Component.ts:297 每帧更新时执行,在update之后执行,尽量不要在这里写大循环逻辑或者使用getComponent方法 Returns void Optional onPostRender onPostRender(): void Inherited from Component.onPostRender Defined in la...

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

110. Node.ts 节点销毁之后为什么要注释掉 timer 的清理操作。 [ 47%]

...9 赞同来自: 因为timer有一个自管理的update函数,这个函数每帧执行,会自动检测handler是否可回收,当可回收时会自动回收   2022-02-25 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 1645703437用...

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