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 - m3taphysics

Pages: [1]
1
Support / Tilemap Chunks
« on: November 18, 2013, 10:00:46 pm »
Hi

I am just looking into developing something which requires "groups" of tile maps. In that, the levels are pieced together given a larger set of tiles. Rather than individual tiles.

There is a few ways I can think of doing this. Each "tile-group" is a separate tile-map (but I am worried about speed?). You can then drag and drop the pre-fabs into the scene, each a separate tile-map-group.

I can write extensions to the tools. To maybe "apply" one tile-set to a larger tile-set. Although this seems a bit more difficult.

My eventual aim is to be able to (in-game) drag and drop these tilemaps together.

Alternatively.... I can not use tilemaps and develop my own out-of-the-box for this but I quite like the additional features I have with the tilemaps.

2
Support / Sprite Collections Not Working
« on: October 28, 2012, 10:34:02 am »
Hi, Im getting lots and lots of errors when trying to setup sprite collections.

Firstly there is very little details on how to setup a SpriteCollection. I eventually figured out its a component which has a button to open the SpriteCollection editor (its no where in the documentation). Although it does have details on how to setup sprites once you get to this.

If I open up the spider collection, that works fine and I get no errors.  If I try to create my own like so:

Create a GameObject -> Attach a SpriteCollection to it -> Drag onto prefab -> Hit "open editor", I get the following errors:

Code: [Select]
NullReferenceException: Object reference not set to an instance of an object
tk2dEditor.SpriteCollectionEditor.SpriteCollectionProxy.CopyFromSource () (at Assets/TK2DROOT/tk2d/Editor/Sprites/SpriteCollectionEditor/tk2dSpriteCollectionEditorProxy.cs:24)
tk2dEditor.SpriteCollectionEditor.SpriteCollectionProxy..ctor (.tk2dSpriteCollection obj) (at Assets/TK2DROOT/tk2d/Editor/Sprites/SpriteCollectionEditor/tk2dSpriteCollectionEditorProxy.cs:17)
tk2dSpriteCollectionEditorPopup.SetGenerator (.tk2dSpriteCollection spriteCollection) (at Assets/TK2DROOT/tk2d/Editor/Sprites/SpriteCollectionEditor/tk2dSpriteCollectionEditorPopup.cs:222)
tk2dSpriteCollectionEditor.OnInspectorGUI () (at Assets/TK2DROOT/tk2d/Editor/Sprites/SpriteCollectionEditor/tk2dSpriteCollectionEditor.cs:44)
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)


NullReferenceException: Object reference not set to an instance of an object
tk2dSpriteCollectionEditorPopup.<DrawToolbar>m__9 (System.Object userData, System.String[] options, Int32 selected) (at Assets/TK2DROOT/tk2d/Editor/Sprites/SpriteCollectionEditor/tk2dSpriteCollectionEditorPopup.cs:335)


ArgumentException: Getting control 0's position in a group with only 0 controls when doing Repaint
Aborting
UnityEngine.GUILayoutGroup.GetNext ()
UnityEngine.GUILayoutUtility.BeginLayoutGroup (UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options, System.Type LayoutType)
UnityEngine.GUILayout.BeginVertical (UnityEngine.GUIContent content, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options)
UnityEngine.GUILayout.BeginVertical (UnityEngine.GUILayoutOption[] options)
tk2dSpriteCollectionEditorPopup.OnGUI () (at Assets/TK2DROOT/tk2d/Editor/Sprites/SpriteCollectionEditor/tk2dSpriteCollectionEditorPopup.cs:719)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)


ArgumentException: Getting control 0's position in a group with only 0 controls when doing Repaint
Aborting
UnityEngine.GUILayoutGroup.GetNext ()
UnityEngine.GUILayoutUtility.BeginLayoutGroup (UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options, System.Type LayoutType)
UnityEngine.GUILayout.BeginVertical (UnityEngine.GUIContent content, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options)
UnityEngine.GUILayout.BeginVertical (UnityEngine.GUILayoutOption[] options)
tk2dSpriteCollectionEditorPopup.OnGUI () (at Assets/TK2DROOT/tk2d/Editor/Sprites/SpriteCollectionEditor/tk2dSpriteCollectionEditorPopup.cs:719)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)


I can work on other things until this is resolved but its slowing down production, we are on a tight deadline!

Thanks.

Pages: [1]