Placr is now a package that you can download via package manager:
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 System; | |
using System.Threading; | |
/// <summary> | |
/// Orders the Threadpool to perform an action and waits until it's done. | |
/// Use for short actions that maybe are performed more often. | |
/// </summary> | |
public class CoroutinePoolThread : CustomYieldInstruction | |
{ |
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 UnityEngine.LowLevel; | |
using System.Collections.Generic; | |
using UnityEngine.PlayerLoop; | |
/// <summary> | |
/// Interpolates a GameObject's position and rotation while being updated in FixedUpdate. | |
/// </summary> | |
public class FixedUpdateInterpolation : MonoBehaviour |
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; | |
using System.Diagnostics; | |
/// <summary> | |
/// Simple benchmark class to measure average time consumption of code. | |
/// </summary> | |
public static class Benchmark | |
{ | |
/// <summary> | |
/// A benchmark's time result. |
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; | |
public class FBXAxesFixer : AssetPostprocessor | |
{ | |
void OnPostprocessModel(GameObject g) | |
{ | |
if(assetImporter.ToString() == " (UnityEngine.FBXImporter)") | |
{ | |
FixFBXImport(g.transform, 0); |
NewerOlder