Text animation doesnot work

so on trigger i want the text color to change from 0 to 1 alpha and the color is purple, so if i keep no animation in default state and alpha value to 0 then it will not trigger the state where the animation exists, but if i keep some alpha value initial to the text color then the animation gets trigger but doesnot show the purple color.

Original Post on Discord

by user 546555823451668481

Anything over it?

by user 546555823451668481

Hey, I’m not sure I understand what you’re doing and what’s happening.

If alpha is 1 it plays the animation but the color is wrong and if alpha is 0 the color is correct but the animation doesnt play?

How do you trigger the animation?

  • trigger the animation using spatial trigger
  • the animation is about changing the alpha value of text from 0 to 1
  • at start i don’t want to show any text so i set the alpha to 0
  • when i keep alpha to 0 then the animation doesn’t gets trigger
  • when i keep some alpha value like 0.1 then the animation gets trigger but on increase of alpha value it should show purple color but its shows two differ colors

by user 546555823451668481

Im looking at it :slightly_smiling_face:

thanks

by user 546555823451668481

also i think the spatial trigger deactivates an active object by “set active”

but doesnot activate an object that is deactive

by user 546555823451668481

So its not an easy to fix problem unfortunately but has multiple components that have issues

  • Animating single values in color or vector properties is not supported right now. You need at least one key for all 4 values
  • UnityGLTF serializes the rgba values in a wrong order thats why you see the color changing
  • Threejs animation tracks do currently not animate alpha in cases where you animate a color on a component (like in the Text)
    image.png

so is it possible to do it in a way where i involve all the rgba value in animation? or threejs just doesnot support the alpha?

by user 546555823451668481

I might have a fix - at least it seems to work now in my simple test. Will try it with the text now

20230112-151201_Made_with_Needle_-_Google_Chrome.mp4
20230112-151215_Unity-Threejs_2020_3_light_-CacheMesh-PC_Mac.mp4

is it changing from red to white on its own or you made it do ?

by user 546555823451668481

Its a test animation :slightly_smiling_face: got it working now

how can i do it?

by user 546555823451668481

It will be working in the next update

its not published yet

okay

by user 546555823451668481

and can we use the unity post processing?

by user 546555823451668481

We currently only support setting tonemapping and post exposure using a volume component
image.png

Can you try 2.58.2-pre if the text color animation now works?