August 2018
Beginner
334 pages
10h 19m
English
We will create an editor window for easily handling the automation process without weighing down the graph's Start function, thereby delaying the scene loading:
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
public class CustomNavMeshWindow : EditorWindow
{
// next steps here
}
static bool isEnabled = false; static GameObject graphObj; static CustomNavMesh graph; static CustomNavMeshWindow window; static GameObject graphVertex;
[MenuItem("UAIPC/Ch02/CustomNavMeshWindow")] static void ...Read now
Unlock full access