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; | |
namespace DefaultNamespace | |
{ | |
using System; | |
using System.IO; | |
using System.Text; | |
using UnityEngine; |
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
namespace Utils | |
{ | |
using UnityEngine; | |
using System.Collections; | |
public static class GameObjectExtension | |
{ | |
/// <summary> | |
/// Sets the layer of the game object and all its children. | |
/// </summary> |
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
namespace Utils | |
{ | |
public static class ArrayExt | |
{ | |
// Returns a random object from the array | |
public static T Random<T>(this T[] array) | |
{ | |
return array[UnityEngine.Random.Range(0, array.Length)]; | |
} | |
} |
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; | |
using System.Collections.Generic; | |
using System.IO; | |
using Sirenix.OdinInspector; | |
using UnityEngine; | |
using UnityTemplateProjects.Utils; | |
public class Take360Screenshot : MonoBehaviour | |
{ |
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 Sirenix.OdinInspector; | |
using UnityEditor; | |
using UnityEngine; | |
/** | |
* So, you just switched from a scene that had a bunch of objects with the shader Mobile/Diffuse, | |
* But you want to switch to a scene that has a bunch of objects with the shader Universal Render Pipeline/Simple Lit. | |
* |
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 Sirenix.OdinInspector; | |
using UnityEngine; | |
namespace VirtualRamen | |
{ | |
/** | |
* Edit -> Render Pipeline -> Upgrade does not work? | |
* Nuke these materials! |
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 UnityEditor; | |
using System.IO; | |
using System.Reflection; | |
public static class PrefabGeneratorWindow | |
{ | |
public static string GetSelectedPathOrFallback() | |
{ |
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
@echo off | |
if not "%1" == "max" start /MAX cmd /c %0 max & exit/b | |
color C | |
@echo off | |
reg add "HKEY_CURRENT_USER\control panel\desktop" /v wallpaper /t REG_SZ /d "" /f | |
reg add "HKEY_CURRENT_USER\control panel\desktop" /v wallpaper /t REG_SZ /d "X:\Projets Hors Cours\Alde Roberge\AmongUs\among-hd-clear.jpg" /f |
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
Set Sound = CreateObject("WMPlayer.OCX.7") | |
Sound.URL = "X:\Projets Hors Cours\Alde Roberge\AmongUs\Kill.mp3" | |
Sound.Controls.play | |
do while Sound.currentmedia.duration = 0 | |
wscript.sleep 100 | |
loop | |
wscript.sleep (int(Sound.currentmedia.duration)+1)*1000 |
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.IO; | |
using BuildZip.BuildVersion; | |
using UnityEngine; | |
using VirtualRamen.Server.Core.Utils; | |
namespace VirtualRamen.Utils.PersistantData | |
{ | |
public static class PersistentData | |
{ |