This file contains 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
Shader "Unlit/CustomUnlit_restored" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
} | |
SubShader | |
{ | |
Tags { "RenderType"="Opaque" } |
This file contains 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 System.Text; | |
using UnityEngine; | |
public class SkinnedBoneSetter : MonoBehaviour | |
{ | |
/// <summary> | |
/// Format: | |
/// - 3066451557 | |
/// - 4026263382 |
This file contains 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
//string reallyLongDirectory = @"123\"; | |
string reallyLongDirectory = @"Test\abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; | |
reallyLongDirectory = reallyLongDirectory + @"\abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; | |
reallyLongDirectory = reallyLongDirectory + @"\abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; | |
Console.WriteLine($"Creating a directory that is {reallyLongDirectory.Length} characters long"); | |
string absPath = Path.Combine(reallyLongDirectory, "123"); | |
bool isExists = DirectoryUtils.Exists(absPath); | |
DirectoryUtils.CreateDirectory(absPath); |
This file contains 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
public class QuaternionCurve | |
{ | |
public AnimationCurve<Quaternion> curve { get; set; } | |
public string path { get; set; } | |
public QuaternionCurve(string path) | |
{ | |
curve = new AnimationCurve<Quaternion>(); | |
this.path = path; | |
} |
This file contains 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
public static void WriteFBX(string FBXfile, bool allNodes) | |
{ | |
// original code | |
// original write & extract Textures | |
#region write Animation nodes and curves | |
if (exportAnimation) | |
{ | |
for (int i = 0; i < Animations.Count; i++) |
This file contains 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
// UnityStructGen - Dump the Unity Runtime base type info | |
// Compile with /MT(d), NOT /MD(d) (i.e. use static-linked runtime) | |
// Tested with VS2015 x64. | |
// | |
// To use: | |
// Compile Inject.cpp: | |
// $ cl /O2 /Zi /MT Inject.cpp | |
// Compile UnityStructGen.cpp: | |
// $ cl /O2 /Zi /MT /LD UnityStructGen.cpp | |
// |