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
git lfs track "*.unity" "*.prefab" "*.mat" "*.asset" "*.fbx" "*.wav" "*.tga" "*.psd" "*.cs" "*.png" "*.jpg" "*.jpeg" "*.bmp" "*.tif" "*.tiff" "*.exr" "*.hdr" "*.fbx" "*.blend" "*.obj" "*.dae" "*.3ds" "*.stl" "*.ply" "*.glb" "*.gltf" "*.wav" "*.mp3" "*.ogg" "*.flac" "*.aac" "*.mp4" "*.mov" "*.avi" "*.mkv" "*.psd" "*.tga" "*.exr" "*.hdr" "*.zip" "*.rar" "*.7z" "*.tar" "*.gz" "*.dll" "*.so" "*.dylib" "*.apk" "*.ipa" "*.ttf" "*.otf" "*.pdf" "*.doc" "*.xls" "*.ppt" "*.csv" "*.mov" "*.avi" "*.mkv" "*.ogg" "*.ogv" "*.webm" "*.flv" "*.swf" "*.psd" "*.ai" "*.sketch" "*.mp3" "*.ogg" "*.wav" "*.aif" "*.aac" "*.fbx" "*.prefab" "*.mat" "*.asset" "*.controller" "*.unitypackage" |
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; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using Random = UnityEngine.Random; | |
[Serializable] | |
public class Curve | |
{ | |
public Vector3[] points; | |
public int generateCount; |
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 class StringExtensions | |
{ | |
/// <summary> | |
/// Check if a string contains another case insensitively. | |
/// </summary> | |
/// <param name="text">string to search in</param> | |
/// <param name="value">string to search for</param> | |
/// <param name="stringComparison">comparison option enum</param> | |
/// <returns></returns> | |
public static bool CaseInsensitiveContains(this string text, string value, |
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 UnityEngine; | |
public class PointTransformation{ | |
public static Vector3 TransformPoint(this Transform targetTransform, Vector3 vectorToChange) | |
{ | |
return targetTransform.localToWorldMatrix.MultiplyPoint3x4(vectorToChange); | |
} | |
public static Vector3 InverseTransformPoint(this Transform targetTransform, Vector3 vectorToInverse) |
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 UnityEngine; | |
using UnityEditor; | |
public class FindMissingScriptsRecursively | |
{ | |
private static void FindInGameObject(GameObject g) | |
{ | |
Component[] components = g.GetComponents<Component>(); | |
for (int i = 0; i < components.Length; 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
using System; | |
using UnityEngine; | |
using UnityEngine.Rendering; | |
public class MaterialController : MonoBehaviour | |
{ | |
public enum BlendMode | |
{ | |
Alpha, | |
Premultiply, |
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.Linq; | |
using System.Reflection; | |
public static class ReflectionUtilityExtension | |
{ | |
public static void CopyPropertiesTo<T, U>(this T source, U dest) | |
{ | |
List<PropertyInfo> sourceProps = typeof(T).GetProperties().Where(x => x.CanRead).ToList(); | |
List<PropertyInfo> destProps = typeof(U).GetProperties() |
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 UnityEngine; | |
public class Singleton<T> : MonoBehaviour where T : Component | |
{ | |
[Header("Singletion Properties")] | |
public bool DontDestroyOnLoading = false; | |
public static T Instance | |
{ | |
get |
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 UnityEngine; | |
using System.Collections; | |
public class UVAnimation : MonoBehaviour { | |
public int uvTileY = 4; // texture sheet columns | |
public int uvTileX = 4; // texture sheet rows | |
public int fps = 30; | |
private int index; |
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; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public static class AnchorRealtime | |
{ | |
//------------Top------------------- | |
public static void TopLeft(RectTransform uitransform) | |
{ |
NewerOlder