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
#!/bin/sh | |
BASEDIR=$(dirname "$0") | |
open "$BASEDIR/ArshesClient.app/Contents/Resources/Data/StreamingAssets/" | |
osascript -e 'tell application "Terminal" to quit' & | |
exit |
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 UdonSharp; | |
using UnityEngine; | |
public class GamingLight : UdonSharpBehaviour | |
{ | |
[SerializeField] Renderer[] renderers; | |
[SerializeField] float intensity; | |
[SerializeField] float speed; |
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
/* | |
Copyright(c) 2016 Unity Technologies | |
Permission is hereby granted, free of charge, to any person obtaining a copy of | |
this software and associated documentation files(the "Software"), to deal in | |
the Software without restriction, including without limitation the rights to | |
use, copy, modify, merge, publish, distribute, sublicense, and / or sell copies | |
of the Software, and to permit persons to whom the Software is furnished to do | |
so, subject to the following conditions : |
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 UnityEditor; | |
using System.IO; | |
using System.Linq; | |
namespace TKMNY.Editor | |
{ | |
public static class ShaderUtility | |
{ | |
private const string DefaultHLSLTemplate = @" | |
#ifndef <TemplateName>_INCLUDED |
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.Collections.Generic; | |
using System.IO; | |
using UnityEditor; | |
using UnityEngine; | |
using VRC.Udon; | |
using System.Linq; | |
namespace Shivaduke.Editor | |
{ | |
[CreateAssetMenu(menuName = "Shivaduke/UdonProgramLocation", fileName = "UdonProgramLocation")] |
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
Shader "Custom/EmissiveGamma" | |
{ | |
Properties | |
{ | |
// _MainTex_ST is overridden by AVProVideoScreen. | |
// use _ScaleOffset instead of _MainTex_ST. | |
[NoScaleOffset] _MainTex("Texture", 2D) = "black" {} | |
_ScaleOffset("Tiling Offset", Vector) = (1, 1, 0, 0) | |
_Emission("Emission Scale", Float) = 1 | |
// enable gamma for AVProVideo |
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
# This .gitignore file should be placed at the root of your Unity project directory | |
# | |
# Get latest from https://github.com/github/gitignore/blob/main/Unity.gitignore | |
# | |
/[Ll]ibrary/ | |
/[Tt]emp/ | |
/[Oo]bj/ | |
/[Bb]uild/ | |
/[Bb]uilds/ | |
/[Ll]ogs/ |
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
float _Alpha; | |
sampler2D _MainTex; | |
float4 _MainTex_TexelSize; | |
float _Scale; | |
struct appdata | |
{ | |
float4 vertex : POSITION; | |
}; |
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
[MenuItem("GameObject/Foo", false, -1)] | |
public static void CreateFoo(MenuCommand command = null) | |
{ | |
// When called from MenuItem, this method is executed for every selected objects in the Hierarchy. | |
if (command != null) | |
{ | |
var context = command.context; | |
if (context != null && context != Selection.activeObject) return; | |
} | |
var parents = Selection.transforms; |
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.Linq; | |
using System.Text; | |
using UnityEngine; | |
namespace MyNameSpace | |
{ | |
public class ObjectReference<T> where T : Component | |
{ | |
T value; | |
readonly string rootName; |