Skip to content

Instantly share code, notes, and snippets.

View grigb's full-sized avatar

Grig grigb

View GitHub Profile
@luciditee
luciditee / BatchBurner.cs
Last active June 16, 2018 17:09
Batch Burner, a script designed to reduce static mesh draw calls in Unity scenes with a large number of static mesh entities.
/*
* Unity Batch Burner: A script designed to reduce static mesh draw calls automatically in scenes
* with a large amount of static geometry entities.
*
* Copyright 2016-2017 Will Preston & Die-Cast Magic Studios, LLC.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
using UnityEngine;
using System.Collections;
using System.IO;
using System.Runtime.InteropServices;
public class PhotoTaker : MonoBehaviour
{
// Screenshot file settings.
public string temporaryFileName = "temp.png";
public string androidStoragePath = "/mnt/sdcard/TestCameraApp";
@hisasann
hisasann / CachingLoadExample.cs
Last active June 16, 2016 01:11
AssetBundleを使うサンプル
using System;
using UnityEngine;
using System.Collections;
public class CachingLoadExample : MonoBehaviour
{
void Start ()
{
// Clear Cache
Caching.CleanCache();
@esskar
esskar / Foo.cpp
Created September 24, 2012 23:22
passing char*[] from c++ dll Struct to c#
#include <stdio.h>
#include <Windows.h>
struct Name
{
char FirstName[100];
char LastName[100];
char *Array[3];
};