This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
[ExecuteInEditMode] | |
public class BoxCollider2DAlwaysVisible : MonoBehaviour | |
{ | |
public Color color = Color.white; | |
private BoxCollider2D BoxCollider; | |
void Start() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define AUTO_SCENEVIEW //Comentar para dejar de perseguir y poder controlar la pestaña de escena en modo Play | |
using UnityEngine; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
public class sceneview_follow : MonoBehaviour | |
{ | |
#if UNITY_EDITOR && AUTO_SCENEVIEW |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
public class DisableAutoMipMaps : AssetPostprocessor | |
{ | |
public void OnPreprocessTexture() | |
{ | |
TextureImporter texture = assetImporter as TextureImporter; | |
texture.mipmapEnabled = false; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public static class DebugX | |
{ | |
// DebugX.cs Version 2.0 By ARKMS | |
// Hayden Scott-Baron (Dock) - http://starfruitgames.com | |
// Adds a number of useful Debug Draw features | |
public static void DrawCube(Vector3 pos, Color col, Vector3 scale, float _duration = 0f) | |
{ | |
Vector3 halfScale = scale * 0.5f; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Intervalo entre cada Update,, la ventaja es que podemos cambiar | |
//su valor ya sea dentro del mismo cUpdate o desde otra función. | |
float intervalos = 0.5f; | |
void Start() | |
{ | |
StartCoroutine(cUpdate()); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public float Velocidad; | |
public Transform[] Puntos; | |
//Internos | |
int IndexActual = 0; //Index para mover en puntos | |
Vector3 PuntoA; //Punto A para Lerp | |
Vector3 PuntoB; //Punto B para Lerp | |
float t; //Factor tiempo de Lerp | |
float factorT; //Factor de moviemnto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class SaveData : MonoBehaviour | |
{ | |
public SAVEDATACLASS progreso; //es visible desde Inspector | |
public void Guardar() | |
{ | |
//Generamos el formato Json | |
string Archivo = JsonUtility.ToJson(progreso); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//This script put inside a Folder with the name 'Editor' | |
//Developer by ARKMs , use it with total liberty | |
using UnityEngine; | |
using UnityEditor; | |
using System; | |
using System.IO; | |
using System.Collections.Generic; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
using System; | |
using System.Text.RegularExpressions; | |
using System.IO; | |
using System.Linq; | |
using System.Reflection; | |
//Basado en codigo de Prime31Editor | |
//Poner siempre este script dentro de una carpeta llamado 'Editor' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
using System.IO; | |
public class SpriteToTexture : EditorWindow | |
{ | |
private Texture2D Atlas; |
OlderNewer