美文网首页
unity 战神4奎爷的回旋战斧

unity 战神4奎爷的回旋战斧

作者: 安宇辛 | 来源:发表于2021-09-24 10:10 被阅读0次
    项目预览
    一:原作地址
    https://www.youtube.com/watch?v=M-3P59GtRW4

    二:项目源码
    https://github.com/mixandjam/GodofWar-AxeThrow.git

    三:运行结果
    运行环境:2018.4.36f1
    报错

    //报错1
    Library/PackageCache/com.unity.probuilder@4.0.4/Settings/Editor/UserSettingsProvider.cs(15,19): error CS0234: The type or namespace name 'UIElements' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)
    //修改 把UNITY_2018_3  改为UNITY_2018_4
    

    特别注意
    导入后打开场景出现了脚本丢失,从新添加脚本报错
    Can't add script behaviour CallbackExecutor. The script needs to derive from MonoBehaviour!
    需要进入到ThrowController.cs

    public class ThrowController : MonoBehaviour   
    改成public class ThrowController: MonoBehaviour
    

    操作说明
    鼠标滑动可以改变镜头,右键是挥动蓄力,出现瞄准点,然后左键砍出,然后左键返回

    可以快乐的玩耍了 砍中了

    相关文章

      网友评论

          本文标题:unity 战神4奎爷的回旋战斧

          本文链接:https://www.haomeiwen.com/subject/pevrgltx.html