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 UnityEngine; | |
[InitializeOnLoad] | |
public static class SceneViewUILayerToggle | |
{ | |
// Define the UI layer's mask | |
private static readonly int uiLayerMask = 1 << LayerMask.NameToLayer("UI"); | |
// Constructor to initialize the script |
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
/* | |
* Spline Follower for Unity, based on Unity's official Spline package | |
* | |
* Developed by Pierre Mercy | |
* Assisted by OpenAI's GPT-4 Language Model (ChatGPT) | |
* | |
* This script allows an object to follow a spline path in Unity. | |
* It includes various features like speed control, time-based motion, loop, ping pong, and ease in and out functionality. | |
* | |
* The script was developed using Unity 2022 and the Splines 2.3.0 package. |