C# Класс FullInspector.InspectedType

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Get ( Type type ) : InspectedType

Finds the associated InspectedType for the given type.

IsSerializedByFullInspector ( InspectedProperty property ) : bool

Returns true if the given property should be serialized.

This assumes that the property is r/w!

IsSerializedByUnity ( InspectedProperty property ) : bool

Returns true if the given type can be serialized by Unity. This function is conservative and may not return true if the type can be serialized by unity. However, it will *not* return true if the type cannot be serialized by unity.

ResetCacheForTesting ( ) : void

Reset the cached set of metadata. Should only be used in tests, as this will significantly impact performance.

Приватные методы

Метод Описание
IsPrimitiveSkippedByUnity ( Type type ) : bool

Returns true if the primitive is *not* serialized by Unity

IsSimpleTypeThatUnityCanSerialize ( Type type ) : bool

A simple type is a type that is either primitive, a string, or a non-generic non-abstract class composed of other simple types.

Описание методов

Get() публичный статический Метод

Finds the associated InspectedType for the given type.
public static Get ( Type type ) : InspectedType
type System.Type The type to find the type metadata for.
Результат InspectedType

IsSerializedByFullInspector() публичный статический Метод

Returns true if the given property should be serialized.
This assumes that the property is r/w!
public static IsSerializedByFullInspector ( InspectedProperty property ) : bool
property InspectedProperty
Результат bool

IsSerializedByUnity() публичный статический Метод

Returns true if the given type can be serialized by Unity. This function is conservative and may not return true if the type can be serialized by unity. However, it will *not* return true if the type cannot be serialized by unity.
public static IsSerializedByUnity ( InspectedProperty property ) : bool
property InspectedProperty
Результат bool

ResetCacheForTesting() публичный статический Метод

Reset the cached set of metadata. Should only be used in tests, as this will significantly impact performance.
public static ResetCacheForTesting ( ) : void
Результат void