magique
Full Member
 
Posts: 194
Posts: 194
|
Post by magique on Aug 29, 2017 17:53:25 GMT
There seems to be something wrong with the latest version of Core Gamekit. I create a fresh project and only import Core Gamekit. Then I click on the LevelWaveSettings prefab and click the create LevelWaveSettings prefab. This creates the LevelWaveSettings in my scene hierarchy. So far so good. Then I click on Use Global Waves so that The Level Wave Settings section is no longer DISABLED. However, It now just shows the following text: "You have no levels set up." But there is no buttons to add a level anymore. If I use this same version of Core GameKit in a project that already had levels set up then they are visible and the buttons to add more levels are there. But with a fresh LevelWaveSettings in a fresh project and fresh scene, the buttons are not there. I keep thinking I must have forgotten some fundamental thing, but the documentation simply says to click the Plus icon to create a new level, but there is no such button there. See screenshot below:  I am using Unity 5.5.4p3
|
|
magique
Full Member
 
Posts: 194
Posts: 194
|
Post by magique on Aug 29, 2017 18:53:33 GMT
I figured it out. The LevelSettingsInspector.cs file is missing this code:
EditorGUILayout.BeginHorizontal(GUILayout.MaxWidth(50));
var addText = string.Format("Click to add level{0}.", _settings.LevelTimes.Count > 0 ? " at the end" : "");
// Main Add button GUI.contentColor = DTInspectorUtility.AddButtonColor; if (GUILayout.Button(new GUIContent("Add", addText), EditorStyles.toolbarButton))
{ _isDirty = true; CreateNewLevelAfter(); } GUI.contentColor = Color.white;
EditorGUILayout.EndHorizontal();
|
|
|
Post by DarkTonic Dev on Aug 29, 2017 21:03:05 GMT
Thank you, will fix ASAP.
|
|
|
Post by evanidul on Sept 20, 2017 5:09:09 GMT
I also have this same issue with a fresh install. Just purchased today. magique, where in LevelSettingsInspector.cs should I insert your code?
|
|
|
Post by evanidul on Sept 20, 2017 5:15:12 GMT
ok nm, I just added it below:
DTInspectorUtility.ShowColorWarningBox("You have no Levels set up.");
so it looks like:
if (_settings.LevelTimes.Count == 0) { DTInspectorUtility.ShowColorWarningBox("You have no Levels set up.");
EditorGUILayout.BeginHorizontal(GUILayout.MaxWidth(50));
var addText = string.Format("Click to add level{0}.", _settings.LevelTimes.Count > 0 ? " at the end" : "");
// Main Add button GUI.contentColor = DTInspectorUtility.AddButtonColor; if (GUILayout.Button(new GUIContent("Add", addText), EditorStyles.toolbarButton))
{ _isDirty = true; CreateNewLevelAfter(); } GUI.contentColor = Color.white;
EditorGUILayout.EndHorizontal(); }
|
|
|
Post by DarkTonic Dev on Sept 20, 2017 5:40:06 GMT
Yeah that's the one.
|
|
|
Post by starfoxy on Sept 21, 2017 4:06:02 GMT
Wow am I ever glad I found this thread. Thank you magique. Thank you. I thought I was going insane as I was just getting started on a fresh install after a hiatus.
|
|
|
Post by DarkTonic Dev on Sept 21, 2017 5:51:42 GMT
I'll submit the update soon.
|
|