Skip to content

Instantly share code, notes, and snippets.

View WestHillApps's full-sized avatar
🐧

Hironari Nishioka WestHillApps

🐧
View GitHub Profile
@bryantdrewjones
bryantdrewjones / SetConstantTangents.cs
Created October 1, 2017 22:33
Set constant tangets on a Unity animation clip
// This script is published under the CC0 1.0 Universal License
// https://creativecommons.org/publicdomain/zero/1.0/
// To the extent possible under law, Spryly® Ltd. has waived all copyright
// and related or neighboring rights to this script. This work is published from: Canada.
using UnityEngine;
using UnityEditor;
using System.Collections;
public static class SetConstantTangents {
@thorikawa
thorikawa / japanese.txt
Last active March 8, 2022 00:07
日本語の文字コード範囲指定(ascii・ひらがな・カタカナ・頻出漢字)
32-128,12288-12543,12448-12543,65280-65519,19968,19971,19977,19978,19979,20013,20061,20108,20116,20154,20241,20808,20837,20843,20845,20870,20986,21147,21313,21315,21475,21491,21517,22235,22303,22805,22823,22825,22899,23376,23383,23398,23567,23665,24029,24038,24180,25163,25991,26085,26089,26376,26408,26412,26449,26519,26657,26862,27491,27671,27700,28779,29356,29577,29579,29983,30000,30007,30010,30333,30334,30446,30707,31354,31435,31481,31992,32819,33457,33609,34411,35211,35997,36196,36275,36554,37329,38632,38738,38899,19975,20024,20132,20140,20170,20250,20307,20309,20316,20803,20804,20809,20844,20869,20908,20992,20998,20999,21069,21271,21320,21322,21335,21407,21451,21476,21488,21512,21516,22238,22259,22269,22290,22320,22580,22768,22770,22799,22806,22810,22812,22826,22969,22985,23460,23478,23546,23569,23721,24037,24066,24112,24195,24215,24339,24341,24351,24369,24375,24403,24418,24460,24515,24605,25144,25165,25945,25968,26032,26041,26126,26143,26149,26172,26178,26228,26332,26360,26397,26469,26481,27005,27468,274
@keijiro
keijiro / 00_AnimationProcessor.md
Last active September 25, 2022 03:47
[Unity] アニメーションのインポート設定を自動化する

アニメーションのインポート設定を自動化する

Unity のアニメーションのインポート設定(下画像)には様々な項目がありますが、これを手動でひとつひとつ設定していくのは、かなりしんどいです。お決まりの設定がある場合には、スクリプトで自動化してしまうのがよいでしょう。この文書では、その自動化の方法を紹介します。

Animation Clip Settings

スクリプトからオプションを変更する

これらのインポート設定は ModelImporter.clipAnimationsModelImporterClipAnimation の配列として格納されています。これを舐める形で変更していけば、一括でお好みの設定を適用できます。

@takashicompany
takashicompany / TrajectoryCalculate.cs
Last active February 25, 2018 02:49
Calculate Trajectory Functions.
// @takashicompany (http://takashicompany.com)
using UnityEngine;
using System.Collections;
namespace TakashiCompany.Unity.Util
{
/// <summary>
/// Trajectory calculate.
/// </summary>
@tsubaki
tsubaki / ReduceVertexPolygonCollider2D.cs
Created January 12, 2015 15:52
PolygonColliderの多すぎる頂点を減らす。ベースはEngidia SCP - Eduard Bosch (eduardbosch@engidia.com)さんのRemoveInternalShapes
/**
* Author: Engidia SCP - Eduard Bosch (eduardbosch@engidia.com)
* File: RemoveInternalShapes.cs
*/
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
@anchan828
anchan828 / iTunes.cs
Created August 22, 2014 08:42
エディタ再生時にiTunesを一時停止&エディタ再生をやめた時にiTunesを再生する
using UnityEngine;
using UnityEditor;
using System.IO;
using System.Text;
[InitializeOnLoad]
public class iTunes
{
static iTunes ()
{
@flarb
flarb / AssetGPULoader.cs
Created July 22, 2012 19:06
Unity3d GPU Pre-loader
using UnityEngine;
using System.Collections;
using System;
using System.Collections.Generic;
public class AssetGPULoader : MonoBehaviour {
public Camera activeCamera;
RenderTexture _rt;