Skip to content

Instantly share code, notes, and snippets.

View ArturoNereu's full-sized avatar
🌌
Importing Small Assets

Arturo Nereu ArturoNereu

🌌
Importing Small Assets
View GitHub Profile
===Tilemaps===
- Create Empy GO
- LMB -> Create tile map
- Drag and drop to show brush
- Picker
- Window -> TileMap Palette (searches for sprites with the same size to qualify them as tiles)
- Paint color to tint the sprites -> With trees
**Make Level**
- Clear with bucket and background -> Name that tilemap background (No layer support yet)
@ArturoNereu
ArturoNereu / UI-Fast-Default
Created April 8, 2016 18:12
A simpler version of the UI Shader for mobile and low spec devices
Shader "UI/Fast-Default"
{
Properties
{
[PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {}
_Color ("Tint", Color) = (1,1,1,1)
}
SubShader
{
using UnityEngine;
using System.Collections;
using UnityEngine.Networking;
public class TankNetworkConfigurator : NetworkBehaviour
{
public bool runsStandalone = true;
[SyncVar]
public Color RenderersColor;
@ArturoNereu
ArturoNereu / BareBoneShader.shader
Created October 11, 2016 22:32
The basic shader for Unity. A template to make more advanced ones.
Shader "CustomShaders/BareBoneShader"
{
//Properties
Properties
{
_Color("Main Color", Color) = (1,1,1,1)
}
//Subshaders
SubShader
Get Unity: https://store.unity.com/
Android SDK: https://developer.android.com/studio/intro/update.html
ConstructVR: https://www.constructvr.io
Asset Store: https://www.assetstore.unity3d.com/
@ArturoNereu
ArturoNereu / unity.gitignore
Created December 4, 2016 00:02
Useful gitignorefile for repos with Unity project not located in the root
# =========================
# Project Specific Ignores
# =========================
# =========================
# General Unity Files
# =========================
[Ll]ibrary/
@ArturoNereu
ArturoNereu / unity_helpers.py
Last active June 5, 2019 22:07
A collection of Python functions to make my life outside the Unity Editor easier
# A collection of Python functions to make my life outside the Unity Editor Easier
# Author: Arturo Nereu @ArturoNereu
# License: Do whatever you want with the code
import os
def removeMetaFiles(dirName):
for root, dirs, files in os.walk(dirName):
for name in files:
if name.endswith(".meta"):
fileToDelete = os.path.join(root, name)
@ArturoNereu
ArturoNereu / CameraControl.cs
Created May 22, 2017 15:53
Una versión corregida del script CameraControl.cs para seguir el tutorial de Tanks! https://www.youtube.com/playlist?list=PLyAKiFBsTZgFPMiOabrpxLq7EviYGwujy
using UnityEngine;
namespace Complete
{
public class CameraControl : MonoBehaviour
{
public float m_DampTime = 0.2f; // Approximate time for the camera to refocus.
public float m_ScreenEdgeBuffer = 4f; // Space between the top/bottom most target and the screen edge.
public float m_MinSize = 6.5f; // The smallest orthographic size the camera can be.
public Transform[] m_Targets; // All the targets the camera needs to encompass.
@ArturoNereu
ArturoNereu / NeonHowTo
Created February 6, 2018 18:29
Steps on how to demo the Neon Project.
NEON DEMO - How To
Neon Demo.Unity
- Talk about the Timelines.
- Turn On and Off the Post Processing Volumes - Maybe turno each effect off and start turning them on and explaining them.
- Turn On and Off the Scene Ligthing
- Mention roughly, how the scene was constructed
* Buoy.
* Skybox.
* Buildings.
@ArturoNereu
ArturoNereu / manifest.json
Created March 10, 2018 07:17
This is the manifest.json needed for the https://gcl.unity.com/projects/shader-graph-intro-demo on 2018.1b4
{
"registry" : "https://staging-packages.unity.com",
"dependencies" :
{
"com.unity.render-pipelines.lightweight": "0.1.28",
"com.unity.shadergraph" : "0.1.17"
}
}