Skip to content

Instantly share code, notes, and snippets.

@solkar
solkar / ClearShaderCache.cs
Created May 19, 2017 08:52
UnityEditor script to clear shader cache
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using System.IO;
public class ClearShaderCache : MonoBehaviour
{
[MenuItem("Tools/Clear shader cache")]
@solkar
solkar / EventClassWithoutEvent.cs
Last active July 13, 2017 06:45
Subscribing for events using lambda expressions
public class EventClassWithoutEvent
{
public Action OnChange { get; set; }
public void Raise()
{
if (OnChange != null)
{
OnChange();
}
}
@solkar
solkar / BakeStaticCubemap.cs
Created July 17, 2017 13:24
Bake into Cubemap Unity Editor Script
/*
* This confidential and proprietary software may be used only as
* authorised by a licensing agreement from ARM Limited
* (C) COPYRIGHT 2014 ARM Limited
* ALL RIGHTS RESERVED
* The entire notice above must be reproduced on all authorised
* copies and copies may only be made to the extent permitted
* by a licensing agreement from ARM Limited.
*/
@solkar
solkar / Exercises.md
Last active December 24, 2020 13:00
Tony Williams style analysis and exercises