CameraPath插件使用

本文介绍了Unity中的CameraPath插件的使用方法,包括路径点设置、路径弯曲度调整、相机视角控制、运动速度设定、延迟设置、路径类型选择、事件调度以及动态添加和配置点位等关键功能。此外,还讲解了如何通过导出XML文件实现点位配置的灵活管理。
摘要由CSDN通过智能技术生成

CameraPath下载路径

一:简单介绍

把要移动的对象放在此处

1 设置很多的路径点,每次经过的X点都可以获取到,看打印面板的显示

2调整路径的弯曲程度,如拉平或者更弯曲

3此路径点处target=camera为相机的FOV视角大小

4此路径点到下一路径点处的运动速度

5此路径点延迟N秒后运动

6整条路径的运动曲径,如正弦、线性等

7事件调度

8在该路径点的旋转角度,可调节,也可以LookAt某个对象

9全局设置

10整条路径的曲线类型,Bezier曲线还是很好用的,取各点的切线值

 

二:事件调度

PathCameraAnimator:

 //Events
    public delegate void AnimationStartedEventHandler();
    public delegate void AnimationPausedEventHandler();
    public delegate void AnimationStoppedEventHandler();
    public delegate void AnimationFinishedEventHandler();
    public delegate void AnimationLoopedEventHandler();
    public delegate void AnimationPingPongEventHandler();
    public delegate void AnimationPointReachedEventHandler();
    public delegate void AnimationCustomEventHandler(string eventName);

    public delegate void AnimationPointReachedWithNumberEventHandler(int pointNumber);

    /// <summary>
    /// Broadcast when the Animation has begun
    /// </summary>
    public event AnimationStartedEventHandler AnimationStartedEvent;
    /// <summary>
    /// Broadcast when the animation is paused
    /// </summary>
    public event AnimationPausedEventHandler AnimationPausedEvent;
    /// <summary>
    /// Broadcast when the animation is stopped
    /// </summary>
    public event AnimationStoppedEventHandler AnimationStoppedEvent;
    /// <summary&
  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

EvanXZ

各位大佬 多多支持

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值