public static NavMeshData BuildNavMeshData(NavMeshBuildSettings buildSettings, List <NavMeshBuildSource> sources, Bounds localBounds, Vector3 position, Quaternion rotation) { if (sources == null) { throw new ArgumentNullException("sources"); } return(BuildNavMeshData(buildSettings, sources, localBounds, position, rotation, default(NavMeshBuildDebugSettings))); }
public static bool UpdateNavMeshData(NavMeshData data, NavMeshBuildSettings buildSettings, List <NavMeshBuildSource> sources, Bounds localBounds) { if (data == null) { throw new ArgumentNullException("data"); } if (sources == null) { throw new ArgumentNullException("sources"); } return(UpdateNavMeshData(data, buildSettings, sources, localBounds, default(NavMeshBuildDebugSettings))); }
private static bool UpdateNavMeshData(NavMeshData data, NavMeshBuildSettings buildSettings, List <NavMeshBuildSource> sources, Bounds localBounds, NavMeshBuildDebugSettings debug) { if (data == null) { throw new ArgumentNullException("data"); } if (sources == null) { throw new ArgumentNullException("sources"); } return(UpdateNavMeshDataListInternal(data, buildSettings, sources, localBounds, debug)); }
public static AsyncOperation UpdateNavMeshDataAsync(NavMeshData data, NavMeshBuildSettings buildSettings, List <NavMeshBuildSource> sources, Bounds localBounds) { if (data == null) { throw new ArgumentNullException("data"); } if (sources == null) { throw new ArgumentNullException("sources"); } return(NavMeshBuilder.UpdateNavMeshDataAsyncListInternal(data, buildSettings, sources, localBounds)); }
public static NavMeshData BuildNavMeshData(NavMeshBuildSettings buildSettings, List <NavMeshBuildSource> sources, Bounds localBounds, Vector3 position, Quaternion rotation) { if (sources == null) { throw new ArgumentNullException("sources"); } NavMeshData navMeshData = new NavMeshData(buildSettings.agentTypeID); navMeshData.position = position; navMeshData.rotation = rotation; NavMeshBuilder.UpdateNavMeshDataListInternal(navMeshData, buildSettings, sources, localBounds); return(navMeshData); }
// Immediate NavMeshData updating public static bool UpdateNavMeshData( NavMeshData data, NavMeshBuildSettings buildSettings, List <NavMeshBuildSource> sources, Bounds localBounds) { if (data == null) { throw new ArgumentNullException(nameof(data)); } if (sources == null) { throw new ArgumentNullException(nameof(sources)); } return(UpdateNavMeshDataListInternal(data, buildSettings, sources, localBounds)); }
public static bool UpdateNavMeshData(NavMeshData data, NavMeshBuildSettings buildSettings, List <NavMeshBuildSource> sources, Bounds localBounds) { bool flag = data == null; if (flag) { throw new ArgumentNullException("data"); } bool flag2 = sources == null; if (flag2) { throw new ArgumentNullException("sources"); } return(NavMeshBuilder.UpdateNavMeshDataListInternal(data, buildSettings, sources, localBounds)); }
// Immediate NavMeshData building public static NavMeshData BuildNavMeshData( NavMeshBuildSettings buildSettings, List <NavMeshBuildSource> sources, Bounds localBounds, Vector3 position, Quaternion rotation) { if (sources == null) { throw new ArgumentNullException(nameof(sources)); } var data = new NavMeshData(buildSettings.agentTypeID) { position = position, rotation = rotation }; UpdateNavMeshDataListInternal(data, buildSettings, sources, localBounds); return(data); }
public NavMeshBuildSettings GetBuildSettings() { NavMeshBuildSettings settingsByID = NavMesh.GetSettingsByID(this.m_AgentTypeID); if (settingsByID.agentTypeID == -1) { Debug.LogWarning("No build settings for agent type ID " + this.agentTypeID, this); settingsByID.agentTypeID = this.m_AgentTypeID; } if (this.overrideTileSize) { settingsByID.overrideTileSize = true; settingsByID.tileSize = this.tileSize; } if (this.overrideVoxelSize) { settingsByID.overrideVoxelSize = true; settingsByID.voxelSize = this.voxelSize; } return(settingsByID); }
public NavMeshBuildSettings GetBuildSettings() { NavMeshBuildSettings settingsById = NavMesh.GetSettingsByID(this.m_AgentTypeID); if (((NavMeshBuildSettings) ref settingsById).get_agentTypeID() == -1) { Debug.LogWarning((object)("No build settings for agent type ID " + (object)this.agentTypeID), (Object)this); ((NavMeshBuildSettings) ref settingsById).set_agentTypeID(this.m_AgentTypeID); } if (this.overrideTileSize) { ((NavMeshBuildSettings) ref settingsById).set_overrideTileSize(true); ((NavMeshBuildSettings) ref settingsById).set_tileSize(this.tileSize); } if (this.overrideVoxelSize) { ((NavMeshBuildSettings) ref settingsById).set_overrideVoxelSize(true); ((NavMeshBuildSettings) ref settingsById).set_voxelSize(this.voxelSize); } return(settingsById); }
private static extern void INTERNAL_CALL_GetSettingsByIndex(int index, out NavMeshBuildSettings value);
private static extern void INTERNAL_CALL_CreateSettings(out NavMeshBuildSettings value);
private static extern void INTERNAL_CALL_GetSettingsByID(int agentTypeID, out NavMeshBuildSettings value);
private static string[] InternalValidationReport(NavMeshBuildSettings buildSettings, Bounds buildBounds) { return(NavMeshBuildSettings.INTERNAL_CALL_InternalValidationReport(ref buildSettings, ref buildBounds)); }
private static extern string[] INTERNAL_CALL_InternalValidationReport(ref NavMeshBuildSettings buildSettings, ref Bounds buildBounds);
private static extern bool INTERNAL_CALL_UpdateNavMeshDataListInternal(NavMeshData data, ref NavMeshBuildSettings buildSettings, object sources, ref Bounds localBounds);
private static extern void GetSettingsByIndex_Injected(int index, out NavMeshBuildSettings ret);
private static extern AsyncOperation UpdateNavMeshDataAsyncListInternal_Injected(NavMeshData data, ref NavMeshBuildSettings buildSettings, object sources, ref Bounds localBounds);
private static extern bool UpdateNavMeshDataListInternal_Injected(NavMeshData data, ref NavMeshBuildSettings buildSettings, object sources, ref Bounds localBounds);
private static extern void CreateSettings_Injected(out NavMeshBuildSettings ret);
private static extern AsyncOperation INTERNAL_CALL_UpdateNavMeshDataAsyncListInternal(NavMeshData data, ref NavMeshBuildSettings buildSettings, object sources, ref Bounds localBounds, ref NavMeshBuildDebugSettings debug);
static extern String[] InternalValidationReport(NavMeshBuildSettings buildSettings, Bounds buildBounds);
private static extern string[] InternalValidationReport_Injected(ref NavMeshBuildSettings buildSettings, ref Bounds buildBounds);
private static string[] InternalValidationReport(NavMeshBuildSettings buildSettings, Bounds buildBounds) { return(NavMeshBuildSettings.InternalValidationReport_Injected(ref buildSettings, ref buildBounds)); }
static extern bool UpdateNavMeshDataListInternal( NavMeshData data, NavMeshBuildSettings buildSettings, object sources, Bounds localBounds);
private static AsyncOperation UpdateNavMeshDataAsyncListInternal(NavMeshData data, NavMeshBuildSettings buildSettings, object sources, Bounds localBounds) { return(NavMeshBuilder.UpdateNavMeshDataAsyncListInternal_Injected(data, ref buildSettings, sources, ref localBounds)); }
private static bool UpdateNavMeshDataListInternal(NavMeshData data, NavMeshBuildSettings buildSettings, object sources, Bounds localBounds) { return(NavMeshBuilder.INTERNAL_CALL_UpdateNavMeshDataListInternal(data, ref buildSettings, sources, ref localBounds)); }
public string[] ValidationReport(Bounds buildBounds) { return(NavMeshBuildSettings.InternalValidationReport(this, buildBounds)); }
private static AsyncOperation UpdateNavMeshDataAsyncListInternal(NavMeshData data, NavMeshBuildSettings buildSettings, object sources, Bounds localBounds, NavMeshBuildDebugSettings debug) { return(INTERNAL_CALL_UpdateNavMeshDataAsyncListInternal(data, ref buildSettings, sources, ref localBounds, ref debug)); }
private static extern void GetSettingsByID_Injected(int agentTypeID, out NavMeshBuildSettings ret);