Class FacesHolder
A high level component that allows you to create predefined elements of navigation mesh, edit them and move them around the scene in both edit and play mode.
Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
FacesHolder
Assembly: AlchemyBow.Navigation.dll
Syntax
[ExecuteInEditMode]
[DisallowMultipleComponent]
public sealed class FacesHolder : MonoBehaviour
Properties
|
Improve this Doc
View Source
AreaIndex
Gets or sets an area index of the faces.
Declaration
public int AreaIndex { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
FacesCount
Declaration
public int FacesCount { get; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
LayerIndex
Gets or sets a layer index of the faces.
Declaration
public int LayerIndex { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
NodesCount
Declaration
public int NodesCount { get; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
|
Improve this Doc
View Source
AddFace(Vector3, Vector3, Vector3)
Declaration
public void AddFace(Vector3 worldPositionA, Vector3 worldPositionB, Vector3 worldPositionC)
Parameters
Type |
Name |
Description |
UnityEngine.Vector3 |
worldPositionA |
|
UnityEngine.Vector3 |
worldPositionB |
|
UnityEngine.Vector3 |
worldPositionC |
|
|
Improve this Doc
View Source
GetAllLocalNodes()
Declaration
public Vector3[] GetAllLocalNodes()
Returns
Type |
Description |
UnityEngine.Vector3[] |
|
|
Improve this Doc
View Source
GetAllLocalNodesNoAlloc(Vector3[])
Declaration
public void GetAllLocalNodesNoAlloc(Vector3[] nodes)
Parameters
Type |
Name |
Description |
UnityEngine.Vector3[] |
nodes |
|
|
Improve this Doc
View Source
GetAllWorldNodes()
Declaration
public Vector3[] GetAllWorldNodes()
Returns
Type |
Description |
UnityEngine.Vector3[] |
|
|
Improve this Doc
View Source
GetAllWorldNodesNoAlloc(Vector3[])
Declaration
public void GetAllWorldNodesNoAlloc(Vector3[] nodes)
Parameters
Type |
Name |
Description |
UnityEngine.Vector3[] |
nodes |
|
|
Improve this Doc
View Source
GetLocalFace(Int32)
Declaration
public Vector3[] GetLocalFace(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
Type |
Description |
UnityEngine.Vector3[] |
|
|
Improve this Doc
View Source
GetLocalFaceNoAlloc(Int32, Vector3[])
Declaration
public void GetLocalFaceNoAlloc(int index, Vector3[] nodes)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
UnityEngine.Vector3[] |
nodes |
|
|
Improve this Doc
View Source
GetLocalNode(Int32)
Declaration
public Vector3 GetLocalNode(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
Type |
Description |
UnityEngine.Vector3 |
|
|
Improve this Doc
View Source
GetWorldFace(Int32)
Declaration
public Vector3[] GetWorldFace(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
Type |
Description |
UnityEngine.Vector3[] |
|
|
Improve this Doc
View Source
GetWorldFaceNoAlloc(Int32, Vector3[])
Declaration
public void GetWorldFaceNoAlloc(int index, Vector3[] nodes)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
UnityEngine.Vector3[] |
nodes |
|
|
Improve this Doc
View Source
GetWorldNode(Int32)
Declaration
public Vector3 GetWorldNode(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
Type |
Description |
UnityEngine.Vector3 |
|
|
Improve this Doc
View Source
RemoveFace(Int32)
Declaration
public void RemoveFace(int faceIndex)
Parameters
Type |
Name |
Description |
System.Int32 |
faceIndex |
|
|
Improve this Doc
View Source
ReregisterInSystem()
Declaration
public void ReregisterInSystem()
|
Improve this Doc
View Source
SetNode(Int32, Vector3)
Declaration
public void SetNode(int index, Vector3 worldPosition)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
UnityEngine.Vector3 |
worldPosition |
|
|
Improve this Doc
View Source
SetNodeNoReregister(Int32, Vector3)
Declaration
public void SetNodeNoReregister(int index, Vector3 worldPosition)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
UnityEngine.Vector3 |
worldPosition |
|