- Home /
Question by
JLSCurran · Jul 07, 2020 at 09:32 AM ·
animationanimationclipdotscs1061
AnimationClip.ToDenseClip() causes CS1061, only in build
Hi all,
I'm trying to build the following code:
public void Convert(Entity entity, EntityManager dstManager, GameObjectConversionSystem conversionSystem)
{
DynamicBuffer<PlayClipComponent> buffer = dstManager.AddBuffer<PlayClipComponent>(entity);
foreach (AnimationClip clip in clips)
{
buffer.Add(new PlayClipComponent
{
Clip = clip.ToDenseClip()
});
}
}
This compiles and runs fine in the editor, but when building (Windows x86_64) I get this error:
error CS1061: 'AnimationClip' does not contain a definition for 'ToDenseClip' and no accessible extension method 'ToDenseClip' accepting a first argument of type 'AnimationClip' could be found (are you missing a using directive or an assembly reference?)
I don't have any other build errors. ToDenseClip is an extension method in the Unity.Animation.Hybrid namespace, which I am using.
Thanks for reading; hope someone can help!
Comment
Your answer
Follow this Question
Related Questions
How to Serialize an AnimationState 0 Answers
Animation editor Issue and a weird disappearing bug 1 Answer
Animation Help Needed (Method Not Found) 2 Answers
mecanim stuck 0 Answers
Mirroring animation clip without mirroring root motion node? 0 Answers