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
Shader "Custom/Transparent Write To Depth" | |
{ | |
Properties | |
{ | |
_Color ("Color (RGBA)", Color) = (1.0, 1.0, 1.0, 0.5) | |
} | |
SubShader | |
{ | |
Pass | |
{ |
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; | |
/// <summary> | |
/// Allows the use of C# property as inspector values in Unity. | |
/// </summary> | |
/// <example> | |
/// <code> | |
/// [SerializeField, GetSet("SomeFloat")] | |
/// private float _someFloat; | |
/// public float SomeFloat |
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
// Kongregate API integration in Unity3D (UnityScript version) | |
// | |
// 1. Create a "KongAPI" game object in your very first scene. | |
// 2. Create a new script "KongAPI.js". | |
// 3. Fill it with the following code : | |
#pragma strict | |
static var isConnected:boolean = false; | |
static var userId:int = 0; |