Skip to content

Instantly share code, notes, and snippets.

@naojitaniguchi
naojitaniguchi / SimpleBGMPlayer.cs
Created July 21, 2015 08:56
SimpleBGMPlayer for Unity
using UnityEngine;
using System.Collections;
public class SimpleBGMPlayer : MonoBehaviour {
// Use this for initialization
void Start () {
}
@naojitaniguchi
naojitaniguchi / VideoPicker.cs
Last active September 15, 2020 10:17
Video Picker for Unity iOS native plugin call sample, Using UIImagePickerController
using UnityEngine;
using System.Collections;
using System.Runtime.InteropServices;
public class VideoPicker : MonoBehaviour {
public Texture2D shareButtonImage; // Use this for initialization
[DllImport("__Internal")]
private static extern void OpenVideoPicker(string game_object_name, string function_name);
@naojitaniguchi
naojitaniguchi / WireFrame.cs
Created April 20, 2015 02:30
WireFrame Rendering Script on Unity
using UnityEngine;
using System.Collections;
public class Wireframe : MonoBehaviour {
public Color lineColor;
public Color backgroundColor;
public bool ZWrite = true;
public bool AWrite = true;
public bool blend = true;