Class CrowdDiscomfortAuthoring
Discomfort volume of crowd agents.
Inheritance
Object
Component
Behaviour
MonoBehaviour
CrowdDiscomfortAuthoring
Inherited Members
MonoBehaviour.IsInvoking()
MonoBehaviour.CancelInvoke()
MonoBehaviour.StopCoroutine(Coroutine)
MonoBehaviour.StopAllCoroutines()
MonoBehaviour.destroyCancellationToken
MonoBehaviour.useGUILayout
MonoBehaviour.runInEditMode
Behaviour.enabled
Behaviour.isActiveAndEnabled
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Component.GetComponentIndex()
Component.transform
Component.gameObject
Component.tag
Object.GetInstanceID()
Object.GetHashCode()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Scene)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Object.ToString()
Object.name
Object.hideFlags
Namespace: ProjectDawn.Navigation.Hybrid
Assembly: ProjectDawn.Navigation.Hybrid.dll
Syntax
[AddComponentMenu("Agents Navigation/Crowd/Crowd Discomfort")]
[DisallowMultipleComponent]
[HelpURL("https://lukaschod.github.io/agents-navigation-docs/manual/crowds/crowd-discomfort.html")]
public class CrowdDiscomfortAuthoring : EntityBehaviour
Fields
| Improve this Doc View Sourcem_Gradient
Discomfort volume of crowd agents.
Declaration
[Tooltip("The gradient of discomfort. The x-component represents the discomfort value at the center of the shape, and the y-component represents it at the edge.")]
[SerializeField]
protected float2 m_Gradient
Field Value
Type | Description |
---|---|
float2 |
m_Size
Discomfort volume of crowd agents.
Declaration
[Tooltip("The size of the discomfort.")]
[SerializeField]
protected float3 m_Size
Field Value
Type | Description |
---|---|
float3 |
m_Type
Discomfort volume of crowd agents.
Declaration
[Tooltip("The shape of the discomfort.")]
[SerializeField]
protected CrowdDiscomfortType m_Type
Field Value
Type | Description |
---|---|
CrowdDiscomfortType |
Properties
| Improve this Doc View SourceDefaultDiscomfort
Returns default component of CrowdDiscomfort.
Declaration
public CrowdDiscomfort DefaultDiscomfort { get; }
Property Value
Type | Description |
---|---|
CrowdDiscomfort |
EntityDiscomfort
Accessing this property is potentially heavy operation as it will require wait for agent jobs to finish.
Declaration
public CrowdDiscomfort EntityDiscomfort { get; set; }
Property Value
Type | Description |
---|---|
CrowdDiscomfort |
Gradient
The gradient of discomfort. The x-component represents the discomfort value at the center of the shape, and the y-component represents it at the edge.
Declaration
public float2 Gradient { get; set; }
Property Value
Type | Description |
---|---|
float2 |
HasEntityDiscomfort
Returns true if EntityBehaviour entity has CrowdDiscomfort.
Declaration
public bool HasEntityDiscomfort { get; }
Property Value
Type | Description |
---|---|
bool |
Size
The size of the discomfort.
Declaration
public float3 Size { get; set; }
Property Value
Type | Description |
---|---|
float3 |
Type
The shape of the discomfort.
Declaration
public CrowdDiscomfortType Type { get; set; }
Property Value
Type | Description |
---|---|
CrowdDiscomfortType |