コード例 #1
0
 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)));
 }
コード例 #2
0
 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)));
 }
コード例 #3
0
 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));
 }
コード例 #4
0
 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));
 }
コード例 #5
0
        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);
        }
コード例 #6
0
        // 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));
        }
コード例 #7
0
        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));
        }
コード例 #8
0
        // 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);
        }
コード例 #9
0
        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);
        }
コード例 #10
0
        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);
        }
コード例 #11
0
 private static extern void INTERNAL_CALL_GetSettingsByIndex(int index, out NavMeshBuildSettings value);
コード例 #12
0
 private static extern void INTERNAL_CALL_CreateSettings(out NavMeshBuildSettings value);
コード例 #13
0
 private static extern void INTERNAL_CALL_GetSettingsByID(int agentTypeID, out NavMeshBuildSettings value);
コード例 #14
0
 private static string[] InternalValidationReport(NavMeshBuildSettings buildSettings, Bounds buildBounds)
 {
     return(NavMeshBuildSettings.INTERNAL_CALL_InternalValidationReport(ref buildSettings, ref buildBounds));
 }
コード例 #15
0
 private static extern string[] INTERNAL_CALL_InternalValidationReport(ref NavMeshBuildSettings buildSettings, ref Bounds buildBounds);
コード例 #16
0
 private static extern bool INTERNAL_CALL_UpdateNavMeshDataListInternal(NavMeshData data, ref NavMeshBuildSettings buildSettings, object sources, ref Bounds localBounds);
コード例 #17
0
 private static extern void GetSettingsByIndex_Injected(int index, out NavMeshBuildSettings ret);
コード例 #18
0
 private static extern AsyncOperation UpdateNavMeshDataAsyncListInternal_Injected(NavMeshData data, ref NavMeshBuildSettings buildSettings, object sources, ref Bounds localBounds);
コード例 #19
0
 private static extern bool UpdateNavMeshDataListInternal_Injected(NavMeshData data, ref NavMeshBuildSettings buildSettings, object sources, ref Bounds localBounds);
コード例 #20
0
 private static extern void CreateSettings_Injected(out NavMeshBuildSettings ret);
コード例 #21
0
 private static extern AsyncOperation INTERNAL_CALL_UpdateNavMeshDataAsyncListInternal(NavMeshData data, ref NavMeshBuildSettings buildSettings, object sources, ref Bounds localBounds, ref NavMeshBuildDebugSettings debug);
コード例 #22
0
 static extern String[] InternalValidationReport(NavMeshBuildSettings buildSettings, Bounds buildBounds);
コード例 #23
0
 private static extern string[] InternalValidationReport_Injected(ref NavMeshBuildSettings buildSettings, ref Bounds buildBounds);
コード例 #24
0
 private static string[] InternalValidationReport(NavMeshBuildSettings buildSettings, Bounds buildBounds)
 {
     return(NavMeshBuildSettings.InternalValidationReport_Injected(ref buildSettings, ref buildBounds));
 }
コード例 #25
0
 static extern bool UpdateNavMeshDataListInternal(
     NavMeshData data, NavMeshBuildSettings buildSettings, object sources, Bounds localBounds);
コード例 #26
0
 private static AsyncOperation UpdateNavMeshDataAsyncListInternal(NavMeshData data, NavMeshBuildSettings buildSettings, object sources, Bounds localBounds)
 {
     return(NavMeshBuilder.UpdateNavMeshDataAsyncListInternal_Injected(data, ref buildSettings, sources, ref localBounds));
 }
コード例 #27
0
 private static bool UpdateNavMeshDataListInternal(NavMeshData data, NavMeshBuildSettings buildSettings, object sources, Bounds localBounds)
 {
     return(NavMeshBuilder.INTERNAL_CALL_UpdateNavMeshDataListInternal(data, ref buildSettings, sources, ref localBounds));
 }
コード例 #28
0
 public string[] ValidationReport(Bounds buildBounds)
 {
     return(NavMeshBuildSettings.InternalValidationReport(this, buildBounds));
 }
コード例 #29
0
 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));
 }
コード例 #30
0
 private static extern void GetSettingsByID_Injected(int agentTypeID, out NavMeshBuildSettings ret);