Announcement

Collapse
No announcement yet.

Dynamic Material Alpha doesn't work

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    Dynamic Material Alpha doesn't work

    I'm trying to make a sphere that grows and becomes transparent over time until it reaches a certain radius. It should start as a small red ball and should end as a big almost-transparent red ball, but I'm having difficulty with the transparency. I'm creating a dynamic material based on a simple material with Base Color (1,0,0,1):

    Click image for larger version  Name:	Creation.PNG Views:	1 Size:	118.5 KB ID:	1672798

    And this is the size and alpha logic:

    Click image for larger version  Name:	BP.PNG Views:	1 Size:	218.2 KB ID:	1672799

    Everything before SetActorScale3D is size related. To get the alpha, I'm lerping from 1 to 0.3. This is giving me the values I want, but in-game, my ball is always non-transparent, as if the alpha setted is being ignored.

    Click image for larger version  Name:	ball.png Views:	1 Size:	396.6 KB ID:	1672800

    Any thoughts about what is happening?
Working...
X