• Editor
  • The right way for animating alpha to switching object?

I need to make visible/invisible elements into my animation (guns for example).
What is the best way? I can't understand the basic behavior to do this: with the "eye" dot into the Tree or with "set slot color".
Into setup mode I try to make invisible the slot (not the attachment) setting "color slot" to alpha 0 to setup the first gun invisible during the first animation step (is it the right way?).
At the next (at certain frame) I make visible the gun to set alpha 100.
For example when I have a slot containing 10 gun attachments, how can do this? I need (in setup mode) to set each attachment to alpha 0 and the main slot (containing the attachments) still visible or reverse?
After the export for Unity, I continue to see unwanted object...
Many thanks.

Related Discussions
...

Sorry for the confusion.

  1. The visibility dot beside the slot is only to hide and show slots in the editor. This is not exported, so its effects are not shown in-game.
    This is the same for bones.

  2. The visibility dot beside the attachments (images) shows what image is currently chosen for the slot.

  3. The key icon beside the slot keys the active attachment of the slot (2) and not the slot visibility (1), which is only in the editor.

  4. You can choose "no attachments" under a slot by not having any visibility dot enabled on any of them. This essentially means "the slot is empty". You can also key this value with the key icon beside the slot.

  5. So for any set of images that you want to be swappable and you don't want multiple to be visible at the same time, you should add several attachments to the same slot. Then choose your active attachment, or hide all attachments, and key that.

  6. The "alpha" way you described is not ideal because slot colors are subject to mixing (can have unintended visual fade-in and fade-out), and transparent slots are still being drawn by the GPU (can have a negative performance impact for no benefit, especially if there are a lot of them).

PS
We currently have a "slot image chooser" interface in the works and we intend to make this more straightforwardly understandable.

many thanks! I try to apply this example!