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
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 / 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
using UnityEngine;
using System.Collections;
using UnityEngine.Networking;
public class TankNetworkConfigurator : NetworkBehaviour
{
public bool runsStandalone = true;
[SyncVar]
public Color RenderersColor;
@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
{
===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)