C# Class BetterBurnTime.SafeText

Provides a safe wrapper to avoid getting NullReferenceExceptions from Unity 5. See comments on their bizarre, insane implementation of operator== here: http://blogs.unity3d.com/2014/05/16/custom-operator-should-we-keep-it/ ...the moral of the story being, if you have a persistent reference to a UI object, you have to check it for "== null" every time you want to use it.
Datei anzeigen Open project: KSPSnark/BetterBurnTime

Private Properties

Property Type Description
SafeText System

Public Methods

Method Description
Destroy ( ) : void
of ( TextMeshProUGUI text ) : SafeText

Get a new SafeText that wraps the specified text object.

Private Methods

Method Description
SafeText ( TextMeshProUGUI text ) : System

Method Details

Destroy() public method

public Destroy ( ) : void
return void

of() public static method

Get a new SafeText that wraps the specified text object.
public static of ( TextMeshProUGUI text ) : SafeText
text TextMeshProUGUI
return SafeText