Pathfinding.MonoModifier.Apply C# (CSharp) Method

Apply() private method

private Apply ( GraphNode path, Vector3 start, Vector3 end, int startIndex, int endIndex, NavGraph graph ) : UnityEngine.Vector3[]
path GraphNode
start UnityEngine.Vector3
end UnityEngine.Vector3
startIndex int
endIndex int
graph NavGraph
return UnityEngine.Vector3[]
		public virtual Vector3[] Apply (GraphNode[] path, Vector3 start, Vector3 end, int startIndex, int endIndex, NavGraph graph) {
			
			Vector3[] p = new Vector3[endIndex-startIndex];
			
			for (int i=startIndex;i< endIndex;i++) {
				p[i-startIndex] = (Vector3)path[i].position;
			}
			
			return p;
		}
		

Same methods

MonoModifier::Apply ( Vector3 path, Vector3 start, Vector3 end ) : UnityEngine.Vector3[]
MonoModifier::Apply ( Path p, ModifierData source ) : void