Class UserGroup
Scriptable Object representing a user group involved in a proposal.
Inheritance
System.Object
UnityEngine.Object
UnityEngine.ScriptableObject
UserGroup
Inherited Members
UnityEngine.ScriptableObject.SetDirty()
UnityEngine.ScriptableObject.CreateInstance(System.String)
UnityEngine.ScriptableObject.CreateInstance(System.Type)
UnityEngine.ScriptableObject.CreateInstance<T>()
UnityEngine.Object.GetInstanceID()
UnityEngine.Object.GetHashCode()
UnityEngine.Object.Equals(System.Object)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Vector3, UnityEngine.Quaternion)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Vector3, UnityEngine.Quaternion, UnityEngine.Transform)
UnityEngine.Object.Instantiate(UnityEngine.Object)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Transform)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Transform, System.Boolean)
UnityEngine.Object.Instantiate<T>(T)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Vector3, UnityEngine.Quaternion)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Vector3, UnityEngine.Quaternion, UnityEngine.Transform)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Transform)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Transform, System.Boolean)
UnityEngine.Object.Destroy(UnityEngine.Object, System.Single)
UnityEngine.Object.Destroy(UnityEngine.Object)
UnityEngine.Object.DestroyImmediate(UnityEngine.Object, System.Boolean)
UnityEngine.Object.DestroyImmediate(UnityEngine.Object)
UnityEngine.Object.FindObjectsOfType(System.Type)
UnityEngine.Object.FindObjectsOfType(System.Type, System.Boolean)
UnityEngine.Object.DontDestroyOnLoad(UnityEngine.Object)
UnityEngine.Object.DestroyObject(UnityEngine.Object, System.Single)
UnityEngine.Object.DestroyObject(UnityEngine.Object)
UnityEngine.Object.FindSceneObjectsOfType(System.Type)
UnityEngine.Object.FindObjectsOfTypeIncludingAssets(System.Type)
UnityEngine.Object.FindObjectsOfType<T>()
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>()
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectsOfTypeAll(System.Type)
UnityEngine.Object.FindObjectOfType(System.Type)
UnityEngine.Object.FindObjectOfType(System.Type, System.Boolean)
UnityEngine.Object.ToString()
UnityEngine.Object.name
UnityEngine.Object.hideFlags
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: GDA
Assembly: Assembly-CSharp.dll
Syntax
[CreateAssetMenu(menuName = "ScriptableObjects/UserGroup")]
[Serializable]
public class UserGroup : ScriptableObject
Fields
_description
Declaration
[SerializeField]
[JsonProperty]
protected string _description
Field Value
Type | Description |
---|---|
System.String |
_details
Declaration
[SerializeField]
[JsonProperty]
protected List<Detail> _details
Field Value
Type | Description |
---|---|
System.Collections.Generic.List<Detail> |
Properties
demography
The demography/archetype that the user group belongs to.
Declaration
[JsonIgnore]
public string demography { get; }
Property Value
Type | Description |
---|---|
System.String |
description
Declaration
[JsonIgnore]
public string description { get; }
Property Value
Type | Description |
---|---|
System.String |
details
The miscellaneous details of the user group.
Declaration
public ReadOnlyCollection<Detail> details { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ReadOnlyCollection<Detail> |
grpName
The name of the user group.
Declaration
[JsonIgnore]
public virtual string grpName { get; }
Property Value
Type | Description |
---|---|
System.String |
size
The size of the user group
Declaration
[JsonIgnore]
public virtual int size { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
GetDetail(String)
Retrieves a property of the product from details by its DisplayName.
Declaration
public Detail GetDetail(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name |
Returns
Type | Description |
---|---|
Detail |
Initialize(String, String, Int32, String, Detail[])
Initializer to call when creating a usergroup through script, as scriptable objects cannot use default constructors.
Declaration
public void Initialize(string grpName, string archetype, int grpSize, string description, Detail[] details)
Parameters
Type | Name | Description |
---|---|---|
System.String | grpName | |
System.String | archetype | |
System.Int32 | grpSize | |
System.String | description | |
Detail[] | details |