Advanced FPS Counter Level 11 FREE postmortem

Hey guys!

I’m totally late to the party, but I promised few people to make a blog post on my Level 11 FREE experience, so here is it.
I’ll try to be short.

My Advanced FPS Counter was selected for the September’15 Level 11 and got to the FREE section.
I’ve asked for Level 11 free in the sales sign up form, so it’s was my initiative to go for the Level 11 FREE, I just wished to try it, to see how it will affect my sales, etc.

And here are my observations now, after 2.5 months since my participation start.

My normal average sales of the AFPSCounter are ~26 copies per month.
Level 11 FREE involvement guarantees some compensation from the Unity side. They say it’s an average of your last 3 months or $250 minimum.
I’ve been paid $340,00 USD, which is really nice, since I often make less than this from this plugin.

So, you’re not going to giveaway your plugin in Level 11 FREE and get no money for this, you’re actually paid by the Unity Technologies directly.

In september, I had 3315 copies downloaded by the Level 11 customers (people with pro license or paid subscription) and 41 copies sold to the people who has no access to the Level 11!

To sum up, I’ve got $340 from Unity and $287 from regular sells, very good results.

Level 11 FREE helped my plugin to show up on main page and to top the own category charts, leading to even more visibility.
It lead to the new reviews, new customers, new ratings.

October brought 36 more downloads somehow and 36 sold copies, still higher than my average.

November so far goes more likely as usual, 12 copies sold at the moment when I write this (which extrapolates to the average of 24 to the end of the month).
My participation in Level 11 FREE with one of my plugins didn’t seem to affect both of my other plugins, at least I can’t see it in sale numbers.

Level 11 FREE allows you to get maximum visibility and lots of new customers. Most of them will download your asset just to keep it in their arsenal though.
Some of them will try your product and leave reviews, bug reports and other feedback, which is also very important.
You’ll not lose anything from the Level 11 FREE participation, but you’ll get much – maximum visibility, extra sells to the non-Level 11 people, extra money from Unity Technologies, new reviews, ratings, new feedback and lots of potential customers.

Level 11 FREE is a best option for the new assets, it’s a quick rocket launch for them.
But don’t expect much from it if you have mature asset with good reputation and lots of existing customers.

Share Button

How to nicely select item in the Unity’s two-column Project Browser

Hey, I’ll try to be short.
I’m working on the Maintainer‘s Issues Finder improvements and one of such improvement was to select (show) the scene file at the Project Browser along with target GameObject in the Hierarchy when user press “Show” next to the found issue.

At the first iteration, I did the selection using Selection.objects and it worked great with One-column view mode of the Project Browser.
But things get weird when I switched to the two-column mode: target scene file still get selected, but it didn’t show up until I manually navigated to the folder with that file.

And surprisingly, I faced two common issues here:
1. Unity has no API to let you know in which mode the Project Browser is.
2. Unity has no API to select specific folder in the first column of the Project Browser.

But thankfully, we have ILSpy and reflection! 😉
So, using ILSpy I managed to find all what I need;
UnityEditor.ProjectBrowser class
– static s_LastInteractedProjectBrowser field to access last used ProjectBrowser window (we can have lot of ProjectBrowsers in Unity layout).
– private field m_ViewMode of the ViewMode enum type which has two values – OneColumn (0) and TwoColumns(1)
– private ShowFolderContents() method which expands first column of the TreeView to the specified folder and selects it

And here is a resulting code which selects both object in scene hierarchy and scene file in Project Browser in any column mode (one or two columns):

