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 Cinemachine; | |
[AddComponentMenu("")] // Hide in menu | |
[SaveDuringPlay] | |
#if UNITY_2018_3_OR_NEWER | |
[ExecuteAlways] | |
#else | |
[ExecuteInEditMode] | |
#endif |
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
#if UNITY_EDITOR | |
using UnityEditor; | |
using UnityEngine; | |
public class ReplaceWithPrefab : EditorWindow | |
{ | |
[SerializeField] private GameObject prefab; | |
[MenuItem("Tools/Replace With Prefab")] | |
static void CreateReplaceWithPrefab() |
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 Cinemachine; | |
using UnityEngine; | |
namespace Cinemachine | |
{ | |
[AddComponentMenu("")] // Hide in menu | |
[SaveDuringPlay] | |
[ExecuteAlways] | |
[DisallowMultipleComponent] | |
public class CinemachineCameraSizeAdjuster : CinemachineExtension |