|
Iuvo Unity 0.5.1
This is library containing a variety of helper classes and extension methods for the Unity gane engine. GitHub | Iuvo Unity Updates | Creator |
If you ever cant see the debug logs, make sure to call IuvoDebug.Initialize() in your main scene and that the correct Validation Levels are set. More...
Classes | |
| class | IuvoDebugRunner |
Public Types | |
| enum | ValidationLevel { Debug , Warning , Error } |
| enum | LogDestination { PersistentFile , EditorFile , CustomFile } |
Static Public Member Functions | |
| static void | EnableValidationLevel (ValidationLevel level, bool enable) |
| static void | Initialize () |
| static void | SetLogFilePath (string path) |
| static void | DebugTransform (Transform toDebug, [CallerMemberName] string memberName="", [CallerFilePath] string filePath="", [CallerLineNumber] int lineNumber=0) |
| static void | DebugPosition (Vector3 position, [CallerMemberName] string memberName="", [CallerFilePath] string filePath="", [CallerLineNumber] int lineNumber=0) |
| static void | DebugRotation (Quaternion rotation, [CallerMemberName] string memberName="", [CallerFilePath] string filePath="", [CallerLineNumber] int lineNumber=0) |
| static void | DebugEulerAngles (Vector3 eulerAngles, [CallerMemberName] string memberName="", [CallerFilePath] string filePath="", [CallerLineNumber] int lineNumber=0) |
| static void | DebugScale (Vector3 scale, [CallerMemberName] string memberName="", [CallerFilePath] string filePath="", [CallerLineNumber] int lineNumber=0) |
| static void | DebugLossyScale (Vector3 lossyScale, [CallerMemberName] string memberName="", [CallerFilePath] string filePath="", [CallerLineNumber] int lineNumber=0) |
| static bool | RaycastDebug (Vector3 origin, Vector3 direction, out RaycastHit hit, float distance=Mathf.Infinity, int layerMask=Physics.DefaultRaycastLayers, Color? debugColor=null, [CallerMemberName] string memberName="", [CallerFilePath] string filePath="", [CallerLineNumber] int lineNumber=0) |
| static void | DebugLogIuvoVersion ([CallerMemberName] string memberName="", [CallerFilePath] string filePath="", [CallerLineNumber] int lineNumber=0) |
| static void | DebugIuvoGame (IuvoGame game, [CallerMemberName] string memberName="", [CallerFilePath] string filePath="", [CallerLineNumber] int lineNumber=0) |
| static void | DebugLog (string message, bool richTxtMsg=true, [CallerMemberName] string memberName="", [CallerFilePath] string filePath="", [CallerLineNumber] int lineNumber=0) |
| static void | DebugLogWarning (string message, bool richTxtMsg=true, [CallerMemberName] string memberName="", [CallerFilePath] string filePath="", [CallerLineNumber] int lineNumber=0) |
| static void | DebugLogError (string message, bool richTxtMsg=false, [CallerMemberName] string memberName="", [CallerFilePath] string filePath="", [CallerLineNumber] int lineNumber=0) |
Static Public Attributes | |
| static HashSet< ValidationLevel > | EnabledLevels |
| static HashSet< LogDestination > | EnabledDestinations |
Static Private Member Functions | |
| static void | EnqueueLog (string message) |
| static System.Collections.IEnumerator | FlushPersistentLogQueueRoutine () |
| static System.Collections.IEnumerator | FlushEditorLogQueueRoutine () |
| static System.Collections.IEnumerator | FlushCustomLogQueueRoutine () |
| static void | FinalFlushOnQuitPersistentLog () |
| static void | FinalFlushOnQuitEditorLog () |
| static void | FinalFlushOnQuitCustomLog () |
| static string | FormatMessage (string level, string message, string memberName, string filePath, int lineNumber, out string richTextMessage, bool richTxtMsg) |
Static Private Attributes | |
| static string | persistentLogFilePath = Path.Combine(Application.persistentDataPath, "IuvoDebugLog_Persistent.txt") |
| static string | editorLogFilePath = Path.Combine(Application.dataPath, "IuvoDebugLog_Editor.txt") |
| static string | customLogFilePath = "" |
| static readonly Queue< string > | persistentLogQueue = new Queue<string>() |
| static readonly Queue< string > | editorLogQueue = new Queue<string>() |
| static readonly Queue< string > | customLogQueue = new Queue<string>() |
| static readonly object | fileLock = new object() |
| static bool | coroutineStarted = false |
If you ever cant see the debug logs, make sure to call IuvoDebug.Initialize() in your main scene and that the correct Validation Levels are set.
|
static |
References DebugLog(), and EnabledLevels.
Referenced by DebugTransform().
|
static |
will be removed once class fully implements
References DebugLog(), DebugLogWarning(), EnabledLevels, IuvoUnity.Constants.IGameDebug.LogGameInfo(), IuvoUnity.Constants.IGameDebug.LogGameState(), and IuvoUnity.Constants.IuvoGame.systemsStateMachine.
Referenced by IuvoUnity.Debug.TestDebugButton.TestFunction().
|
static |
References EnabledLevels, EnqueueLog(), and FormatMessage().
Referenced by IuvoUnity.StateMachines.CSM.ConditionalStateMachine.ChangeState(), DebugEulerAngles(), DebugIuvoGame(), DebugLogIuvoVersion(), DebugLossyScale(), DebugPosition(), DebugRotation(), DebugScale(), IuvoUnity.Configurations.HealthConfiguration.ImplementDefaultScalingAlgorithm(), IuvoUnity.Configurations.LevelConfiguration.ImplementDefaultScalingAlgorithm(), IuvoUnity.Extensions.GameObjectExtensions.LogComponents< T >(), IuvoUnity.Extensions.GameObjectExtensions.LogComponentsInChildren< T >(), IuvoUnity.Constants.IuvoGame.LogGameInfo(), IuvoUnity.Constants.IuvoGame.LogGameState(), IuvoUnity.BaseClasses.HealthComponent.OnDestroy(), IuvoUnity.Configurations.HealthConfiguration.OnDisable(), IuvoUnity.Configurations.LevelConfiguration.OnDisable(), IuvoUnity.RPG.Stat.OnDisable(), IuvoUnity.RPG.Stat.OnEnable(), IuvoUnity.Inputs.BaseInputActionLegacy.Perform(), IuvoUnity.Inputs.InputActionBase.Perform(), IuvoUnity.Configurations.BaseConfig< T >.PrintInfo(), IuvoUnity.Configurations.HealthConfiguration.PrintInfo(), IuvoUnity.Configurations.LevelConfiguration.PrintInfo(), IuvoUnity.Configurations.TimerConfiguration.PrintInfo(), IuvoUnity.Configurations.LevelConfiguration.Serialize(), IuvoUnity.Configurations.HealthConfiguration.SetLevelScalingCurve(), IuvoUnity.Configurations.LevelConfiguration.SetLevelScalingCurve(), TimerTestUI.Start(), and IuvoUnity.Debug.TestDebugButton.TestFunction().
|
static |
References EnabledLevels, EnqueueLog(), and FormatMessage().
Referenced by IuvoUnity.BaseClasses.LevelComponent.AddExperience(), IuvoUnity.BaseClasses.LevelComponent.AddLevels(), IuvoUnity.StateMachines.CSM.ConditionalStateMachine.Awake(), TimerTestUI.Awake(), IuvoUnity.Configurations.TimerConfiguration.Configure(), IuvoUnity.ProceduralGeneration.Room.CreateRoom(), IuvoUnity.ProceduralGeneration.ProceduralStripMesh.GenerateBetweenStrips(), IuvoUnity.Configurations.BaseConfig< T >.GetConfigSerializePath(), IuvoUnity.BaseClasses.LevelComponent.GetExperienceToNextLevel(), IuvoUnity.Configurations.HealthConfiguration.GetMaxHealthAtLevel(), IuvoUnity.ProceduralGeneration.Room.InitializeRoom(), IuvoUnity.BaseClasses.LevelComponent.LoseLevels(), IuvoUnity.BaseClasses.LevelComponent.OnDestroy(), IuvoUnity.Configurations.TimerConfiguration.Reconfigure(), IuvoUnity.ProceduralGeneration.Room.RemoveSharedWalls(), IuvoUnity.Extensions.GameObjectExtensions.ScaleNonStaticChildrenWithMesh(), IuvoUnity.Extensions.GameObjectExtensions.ScaleStaticChildrenWithMesh(), IuvoUnity.Configurations.LevelConfiguration.Serialize(), IuvoUnity.BaseClasses.LevelComponent.SerializeSelf(), IuvoUnity.Extensions.MeshRendererExtensions.SetCulling(), IuvoUnity.StateMachines.CSM.ConditionalStateMachine.SetForceDefaultState(), IuvoUnity.StateMachines.CSM.ConditionalStateMachine.SetForcePrevState(), IuvoUnity.Configurations.HealthConfiguration.SetLevelScalingCurve(), IuvoUnity.Configurations.LevelConfiguration.SetLevelScalingCurve(), IuvoUnity.BaseClasses.LevelComponent.Start(), IuvoUnity.ProceduralGeneration.Room.Start(), IuvoUnity.Debug.TestDebugButton.TestFunction(), IuvoUnity.BaseClasses.LevelComponent.TryGetLevelConfig(), IuvoUnity.BaseClasses.HealthComponent.UpdateMaxHealth(), and IuvoUnity.Extensions.MaterialExtensions.WithShader().
|
static |
References DebugLog(), and IuvoUnity.Core.IuvoCore.GetVersion().
Referenced by IuvoUnity.Debug.TestDebugButton.TestFunction().
|
static |
References EnabledLevels, EnqueueLog(), and FormatMessage().
Referenced by IuvoUnity.BaseClasses.LevelComponent.AddExperience(), IuvoUnity.BaseClasses.LevelComponent.AddLevels(), IuvoUnity.BaseClasses.LevelComponent.AddLevelUpPoint(), IuvoUnity.DataStructs.Timer.AwaitFinish(), IuvoUnity.Inputs.InputActionBase.Awake(), IuvoUnity.StateMachines.CSM.ConditionalStateMachine.Awake(), IuvoUnity.StateMachines.CSM.ConditionalStateMachine.ChangeState(), IuvoUnity.DataStructs.ContextKeyGroups.CheckForDuplicateEnumNames(), IuvoUnity.Extensions.BoxColliderExtensions.CombineBoxCollidersToMesh(), IuvoUnity.BaseClasses.DamageComponent.DamageComponent(), IuvoUnity.BaseClasses.DamageComponent.DealDamage(), DebugIuvoGame(), IuvoUnity.DataStructs.DecrementTimer.DecrementTimer(), IuvoUnity.Configurations.LevelConfiguration.DeserializeLevelComponent(), IuvoUnity.ProceduralGeneration.ProceduralStripMesh.GenerateMesh(), IuvoUnity.Configurations.BaseConfig< T >.GetConfigSerializePath(), IuvoUnity.DataStructs.MultiTimer.GetDuration(), IuvoUnity.Configurations.LevelConfiguration.GetExpAtLevel(), IuvoUnity.StateMachines.CSM.ConditionalStateMachine.HandleContinue(), IuvoUnity.StateMachines.CSM.ConditionalStateMachine.HandleFallbackLogic(), IuvoUnity.BaseClasses.HealthComponent.Heal(), IuvoUnity.DataStructs.IncrementTimer.IncrementTimer(), IuvoUnity.DataStructs.Chain< T >.InsertAt(), IuvoUnity.BaseClasses.LevelComponent.LoseExperience(), IuvoUnity.BaseClasses.LevelComponent.LoseLevels(), IuvoUnity.DataStructs.MultiTimer.Remaining(), IuvoUnity.DataStructs.Context.Set< T >(), IuvoUnity.DataStructs.MultiTimer.SetDuration(), IuvoUnity.RPG.Stat.SetStatName(), IuvoUnity.Extensions.BoxColliderExtensions.SnapTo(), IuvoUnity.BaseClasses.LevelComponent.SpendLevelUpPoint(), IuvoUnity.BaseClasses.HealthComponent.Start(), IuvoUnity.StateMachines.CSM.ConditionalStateMachineAnalyzer.Start(), IuvoUnity.BaseClasses.HealthComponent.TakeDamage(), IuvoUnity.Debug.TestDebugButton.TestFunction(), IuvoUnity.StateMachines.CSM.ConditionalStateMachine.TryChangeState(), IuvoUnity.DataStructs.Chain< T >.ValidateLinks(), IuvoUnity.Extensions.MaterialExtensions.WithBuffer(), IuvoUnity.Extensions.MaterialExtensions.WithMainColor(), IuvoUnity.Extensions.MaterialExtensions.WithMainTexture(), IuvoUnity.Extensions.MaterialExtensions.WithRenderingMode(), IuvoUnity.Extensions.MaterialExtensions.WithShader(), IuvoUnity.Extensions.MaterialExtensions.WithShader(), IuvoUnity.Extensions.MaterialExtensions.WithShader(), and IuvoUnity.Extensions.MaterialExtensions.WithTextureArray().
|
static |
References DebugLog(), and EnabledLevels.
Referenced by DebugTransform().
|
static |
References DebugLog(), and EnabledLevels.
Referenced by DebugTransform().
|
static |
References DebugLog(), and EnabledLevels.
Referenced by DebugTransform().
|
static |
References DebugLog(), and EnabledLevels.
Referenced by DebugTransform().
|
static |
References DebugEulerAngles(), DebugLossyScale(), DebugPosition(), DebugRotation(), DebugScale(), and EnabledLevels.
|
static |
References EnabledLevels.
|
staticprivate |
References customLogFilePath, customLogQueue, editorLogQueue, EnabledDestinations, fileLock, and persistentLogQueue.
Referenced by DebugLog(), DebugLogError(), and DebugLogWarning().
|
staticprivate |
References customLogFilePath, customLogQueue, editorLogQueue, and fileLock.
Referenced by Initialize().
|
staticprivate |
References editorLogFilePath, editorLogQueue, and fileLock.
Referenced by Initialize().
|
staticprivate |
References fileLock, persistentLogFilePath, and persistentLogQueue.
Referenced by Initialize().
|
staticprivate |
References customLogFilePath, customLogQueue, editorLogQueue, and fileLock.
Referenced by Initialize().
|
staticprivate |
References editorLogFilePath, editorLogQueue, and fileLock.
Referenced by Initialize().
|
staticprivate |
References fileLock, persistentLogFilePath, and persistentLogQueue.
Referenced by Initialize().
|
staticprivate |
Referenced by DebugLog(), DebugLogError(), and DebugLogWarning().
|
static |
References coroutineStarted, FinalFlushOnQuitCustomLog(), FinalFlushOnQuitEditorLog(), FinalFlushOnQuitPersistentLog(), FlushCustomLogQueueRoutine(), FlushEditorLogQueueRoutine(), and FlushPersistentLogQueueRoutine().
Referenced by IuvoUnity.Debug.TestDebugButton.Awake().
|
static |
References EnabledLevels, and IuvoUnity.IuvoPhysics.PhysicsHelpers.RaycastDebug().
|
static |
References customLogFilePath, fileLock, and persistentLogFilePath.
|
staticprivate |
Referenced by Initialize().
|
staticprivate |
Referenced by EnqueueLog(), FinalFlushOnQuitCustomLog(), FlushCustomLogQueueRoutine(), and SetLogFilePath().
|
staticprivate |
Referenced by EnqueueLog(), FinalFlushOnQuitCustomLog(), and FlushCustomLogQueueRoutine().
|
staticprivate |
Referenced by FinalFlushOnQuitEditorLog(), and FlushEditorLogQueueRoutine().
|
staticprivate |
|
static |
Referenced by EnqueueLog().
|
static |
Referenced by DebugEulerAngles(), DebugIuvoGame(), DebugLog(), DebugLogError(), DebugLogWarning(), DebugLossyScale(), DebugPosition(), DebugRotation(), DebugScale(), DebugTransform(), EnableValidationLevel(), and RaycastDebug().
|
staticprivate |
|
staticprivate |
Referenced by FinalFlushOnQuitPersistentLog(), FlushPersistentLogQueueRoutine(), and SetLogFilePath().
|
staticprivate |
Referenced by EnqueueLog(), FinalFlushOnQuitPersistentLog(), and FlushPersistentLogQueueRoutine().