Class DetailGenerator
Serializable class used to generate varied Details from a base Detail.
Inheritance
System.Object
DetailGenerator
Implements
UnityEngine.ISerializationCallbackReceiver
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: GDA
Assembly: Assembly-CSharp.dll
Syntax
[Serializable]
public class DetailGenerator : ISerializationCallbackReceiver
Fields
name
Name that is used in Unity Editor to display readable names. ("xyz" instead of "Element 01", "Element 02" etc.)
Declaration
[HideInInspector]
public string name
Field Value
Type | Description |
---|---|
System.String |
Methods
GenerateDetail()
Generates a Detail using GDA.DetailGenerator.baseDetail.
Declaration
public Detail GenerateDetail()
Returns
Type | Description |
---|---|
Detail | A randomly generated Detail |
OnAfterDeserialize()
Unused. Part of the ISerializationCallbackReceiver interface.
Declaration
public void OnAfterDeserialize()
OnBeforeSerialize()
Part of the ISerializationCallbackReceiver interface. Used to set the in-editor name of the object.
Declaration
public void OnBeforeSerialize()
Implements
UnityEngine.ISerializationCallbackReceiver