Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - undream

Pages: [1]
1
Definitely better!
What about the textmesh?

As far as I can see, with or wthout the adapter script, textmesh changes are not reflected in the animation window, no keyframes are being added in record mode (for editor changes to color of textmesh) or no animation parameter changes are reflected in the editor window (just like the sprite problem). I think, somehow the animation window and the textmesh color are completely unrelated/seperate.

thanks!

2
Animator does not show the changes that happens in text mesh color/alpha

3
Thank your for the quick reply. it works well for sprites, except it is 1 frame late (therefore the final frame of animation is stuck)
For me, it does not work for text meshes..

4
I have the same problem of keyframes being added, looking for a solution. In my case, it's quite annoying since there are a lot of animated propertes.

5
Support / Animating Sptire Alpha with Unity3D Animation Editor
« on: August 13, 2013, 01:48:50 pm »
Hello.
I'm trying to animate the sprite alpha using the built-in animation editor of unity 3D. I've edited the "color.a" property under "Tk 2d sliced sprite (script)" but it was not updating the alpha.
Then I've found a script, tk2d animation adapter, by googleing about the problem. Here is the script.

Code: [Select]
using UnityEngine;
using System.Collections;

[ExecuteInEditMode]
public class tk2dAnimationAdapter : MonoBehaviour {

public Color color = Color.white;
tk2dBaseSprite sprite = null;

// Use this for initialization
void Start() {
sprite = GetComponent<tk2dBaseSprite>();

if (sprite != null)
{
sprite.color = color;
}
}

// Update is called once per frame
void Update () {
if (sprite != null && sprite.color != color)
{
sprite.color = color;
}
}
}

When I attach this script to my objects, everything works fine. However, when I preview the animation using te animation editor wondow, since it "commits" every change, the animation editor records new keyframes to tk2d sliced sprite's color.a property.

I'm looking for a smooth solution to update the alpha via animation editor.

Thank you.

Pages: [1]