plantilla base para movimiento básico
This commit is contained in:
Robii Aragon
2026-02-05 05:07:55 -08:00
parent ed7b223c04
commit fd87a6ffd5
14441 changed files with 13711084 additions and 20 deletions

View File

@@ -0,0 +1,61 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
#if UNITY_2019_4_9_OR_NEWER
using UnityEditor.Presets;
#endif
#endif
public class applyPresetSystem : MonoBehaviour
{
public static void GKCapplyProjectSettings ()
{
#if UNITY_EDITOR
print ("Apply tag manager and input manager presets");
#if UNITY_2019_4_9_OR_NEWER
Preset mainInputPreset = AssetDatabase.LoadAssetAtPath<Preset> ("Assets/Game Kit Controller/Presets/GKC InputManager.preset");
#endif
SerializedObject mainInputManager = new SerializedObject (AssetDatabase.LoadAllAssetsAtPath ("ProjectSettings/InputManager.asset") [0]);
if (mainInputManager != null) {
Object inputManagerTargetObject = mainInputManager.targetObject;
#if UNITY_2019_4_9_OR_NEWER
mainInputPreset.ApplyTo (inputManagerTargetObject);
#endif
}
#if UNITY_2019_4_9_OR_NEWER
Preset tagManagerPreset = AssetDatabase.LoadAssetAtPath<Preset> ("Assets/Game Kit Controller/Presets/GKC TagManager.preset");
#endif
SerializedObject tagManager = new SerializedObject (AssetDatabase.LoadAllAssetsAtPath ("ProjectSettings/TagManager.asset") [0]);
if (tagManager != null) {
Object tagManagerTargetObject = tagManager.targetObject;
#if UNITY_2019_4_9_OR_NEWER
tagManagerPreset.ApplyTo (tagManagerTargetObject);
#endif
}
#endif
}
}