public void SelectObjectAndScene(GameObject targetGameObjectInScene, string scenePath)
	List<Object> selection = new List<Object>();

	Object sceneFile = AssetDatabase.LoadAssetAtPath(scenePath, typeof(Object));

	Type projectBrowserType = Type.GetType("UnityEditor.ProjectBrowser,UnityEditor");
	if (projectBrowserType != null)
		FieldInfo lastProjectBrowser = projectBrowserType.GetField("s_LastInteractedProjectBrowser", BindingFlags.Static | BindingFlags.Public);
		if (lastProjectBrowser != null)
			object lastProjectBrowserInstance = lastProjectBrowser.GetValue(null);
			FieldInfo projectBrowserViewMode = projectBrowserType.GetField("m_ViewMode", BindingFlags.Instance | BindingFlags.NonPublic);
			if (projectBrowserViewMode != null)
				// 0 - one column, 1 - two column
				int viewMode = (int)projectBrowserViewMode.GetValue(lastProjectBrowserInstance);
				if (viewMode == 1)
					MethodInfo showFolderContents = projectBrowserType.GetMethod("ShowFolderContents", BindingFlags.NonPublic | BindingFlags.Instance);
					if (showFolderContents != null)
						Object sceneFolder = AssetDatabase.LoadAssetAtPath(Path.GetDirectoryName(scenePath), typeof(Object));
						showFolderContents.Invoke(lastProjectBrowserInstance, new object[] { sceneFolder.GetInstanceID(),  true});
						Debug.LogError("Can't find ShowFolderContents method!");
				Debug.LogError("Can't find m_ViewMode field!");
			Debug.LogError("Can't find s_LastInteractedProjectBrowser field!");
		Debug.LogError("Can't find UnityEditor.ProjectBrowser type!");

	Selection.objects = selection.ToArray();

This code might be not elegant and clean since it’s a quick try to leave snippet in the blog. Feel free to correct my where I’m wrong.

P.S.: if you wish only show some file in the Project Browser without selection, just use EditorGUIUtility.PingObject(AssetDatabase.LoadAssetAtPath(scenePath, typeof(Object))); It will work fine with one-column layout and will work with two-column layout if you don’t select anything else.

Share Button

Meet Maintainer Unity3D editor extension!

Maintainer logo

I’m glad to let you know I’ve released my new Asset Store contribution: Maintainer!
It’s going to be your best friend if you like to keep your projects clean and neat.

Currently it has one module: Issues Finder, but there will be more in future.
More details at


Share Button

Happy New Year 2015!

Hey dear readers and strangers!
This year was really great in many ways and I wish everyone to reach all goals, be healthy and closer to your family in new 2015 year.
Merry Christmas and Happy New Year!


Share Button

Unity3D Tweening performance

Hey, I’ll be short =)
I’m going to compare quickly 3 types of tween animations: built-in Legacy Animation, HOTween and DOTween.
I use 5k objects from prefabs as tweens targets.
Tweens are looped, start by default, have 1 sec length and tweening transform position from (0, 0, 0) to (1.3, 1.4, 1.5).

Used software info:
– Unity 4.6 Beta 16.
– HOTween v1.3.350.
– DOTween 0.7.310 Alpha
– Unity profiler with ‘Deep Profile’ enabled.

Initialization resources usage

Let’s compare initialization time and GC allocations first.
Time + GC Allocation + real memory allocation. Time is frame total time. Memory usage includes memory used by objects.

Frame time: ~166.7 ms (from 3 samples)
GC Allocations: 97.8 KB
Total memory usage: ~20.07 MB (from 3 samples)
Frames to initialize: 1

Frame time: ~268.68 ms (from 3 samples) + ~55.62 ms (from 3 samples) for second frame
GC Allocations: 4293 KB + 1.3 KB for second frame
Total memory usage: ~25.1 MB (from 3 samples)
Frames to initialize: 2

Frame time: 122.86 ms (from 3 samples)
GC Allocations: 1800 KB (may be kept away from GC using internal pooling)
Total memory usage: ~10 MB (from 3 samples)
Frames to initialize: 1

Resources usage per frame

Now tweening performance, allocations per frame (excluding constant Unity-releated allocators) and total memory usage while running tweens (memory usage increases for a while after initialization).
Time is frame total time.

Frame time: 12-13 ms
GC Allocations: 0 B

Frame time: 36-40 ms
GC Allocations: 420 B – 672 B (sad face here)

Frame time: 9 ms
GC Allocations: 0 B

Resulting charts

CPU time, ms (lower is better)

Memory usage on initialization, MB (lower is better)

Brand new DOTween gets the best Unity tweening solution award from me!
And it’s free, very flexible, user-friendly and has a great author. It definitely desires donation!

Grab messy benchmark sources (should be compatible with Unity 4.5) here.

Share Button