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; | |
//Basado en: https://forum.unity.com/threads/bumpmap-grayscale-to-normalmap-rgb.5714/ | |
public class TextureToNormalmap : MonoBehaviour | |
{ | |
//---CODIGO DE EJEMPLO------------------------------ | |
public Texture2D textura; | |
[Range(10f, 20f)] |
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
Texture2D CombineTexutes(Texture2D _textureA, Texture2D _textureB) | |
{ | |
//Create new textures | |
Texture2D textureResult = new Texture2D(_textureA.width, _textureA.height); | |
//create clone form texture | |
textureResult.SetPixels(_textureA.GetPixels()); | |
//Now copy texture B in texutre A | |
for (int x = 0; x<_textureB.width; x++) | |
{ | |
for (int y = 0; y<_textureB.height; y++) |
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.Text; | |
using UnityEngine; | |
public class DebugLogEmail : MonoBehaviour | |
{ | |
//Llamar desde un boton o presionar una tecla para enviar los logs por email | |
public void MandarEmail() | |
{ | |
StartCoroutine(SendData()); |
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
namespace Arj2D | |
{ | |
public class ShortCutKeys | |
{ | |
private const string MENU_EXTRA_RUN = "Edit/Extra/Run _F6"; | |
private const string MENU_EXTRA_PAUSE = "Edit/Extra/Run _F7"; | |
[MenuItem(MENU_EXTRA_RUN)] | |
private static void Run() | |
{ |
OlderNewer