Skip to content

Instantly share code, notes, and snippets.

View ArthurD's full-sized avatar

Arthur D'Antonio ArthurD

View GitHub Profile
@ArthurD
ArthurD / EmbedPackageToLocal.cs
Created January 5, 2021 20:08
See the 'PackageToVendor' constant -- set it to decide which pkg to "vendor"/embed locally. References indeed appear to be kept completely intact.
#if UNITY_EDITOR
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEditor.PackageManager.Requests;
using UnityEditor.PackageManager;
using UnityEngine;
namespace Unity.Editor.Example {
@ArthurD
ArthurD / LightProbeRebuilder.cs
Created February 25, 2020 05:45 — forked from keijiro/LightProbeRebuilder.cs
Extracts SH coefficients from light probes, and rebuilds light probes from given SH coefficients.
using UnityEngine;
using UnityEditor;
using System.Collections;
public class LightProbeRebuilderWindow : EditorWindow
{
string text = "Paste extracted coefficients here.";
float multiplier = 1.0f;
[MenuItem("Window/Light Probe Rebuilder")]