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.


Topics - Moran

Pages: [1]
1
Support / Constantly "Rebuilding Index" - Probably VC related
« on: March 24, 2013, 12:47:51 pm »
Hi!

I SVN "Checked out" a project which had a prefab with sprites in it.
Initially it worked well, but then I changed the prefab and undid the change, if I remember right (didn't pay attention).

The result being that for some objects in the prefab, whenever they are clicked or scrolled to, "Rebuilding Index" always appears several times, even if I click away and immediately back to the same object.

I tried Updating again but erasing the -tk2d file as instructed in some post, not helping.

Help?

EDIT: It also results in this error message, after almost every "rebuild": MissingReferenceException: The object of type 'tk2dIndex' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
tk2dEditorUtility.CreateIndex () (at Assets/TK2DROOT/tk2d/Editor/tk2dEditorUtility.cs:215)

2
EDIT: I'll save you the trouble of scrolling through this shameful mess: Check that your objects aren't "static"!

In my scene are two screens, one under the other.
In each screen, several sprites, including two background images sprites for each screen (each screen has 2 sprites as background).
Both screen gameobjects are under a container gameobject, since I want to simulate a scroll animation by moving that container up and down on the Y axis.
When I move the container in the editor, everything moves fine.

When I'm in Play mode, during run time, if I change the container's Y position, everything in the scene moves except the background sprites of BOTH screens. The top screen's background is not moving and the bottom one stays at the bottom. The anchor gizmo that shows where the object's anchor is, is actually moving, but the sprites are not moving with it.

Nowhere in the code am I addressing these particular sprite's positions.

WTF? Help!

Pages: [1]