Skip to content

Instantly share code, notes, and snippets.

@KzoNag
KzoNag / StartSceneLoader.cs
Created Jun 23, 2019
OculusIntegrationのSampleFrameworkでStartSceneシーンをロードするスクリプト
View StartSceneLoader.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using Oculus;
public class StartSceneLoader : MonoBehaviour
{
void Start()
{
@KzoNag
KzoNag / StateMachine.cs
Created Jan 16, 2019
Unityで使う簡単なステートマシン的な実装
View StateMachine.cs
using UnityEngine;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
public class StateMachine
{
public abstract class BaseState
{
@KzoNag
KzoNag / ImageTrimmer.cs
Created Dec 2, 2017
VuforiaでImageTargetのサイズでカメラ画像をトリミングする
View ImageTrimmer.cs
using UnityEngine;
using Vuforia;
public class ImageTrimmer : MonoBehaviour
{
private ImageTargetBehaviour imageTargetBehaviour;
#if UNITY_EDITOR
private const Image.PIXEL_FORMAT PixcelFormat = Image.PIXEL_FORMAT.RGBA8888;
@KzoNag
KzoNag / HoloToolkitImporter.cs
Created Dec 7, 2016
Editor extention script to download and import "HoloToolkit-Unity"
View HoloToolkitImporter.cs
/*
Copyright (c) 2016 Keizo Nagamine
Released under the MIT license
http://opensource.org/licenses/mit-license.php
*/
/*
* @Usage
* 1. Import this script into "Editor" directory.
* 2. Select "Assets/Import HoloToolkit" menu item.
@KzoNag
KzoNag / TextTranslator.cs
Created Sep 28, 2016
UnityからMicrosoft Translator Text APIを利用するコンポーネント
View TextTranslator.cs
/*
Copyright (c) 2016 Keizo Nagamine
Released under the MIT license
http://opensource.org/licenses/mit-license.php
*/
using UnityEngine;
using UnityEngine.Networking;
using System.Collections;
using System.Xml.Serialization;
@KzoNag
KzoNag / KinectController_2.cs
Last active Mar 18, 2016
FMCN Kinectハンズオン ステップ③ Colorデータを参照しよう
View KinectController_2.cs
using UnityEngine;
using System.Collections;
// 必要な名前空間を宣言
using UnityEngine.UI;
using Windows.Kinect;
public class KinectController : MonoBehaviour
{
// Kinect全体
@KzoNag
KzoNag / KinectController_1.cs
Last active Mar 18, 2016
FMCN Kinectハンズオン ステップ② BodyIndexを表示しよう
View KinectController_1.cs
using UnityEngine;
using System.Collections;
// 必要な名前空間を宣言
using UnityEngine.UI;
using Windows.Kinect;
public class KinectController : MonoBehaviour
{
// Kinect全体
@KzoNag
KzoNag / SceneSetupObject.cs
Last active Mar 11, 2016
[Unity][マルチシーン]シーン構成保存・復元エディタスクリプト
View SceneSetupObject.cs
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEditor;
using UnityEditor.SceneManagement;
using System.Linq;
using System.Collections;
public static class SceneSetupTool
View iOSのAppSlicing検証.md

概要

Unity5.2.1のNew Fearturesらしい
iOS: iOS9 の App Slicing をサポート
の検証のためにUnity5.1.1と5.2.1、Xcode6と7でビルドしてサイズを比較してみた

App Slicingとは

App Thinning (iOS, watchOS)

特に設定方法などは書いてなさそう?
普通にビルドするだけでSlicingされる??

@KzoNag
KzoNag / TwitterExtension.cs
Created Aug 18, 2015
TwitterAPIを利用するためのアセット"Let's Tweet in Unity!"で検索APIを使うための拡張
View TwitterExtension.cs
using UnityEngine;
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Text.RegularExpressions;
namespace Twitter
{