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
// Reference: https://github.com/Bunny83/UUID/blob/master/UUID.cs | |
using System; | |
using System.Collections.Generic; | |
using System.Globalization; | |
using UnityEngine; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif |
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 Unity.Collections; | |
using Unity.Jobs; | |
using UnityEngine; | |
public class RaycastCommandRaycaster: IDisposable | |
{ | |
NativeArray<RaycastCommand> commands; | |
NativeArray<RaycastHit> results; |
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
import numpy as np | |
def sigmoid(x): | |
return 1 / (1 + np.exp(-x)) | |
def neural_network(X, y): | |
learning_rate = 0.1 | |
W1 = np.random.rand(2, 4) | |
W2 = np.random.rand(4, 1) |
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.Reflection; | |
using UnityEditor; | |
using UnityEngine; | |
public static class SetThreadCount | |
{ | |
[InitializeOnLoadMethod] | |
static void Init() | |
{ |
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; | |
public class GenerateVectorData : MonoBehaviour | |
{ | |
private SkinnedMeshRenderer m_mesh; | |
private Mesh skinnedMeshCache; | |
private Vector3[] vertexFrameCache1; | |
private Vector3[] vertexFrameCache2; | |
private Vector3[] vertexFrameCache3; | |
private ComputeBuffer vertexBuffer1; |
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.Collections.Concurrent; | |
using System.IO; | |
using System.Threading.Tasks; | |
using UnityEditor; | |
using UnityEditorInternal; | |
using UnityEngine; | |
/// <summary> | |
/// Uses file system watcher to track changes to specific files in the project directory. |
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
/*Blending 6 Sided skybox. By tlt*/ | |
Shader "Skybox/VertBlendedSkybox" | |
{ | |
Properties{ | |
_Tint("Tint Color", Color) = (.5, .5, .5, .5) | |
[Gamma] _Exposure("Exposure", Range(0, 8)) = 1.0 | |
_Rotation("Rotation", Range(0, 360)) = 0 | |
_Blend("Blend", Range(0.0,1.0)) = 0.5 |
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.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.Rendering; | |
using UnityEngine.Rendering.Universal; | |
public class GrabScreenFeature : ScriptableRendererFeature | |
{ | |
[System.Serializable] | |
public class Settings |
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.IO; | |
using UnityEditor; | |
using UnityEngine; | |
using System.Linq; | |
using System.Threading.Tasks; | |
public class UnityUtils: MonoBehaviour | |
{ | |
[MenuItem("Tools/Find Broken GUIDs")] |
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 UnityEditor; | |
using UnityEditor.XR.Management; | |
using UnityEditor.XR.Management.Metadata; | |
using UnityEngine; | |
namespace FrameSynthesis.XR | |
{ | |
// ref. https://docs.unity3d.com/Packages/[email protected]/manual/EndUser.html | |
public static class XRPluginManagementSettings |