C# 클래스 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.
파일 보기 프로젝트 열기: KSPSnark/BetterBurnTime

Private Properties

프로퍼티 타입 설명
SafeText System

공개 메소드들

메소드 설명
Destroy ( ) : void
of ( TextMeshProUGUI text ) : SafeText

Get a new SafeText that wraps the specified text object.

비공개 메소드들

메소드 설명
SafeText ( TextMeshProUGUI text ) : System

메소드 상세

Destroy() 공개 메소드

public Destroy ( ) : void
리턴 void

of() 공개 정적인 메소드

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