Skip to content

Instantly share code, notes, and snippets.

kruncher /
Last active November 8, 2021 10:06
#unity #blender A script for Blender that allows you to swap values of vertex colors with uv coordinates so that a custom Unity shader can make use of two sets of vertex colors.
# Copyright (c) Rotorz Limited. All rights reserved.
# License: MIT
import bpy
bl_info = {
'name': 'Swap Vertex Colors with UVs',
'author': 'Rotorz Limited',
'version': (0, 1),
'blender': (2, 7, 7),
kruncher / AudioManagerExtensions.cs
Last active August 29, 2015 14:25
Designer friendly modular components that can be mixed and matched in an almost "Visual Logic" way thanks to UnityEvent and Zenject. LICENSE: MIT
View AudioManagerExtensions.cs
using UnityEngine;
public static class AudioManagerExtensions {
public static void PlayClip(this IAudioManager audioManager, AudioClip clip) {
audioManager.PlayClip(clip, 1f);