Class DatabaseAsset<T, ObjectT>
public abstract class DatabaseAsset<T, ObjectT> : SingletonAsset<T>, ISerializationCallbackReceiver where T : DatabaseAsset<T, ObjectT> where ObjectT : class
Type Parameters
T
ObjectT
- Inheritance
-
SerializedScriptableObjectDatabaseAsset<T, ObjectT>
- Implements
-
ISerializationCallbackReceiver
- Derived
- Inherited Members
-
SerializedScriptableObject.OnAfterDeserialize()SerializedScriptableObject.OnBeforeSerialize()
- Extension Methods
Constructors
DatabaseAsset()
protected DatabaseAsset()
Fields
Objects
public ObjectT[] Objects
Field Value
- ObjectT[]
Methods
GetRandomEntry()
public static ObjectT GetRandomEntry()
Returns
- ObjectT
GetRandomEntry<EntryType>()
public static EntryType GetRandomEntry<EntryType>() where EntryType : ObjectT
Returns
- EntryType
Type Parameters
EntryType