Unity 社区

融合树调用代码问题

,3 年前
发布于技术支持
0

问题描述

我现在这个想使用融合树做一个动作。却出现了一下问题。请帮忙看一下什么问题。 Assets\BT.cs(28,18): error CS1061: 'Animation' does not contain a definition for 'SetFloat' and no accessible extension method 'SetFloat' accepting a first argument of type 'Animation' could be found (are you missing a using directive or an assembly reference?)

Unity版本

2013.6

平台

window

相关代码

错误日志

105 次浏览
评论 0
1个回答
0
把Animation类改成 Animator就解决了。
3 年前回答
评论 0

AI

全新AI功能上线

1. 基于Unity微调:专为Unity优化,提供精准高效的支持。

2. 深度集成:内置于团结引擎,随时查阅与学习。

3. 多功能支持:全面解决技术问题与学习需求。

AI