PersistentTrails.DebugMessages.Post C# (CSharp) Method

Post() public static method

public static Post ( string input, bool postToLog, float postToScreenDuration ) : void
input string
postToLog bool
postToScreenDuration float
return void
        public static void Post(string input, bool postToLog, float postToScreenDuration)
        {
            if (postToLog)
            {
                Debug.Log(input);
            }
            if (postToScreenDuration > 0f && HighLogic.LoadedSceneIsFlight) // will only work in the flight scene, gives an error in other places.
            {
                ScreenMessages.PostScreenMessage(new ScreenMessage(input, postToScreenDuration, ScreenMessageStyle.UPPER_RIGHT));
            }
        }