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.
Показать файл Открыть проект

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