99using System ;
1010using System . Collections ;
1111using System . Collections . Generic ;
12+ using System . Runtime . CompilerServices ;
1213using UnityEngine ;
1314
1415using InputKey =
@@ -179,6 +180,7 @@ public static bool AddParameterType<T>(Func<string, T> parseFunc)
179180 /// Log a message to the dev console.
180181 /// </summary>
181182 /// <param name="message"></param>
183+ [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
182184 public static void Log ( object message )
183185 {
184186 _console . Log ( message ) ;
@@ -189,6 +191,7 @@ public static void Log(object message)
189191 /// </summary>
190192 /// <param name="message"></param>
191193 /// <param name="colour"></param>
194+ [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
192195 public static void Log ( object message , Color colour )
193196 {
194197 _console . Log ( message , ColorUtility . ToHtmlStringRGBA ( colour ) ) ;
@@ -200,6 +203,7 @@ public static void Log(object message, Color colour)
200203 /// <param name="variableName"></param>
201204 /// <param name="value"></param>
202205 /// <param name="suffix"></param>
206+ [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
203207 public static void LogVariable ( string variableName , object value , string suffix = "" )
204208 {
205209 _console . LogVariable ( variableName , value , suffix ) ;
@@ -209,6 +213,7 @@ public static void LogVariable(string variableName, object value, string suffix
209213 /// Log an error message to the dev console.
210214 /// </summary>
211215 /// <param name="message"></param>
216+ [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
212217 public static void LogError ( object message )
213218 {
214219 _console . LogError ( message ) ;
@@ -218,6 +223,7 @@ public static void LogError(object message)
218223 /// Log a warning message to the dev console.
219224 /// </summary>
220225 /// <param name="message"></param>
226+ [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
221227 public static void LogWarning ( object message )
222228 {
223229 _console . LogWarning ( message ) ;
@@ -227,6 +233,7 @@ public static void LogWarning(object message)
227233 /// Log a success message to the dev console.
228234 /// </summary>
229235 /// <param name="message"></param>
236+ [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
230237 public static void LogSuccess ( object message )
231238 {
232239 _console . LogSuccess ( message ) ;
@@ -236,6 +243,7 @@ public static void LogSuccess(object message)
236243 /// Log a message with a seperator bar. A NULL message will log an empty seperator.
237244 /// </summary>
238245 /// <param name="message"></param>
246+ [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
239247 public static void LogSeperator ( object message = null )
240248 {
241249 _console . LogSeperator ( message ) ;
@@ -249,6 +257,7 @@ public static void LogSeperator(object message = null)
249257 /// <param name="toString"></param>
250258 /// <param name="prefix"></param>
251259 /// <param name="suffix"></param>
260+ [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
252261 public static void LogCollection < T > ( in IReadOnlyCollection < T > collection , Func < T , string > toString = null , string prefix = "" , string suffix = "" )
253262 {
254263 _console . LogCollection ( collection , toString , prefix , suffix ) ;
@@ -257,6 +266,7 @@ public static void LogCollection<T>(in IReadOnlyCollection<T> collection, Func<T
257266 /// <summary>
258267 /// Log the most recently executed command syntax to the dev console.
259268 /// </summary>
269+ [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
260270 public static void LogCommand ( )
261271 {
262272 _console . LogCommand ( ) ;
@@ -266,6 +276,7 @@ public static void LogCommand()
266276 /// Log command syntax to the dev console.
267277 /// </summary>
268278 /// <param name="name">Command name.</param>
279+ [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
269280 public static void LogCommand ( string name )
270281 {
271282 _console . LogCommand ( name ) ;
0 commit comments