c# - Unity 动画列表
解决方案
找到解决方案。
public void PlayAnimation(string animationName) {
foreach(AnimationState state in First) {
if (state.name == animationName) {
First.Play(state.name);
break;
}
}
}
PlayAnimation("MenuHide");
然后标记我们的动画,如下所示:https ://forum.unity.com/threads/animationclip-must-be-marked-as-legacy.213952/#post-1494616
https://answers.unity.com/questions/577801/animation-must-be-marked-as-legacy.html
一切都适合我。我希望这可以帮助别人。对不起我的英语。感谢大家,尤其是来自 Stackoverflow RU 的Sergey Mishin
推荐阅读
- azure - Azure 应用服务通过专用链接进行应用服务通信
- javascript - Node.js 应用程序对 http 请求的延迟呈指数增长
- javascript - 调用接口后跳转路由
- php - 从电子邮件上的多个复选框获取 $_POST 的结果
- hive - 迄今为止的配置单元字符串超过了引导函数
- amazon-s3 - AmazonS3EncryptionClientV2 - 无法通过区域提供商链找到区域
- graphql - 如何从 Instagram 获取个人资料图片
- java - Spotify PKCE。错误无效的客户端密码
- kotlin - 如何在 kotlin 中创建鼠标适配器
- javascript - 为什么我们应该用 CSS 模块和 webpack 注入 CSS