This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
using System.Collections; | |
using System.IO; | |
namespace LayerComposer { | |
public static class ScriptableObjectUtil { | |
public static void Create<T>(string path) where T : ScriptableObject { | |
var data = ScriptableObject.CreateInstance<T>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef __QUATERNION__ | |
#define __QUATERNION__ | |
#define HALF_DEG2RAD 8.72664625e-3 | |
float4 quaternion(float3 normalizedAxis, float degree) { | |
float rad = degree * HALF_DEG2RAD; | |
return float4(normalizedAxis * sin(rad), cos(rad)); | |
} | |
float4 qmul(float4 a, float4 b) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using Microsoft.Win32; | |
using System.Runtime.InteropServices; | |
using System; | |
using System.Text; | |
namespace WorldClock { | |
public static class TimeZoneDatabase { | |
public const string KERNEL32 = "kernel32.dll"; | |
public const string REGISTRY = @"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones"; |
NewerOlder