0
$\begingroup$

Im sort of new to blender and i have made a animation that has something disappearing half way through the animation like so-catapult flinging a rock and going back to resting position

I created the disappearing rock affect by key framing the eyeball in the top right of blender enter image description here

When i ported it over to unity though i get the full animation with the rock still there! How do i go about fixing this issue thanks!

$\endgroup$
0
$\begingroup$

I believe it's best to just make this animation in Unity itself. How did you import this animation to unity? Legacy? Was the rock animated seperately? if it was, you could add a script to it, that plays the animation and then destroys the rock gameobject, or you could make an animation in unity and make the gameObject invisible. one way of coding that in C#:

    Transform.Find("Rock").gameObject.enabled = false;

or, if you've made a prefab of the rock, you could just destroy it, and spawn it again if you need it:

    Destroy(Transform.Find("Rock"));
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.