Unity animatin Culling Type


问题:播放一入场动画(对象从镜头外跳入进镜头)打包发现在手机上看不到动画播放


原因:动画播放在镜头外且 animation组件 Culling Type 设置不当   


 Culling Type 改为:  即可。



http://game.ceeger.com/Script/Enumerations/AnimationCullingType/AnimationCullingType.html

        

AnimationCullingType 动画消隐类型

Enumeration

This enum controlls culling of Animation component.

这个枚举控制动画组件的消隐。

When culling is enabled, Unity might stop animating if it thinks that the results of the animation won't be visible to the user. This could save you some performance if you have things animating outside of the viewport, whose animation is only important when the user can actually see the thing that is being animated. When Animation component is culled it won't do anything: it won't update animation states, execute events or sample animations.

当消隐启用,如果它认为动画的结果不会对用户可见,Unity可能会停止动画。如果有些东西在视口以为动画,这可以为您节省一些性能,当用户实际看到的东西正在动画,这些动画是最重要的。当动画组件被消隐时,它不会做任何事情:它不会更新动画状态、执行事件或采样动画。

Values

  • Animation culling is disabled - object is animated even when offscreen.
    动画消隐被禁用 - 即使物体在屏幕外也动画。
  • Animation is disabled when renderers are not visible.
    当渲染不可见时,动画被禁用。
  • Animation is disabled when Animation.localBounds are not visible.
    Animation.localBounds不可见时,动画被禁用。
  • Animation is disabled when Animation.localBounds are not visible.
    Animation.localBounds不可见时,动画被禁用。



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值