Skip to content

Instantly share code, notes, and snippets.

View DashW's full-sized avatar

Richard Copperwaite DashW

View GitHub Profile
@jbevain
jbevain / README.md
Last active November 16, 2023 12:11
pdb2mdb for Visual Studio 2015

The Visual Studio Tools for Unity are able to convert .NET debug symbol files (namely pdb files) to debug symbols files that are understood by Unity's scripting engine (namely .dll.mdb files) when importing both the .dll and the .pdb in the Assets folder.

If you prefer to handle the conversion yourself you need to call a tool named pdb2mdb on the .dll associated with the .pdb:

pdb2mdb MyLibrary.dll

Will produce a MyLibrary.dll.mdb usable on Unity if MyLibrary.pdb is present.

anonymous
anonymous / AndroidJavaControllerProvider.cs
Created October 4, 2016 14:39
Unity Daydream Technical Preview Controller Bridge Code!
#if UNITY_ANDROID
using UnityEngine;
using System;
using System.Runtime.InteropServices;
using Assets.GoogleVR.Scripts.Controller.Internal.Wrappers;
/// @cond
namespace Gvr.Internal
{
@st4rdog
st4rdog / MipMapBiasAdjusterS.cs
Created November 16, 2017 20:00
Sharpen blurry mipmaps in Unity
using UnityEngine;
using System.Collections;
public class MipMapBiasAdjusterS : MonoBehaviour {
[Header("Settings")]
[Tooltip("A positive bias makes a texture appear extra blurry, while a negative bias sharpens the texture. Note that using large negative bias can reduce performance, so it's not recommended to use more than -0.5 negative bias.)")]
public float _target = -2f;
[Tooltip("Adjust all textures found in scene?")]
public bool _allTexturesOnStart;