add some extra assets FX and SFX

This commit is contained in:
Robii Aragon
2026-03-29 23:03:14 -07:00
parent 6ef3eb1535
commit 24dc66a81e
10142 changed files with 2535978 additions and 36608 deletions

View File

@@ -10,23 +10,23 @@ using UnityEditor;
public class initialPopUpWindow : EditorWindow
{
GUISkin guiSkin;
GUISkin guiSkin;
Texture2D GKCLogo = null;
Vector2 rectSize = new Vector2 (670, 690);
Texture2D GKCLogo = null;
Vector2 rectSize = new Vector2 (670, 690);
GUIStyle titleStyle = new GUIStyle ();
GUIStyle style = new GUIStyle ();
GUIStyle titleStyle = new GUIStyle ();
GUIStyle style = new GUIStyle ();
Vector2 screenResolution;
Vector2 screenResolution;
float windowHeightPercentage = 0.7f;
float windowHeightPercentage = 0.6f;
float minHeight = 500f;
float minHeight = 500f;
Vector2 scrollPos1;
Vector2 scrollPos1;
public bool checkForPresetsActive;
public bool checkForPresetsActive;
Vector2 previousRectSize;
@@ -35,112 +35,112 @@ public class initialPopUpWindow : EditorWindow
Rect windowRect = new Rect ();
[MenuItem ("Game Kit Controller/Initial Pop Up", false, 601)]
public static void AboutGKC ()
{
GetWindow<initialPopUpWindow> ();
}
[MenuItem ("Game Kit Controller/Initial Pop Up", false, 601)]
public static void AboutGKC ()
{
GetWindow<initialPopUpWindow> ();
}
string messageText = "IMPORTANT: \n\n" +
string messageText = "IMPORTANT: \n\n" +
" * TAGS AND LAYERS AND INPUT SETTINGS IMPORT\n\n" +
"Make sure the TAG/LAYERS and INPUT have been imported properly. " +
"You can find the TAGMANAGER and INPUTMANAGER presets on the folder: \n\n" +
"Assets->Game Kit Controller->Presets \n\n" +
"Press each one in order for these settings to be added automatically to the project." +
"You can also import these presets with the button at the end of this window." +
" * TAGS AND LAYERS AND INPUT SETTINGS IMPORT\n\n" +
"Make sure the TAG/LAYERS and INPUT have been imported properly. " +
"You can find the TAGMANAGER and INPUTMANAGER presets on the folder: \n\n" +
"Assets->Game Kit Controller->Presets \n\n" +
"Press each one in order for these settings to be added automatically to the project." +
"You can also import these presets with the button at the end of this window." +
"\n\n" +
"\n\n" +
" * CHARACTERS FALLING IN GROUND OR MISSING ANIMATIONS\n\n" +
" * CHARACTERS FALLING IN GROUND OR MISSING ANIMATIONS\n\n" +
"You may notice that the player or AI is crossing " +
"the ground or not playing some animations properly.\n\n" +
"You may notice that the player or AI is crossing " +
"the ground or not playing some animations properly.\n\n" +
"It is not a bug, make sure to import the animation " +
"package from the public repository of the asset.\n\n" +
"It is not a bug, make sure to import the animation " +
"package from the public repository of the asset.\n\n" +
"It is better explained on the doc, it is a group " +
"of animations used on the action system" +
" examples and the melee combat, just as placeholder, " +
"so you can replace them at any moment, as any animation " +
"will work properly.\n\n" +
"It is better explained on the doc, it is a group " +
"of animations used on the action system" +
" examples and the melee combat, just as placeholder, " +
"so you can replace them at any moment, as any animation " +
"will work properly.\n\n" +
"Import the package, close and open unity " +
"and voila, all configured by it self.\n\n" +
"Import the package, close and open unity " +
"and voila, all configured by it self.\n\n" +
"You can use the alternative link for the animations package if you prefer.\n\n" +
"You can use the alternative link for the animations package if you prefer.\n\n" +
"Also, you can import the slice system and buoyancy packages from the public repository.\n\n\n" +
"Also, you can import the slice system and buoyancy packages from the public repository.\n\n\n" +
"This message won't appear agin.";
"This message won't appear agin.";
void OnEnable ()
{
GKCLogo = (Texture2D)Resources.Load ("Logo_reworked", typeof(Texture2D));
void OnEnable ()
{
GKCLogo = (Texture2D)Resources.Load ("Logo_reworked", typeof (Texture2D));
screenResolution = new Vector2 (Screen.currentResolution.width, Screen.currentResolution.height);
screenResolution = new Vector2 (Screen.currentResolution.width, Screen.currentResolution.height);
float windowHeight = screenResolution.y * windowHeightPercentage;
float windowHeight = screenResolution.y * windowHeightPercentage;
windowHeight = Mathf.Clamp (windowHeight, minHeight, screenResolution.y);
windowHeight = Mathf.Clamp (windowHeight, minHeight, screenResolution.y);
rectSize = new Vector2 (670, windowHeight);
}
rectSize = new Vector2 (670, windowHeight);
}
public void Init ()
{
public void Init ()
{
}
}
void OnDisable ()
{
checkOnCloseWindow ();
}
void OnDisable ()
{
checkOnCloseWindow ();
}
void OnGUI ()
{
this.titleContent = new GUIContent ("GKC Initial Info");
this.minSize = rectSize;
void OnGUI ()
{
this.titleContent = new GUIContent ("GKC Initial Info");
this.minSize = rectSize;
EditorGUILayout.Space ();
EditorGUILayout.Space ();
EditorGUILayout.Space ();
EditorGUILayout.Space ();
EditorGUILayout.Space ();
EditorGUILayout.Space ();
GUILayout.BeginHorizontal ();
GUILayout.FlexibleSpace ();
GUILayout.Label (GKCLogo, GUILayout.MaxHeight (100));
GUILayout.FlexibleSpace ();
GUILayout.EndHorizontal ();
GUILayout.BeginHorizontal ();
GUILayout.FlexibleSpace ();
GUILayout.Label (GKCLogo, GUILayout.MaxHeight (100));
GUILayout.FlexibleSpace ();
GUILayout.EndHorizontal ();
if (!guiSkin) {
guiSkin = Resources.Load ("GUI") as GUISkin;
}
GUI.skin = guiSkin;
if (!guiSkin) {
guiSkin = Resources.Load ("GUI") as GUISkin;
}
GUI.skin = guiSkin;
GUILayout.BeginVertical ("window");
GUILayout.BeginVertical ("window");
GUILayout.BeginHorizontal ("box");
GUILayout.FlexibleSpace ();
GUILayout.BeginHorizontal ("box");
GUILayout.FlexibleSpace ();
windowRect = GUILayoutUtility.GetLastRect ();
// windowRect.position = new Vector2 (0, windowRect.position.y);
windowRect.width = this.maxSize.x;
windowRect = GUILayoutUtility.GetLastRect ();
// windowRect.position = new Vector2 (0, windowRect.position.y);
windowRect.width = this.maxSize.x;
titleStyle.normal.textColor = Color.white;
titleStyle.fontStyle = FontStyle.Bold;
titleStyle.fontSize = 17;
titleStyle.alignment = TextAnchor.MiddleCenter;
GUILayout.Label ("Game Kit Controller Initial Info", titleStyle);
titleStyle.normal.textColor = Color.white;
titleStyle.fontStyle = FontStyle.Bold;
titleStyle.fontSize = 17;
titleStyle.alignment = TextAnchor.MiddleCenter;
GUILayout.Label ("Game Kit Controller Initial Info", titleStyle);
GUILayout.FlexibleSpace ();
GUILayout.EndHorizontal ();
GUILayout.FlexibleSpace ();
GUILayout.EndHorizontal ();
GUILayout.BeginHorizontal ();
GUILayout.Label ("Window Height", EditorStyles.boldLabel, GUILayout.MaxWidth (maxLayoutWidht));
@@ -157,82 +157,93 @@ public class initialPopUpWindow : EditorWindow
EditorGUILayout.Space ();
EditorGUILayout.Space ();
EditorGUILayout.Space ();
style = new GUIStyle (EditorStyles.helpBox);
style.richText = true;
style = new GUIStyle (EditorStyles.helpBox);
style.richText = true;
style.fontSize = 15;
style.fontStyle = FontStyle.Bold;
GUILayout.BeginHorizontal ();
style.fontSize = 15;
style.fontStyle = FontStyle.Bold;
GUILayout.BeginHorizontal ();
scrollPos1 = EditorGUILayout.BeginScrollView (scrollPos1, false, false);
scrollPos1 = EditorGUILayout.BeginScrollView (scrollPos1, false, false);
//EditorGUILayout.HelpBox ("", MessageType.Info);
//EditorGUILayout.HelpBox ("", MessageType.Info);
EditorGUILayout.LabelField (messageText, style);
EditorGUILayout.LabelField (messageText, style);
EditorGUILayout.EndScrollView ();
EditorGUILayout.EndScrollView ();
GUILayout.EndHorizontal ();
GUILayout.EndHorizontal ();
EditorGUILayout.Space ();
EditorGUILayout.Space ();
if (GUILayout.Button ("Public Repository")) {
Application.OpenURL ("https://github.com/sr3888/GKC-Public-Repository");
}
if (GUILayout.Button ("Public Repository")) {
Application.OpenURL ("https://github.com/sr3888/GKC-Public-Repository");
}
EditorGUILayout.Space ();
EditorGUILayout.Space ();
if (GUILayout.Button ("Alternative Package Google Drive Link")) {
Application.OpenURL ("https://drive.google.com/file/d/1lr6ReFs19bJu81B4t8sWfqMJqAxfzwwW/view?usp=sharing");
}
if (GUILayout.Button ("Alternative Animations Package Google Drive Link")) {
Application.OpenURL ("https://drive.google.com/file/d/1oiHyYl34d_ie6EaDSj79jiruEUz5UALd/view?usp=sharing");
}
EditorGUILayout.Space ();
EditorGUILayout.Space ();
if (GUILayout.Button ("Tutorial To Use Generic Models")) {
Application.OpenURL ("https://www.youtube.com/watch?v=XABt9LvzRaY");
}
if (GUILayout.Button ("Tutorial To Use Generic Models")) {
Application.OpenURL ("https://www.youtube.com/watch?v=XABt9LvzRaY");
}
EditorGUILayout.Space ();
EditorGUILayout.Space ();
if (GUILayout.Button ("Apply InputManager & TagManager Presets Project Settings")) {
applyPresetSystem.GKCapplyProjectSettings ();
}
if (GUILayout.Button ("Apply InputManager & TagManager Presets Project Settings")) {
applyPresetSystem.GKCapplyProjectSettings ();
}
EditorGUILayout.Space ();
EditorGUILayout.Space ();
if (GUILayout.Button ("Close")) {
checkOnCloseWindow ();
this.Close ();
}
GUILayout.BeginHorizontal ();
if (GUILayout.Button ("Enable Systems With Custom Shaders")) {
GKC_Utils.enableOrDisableOptionsWithCustomShaders (true);
}
if (GUILayout.Button ("Disable Systems With Custom Shaders")) {
GKC_Utils.enableOrDisableOptionsWithCustomShaders (false);
}
GUILayout.EndHorizontal ();
GUILayout.EndVertical ();
}
EditorGUILayout.Space ();
void checkOnCloseWindow ()
{
openInitialPopUpWindow mainOpenInitialPopUpWindow = FindObjectOfType<openInitialPopUpWindow> ();
if (GUILayout.Button ("Close")) {
checkOnCloseWindow ();
this.Close ();
}
if (mainOpenInitialPopUpWindow != null) {
mainOpenInitialPopUpWindow.setShowInitialPopWindowEnabledState (false);
GUILayout.EndVertical ();
}
GKC_Utils.updateComponent (mainOpenInitialPopUpWindow);
void checkOnCloseWindow ()
{
openInitialPopUpWindow mainOpenInitialPopUpWindow = FindObjectOfType<openInitialPopUpWindow> ();
GKC_Utils.updateDirtyScene ("Update Initial Pop Up", mainOpenInitialPopUpWindow.gameObject);
}
if (mainOpenInitialPopUpWindow != null) {
mainOpenInitialPopUpWindow.setShowInitialPopWindowEnabledState (false);
mainManagerAdministrator mainMainManagerAdministrator = FindObjectOfType<mainManagerAdministrator> ();
GKC_Utils.updateComponent (mainOpenInitialPopUpWindow);
if (mainMainManagerAdministrator != null) {
mainMainManagerAdministrator.setSpawnManagerOnAwakeDisableddByName ("INITIAL POP UP WINDOW");
}
GKC_Utils.updateDirtyScene ("Update Initial Pop Up", mainOpenInitialPopUpWindow.gameObject);
}
if (checkForPresetsActive) {
applyPresetSystem.GKCapplyProjectSettings ();
mainManagerAdministrator mainMainManagerAdministrator = FindObjectOfType<mainManagerAdministrator> ();
checkForPresetsActive = false;
}
}
if (mainMainManagerAdministrator != null) {
mainMainManagerAdministrator.setSpawnManagerOnAwakeDisableddByName ("INITIAL POP UP WINDOW");
}
if (checkForPresetsActive) {
applyPresetSystem.GKCapplyProjectSettings ();
checkForPresetsActive = false;
}
}
}
#endif