2D Toolkit Forum
2D Toolkit => Releases => Topic started by: unikronsoftware on August 27, 2012, 12:16:50 am
-
Bugfix
Shader performance bugfix.
-
Hi I'm getting lots of errors regarding the camera anchor after upgrading to this latest version, where there wasn't errors before:
UnassignedReferenceException: The variable _transform of 'tk2dCameraAnchor' has not been assigned.
You probably need to assign the _transform variable of the tk2dCameraAnchor script in the inspector.
UnityEngine.Transform.get_localPosition ()
tk2dCameraAnchor.UpdateTransform () (at Assets/TK2DROOT/tk2d/Code/Camera/tk2dCameraAnchor.cs:64)
tk2dCameraAnchor.Update () (at Assets/TK2DROOT/tk2d/Code/Camera/tk2dCameraAnchor.cs:94)
IndexOutOfRangeException: Array index is out of range.
UnityEditor.Editor.get_target ()
UnityEditor.InspectorWindow.DrawEditors (Boolean isRepaintEvent, UnityEditor.Editor[] editors, Boolean eyeDropperDirty)
UnityEditor.InspectorWindow.OnGUI ()
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)
-
What version were you running before updating to this one?
-
I was running 1.76 final + patch 1.
-
Thats strange. The tk2dCamera stuff shouldn't have changed between those versions. I'll just go and check in case there was some missed merge or some other craziness going on.
Also, do you ALWAYS get this error? does it go away after reloading the scene?
-
It goes away after reloading the scene, the reason because of it was it made iphone wide 480 * 320 make certain textures weird, but all other textures on all other versions look correct.
-
I actually had this patched in the main version - I'll merge that and post a new version shortly.