Skip to content

Commit a8d1204

Browse files
committed
Merge branch 'new-prefab-workflow' into 2018.3 , compatible with 2018.3.0a10
2 parents 81d97c4 + d6b8bcd commit a8d1204

7 files changed

Lines changed: 104 additions & 115 deletions

File tree

Assets/Examples/Editor/NavMeshPrefabInstanceEditor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
using UnityEditor;
33
using UnityEngine;
44
using UnityEngine.AI;
5-
using NavMeshBuilder = UnityEngine.AI.NavMeshBuilder;
65

76
[CanEditMultipleObjects]
87
[CustomEditor(typeof(NavMeshPrefabInstance))]
@@ -71,7 +70,8 @@ NavMeshData Build(NavMeshPrefabInstance instance)
7170
var sources = new List<NavMeshBuildSource>();
7271
var markups = new List<NavMeshBuildMarkup>();
7372

74-
NavMeshBuilder.CollectSources(root, ~0, NavMeshCollectGeometry.RenderMeshes, 0, markups, instance.gameObject.scene, sources);
73+
UnityEditor.AI.NavMeshBuilder.CollectSourcesInStage(
74+
root, ~0, NavMeshCollectGeometry.RenderMeshes, 0, markups, instance.gameObject.scene, sources);
7575
var settings = NavMesh.GetSettingsByID(0);
7676
var bounds = new Bounds(Vector3.zero, 1000.0f * Vector3.one);
7777
var navmesh = NavMeshBuilder.BuildNavMeshData(settings, sources, bounds, root.position, root.rotation);

Assets/NavMeshComponents/Scripts/NavMeshSurface.cs

Lines changed: 37 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ static void UpdateActive()
230230
void AppendModifierVolumes(ref List<NavMeshBuildSource> sources)
231231
{
232232
#if UNITY_EDITOR
233-
var myStage = StageUtility.GetStage(gameObject);
233+
var myStage = StageUtility.GetStageHandle(gameObject);
234234
if (!myStage.IsValid())
235235
return;
236236
#endif
@@ -299,20 +299,45 @@ List<NavMeshBuildSource> CollectSources()
299299
markups.Add(markup);
300300
}
301301

302-
var scene = gameObject.scene;
303-
if (m_CollectObjects == CollectObjects.All)
304-
{
305-
NavMeshBuilder.CollectSources(null, m_LayerMask, m_UseGeometry, m_DefaultArea, markups, scene, sources);
306-
}
307-
else if (m_CollectObjects == CollectObjects.Children)
302+
#if UNITY_EDITOR
303+
if (!EditorApplication.isPlaying)
308304
{
309-
NavMeshBuilder.CollectSources(transform, m_LayerMask, m_UseGeometry, m_DefaultArea, markups, scene, sources);
305+
if (m_CollectObjects == CollectObjects.All)
306+
{
307+
UnityEditor.AI.NavMeshBuilder.CollectSourcesInStage(
308+
null, m_LayerMask, m_UseGeometry, m_DefaultArea, markups, gameObject.scene, sources);
309+
}
310+
else if (m_CollectObjects == CollectObjects.Children)
311+
{
312+
UnityEditor.AI.NavMeshBuilder.CollectSourcesInStage(
313+
transform, m_LayerMask, m_UseGeometry, m_DefaultArea, markups, gameObject.scene, sources);
314+
}
315+
else if (m_CollectObjects == CollectObjects.Volume)
316+
{
317+
Matrix4x4 localToWorld = Matrix4x4.TRS(transform.position, transform.rotation, Vector3.one);
318+
var worldBounds = GetWorldBounds(localToWorld, new Bounds(m_Center, m_Size));
319+
320+
UnityEditor.AI.NavMeshBuilder.CollectSourcesInStage(
321+
worldBounds, m_LayerMask, m_UseGeometry, m_DefaultArea, markups, gameObject.scene, sources);
322+
}
310323
}
311-
else if (m_CollectObjects == CollectObjects.Volume)
324+
else
325+
#endif
312326
{
313-
Matrix4x4 localToWorld = Matrix4x4.TRS(transform.position, transform.rotation, Vector3.one);
314-
var worldBounds = GetWorldBounds(localToWorld, new Bounds(m_Center, m_Size));
315-
NavMeshBuilder.CollectSources(worldBounds, m_LayerMask, m_UseGeometry, m_DefaultArea, markups, scene, sources);
327+
if (m_CollectObjects == CollectObjects.All)
328+
{
329+
NavMeshBuilder.CollectSources(null, m_LayerMask, m_UseGeometry, m_DefaultArea, markups, sources);
330+
}
331+
else if (m_CollectObjects == CollectObjects.Children)
332+
{
333+
NavMeshBuilder.CollectSources(transform, m_LayerMask, m_UseGeometry, m_DefaultArea, markups, sources);
334+
}
335+
else if (m_CollectObjects == CollectObjects.Volume)
336+
{
337+
Matrix4x4 localToWorld = Matrix4x4.TRS(transform.position, transform.rotation, Vector3.one);
338+
var worldBounds = GetWorldBounds(localToWorld, new Bounds(m_Center, m_Size));
339+
NavMeshBuilder.CollectSources(worldBounds, m_LayerMask, m_UseGeometry, m_DefaultArea, markups, sources);
340+
}
316341
}
317342

318343
if (m_IgnoreNavMeshAgent)

Packages/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"dependencies": {
3-
"com.unity.package-manager-ui": "2.0.0-preview.3",
3+
"com.unity.package-manager-ui": "2.0.0-preview.7",
44
"com.unity.modules.ai": "1.0.0",
55
"com.unity.modules.animation": "1.0.0",
66
"com.unity.modules.assetbundle": "1.0.0",

ProjectSettings/GraphicsSettings.asset

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
--- !u!30 &1
44
GraphicsSettings:
55
m_ObjectHideFlags: 0
6-
serializedVersion: 9
6+
serializedVersion: 12
77
m_Deferred:
88
m_Mode: 1
99
m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0}
@@ -36,29 +36,28 @@ GraphicsSettings:
3636
- {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0}
3737
- {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0}
3838
- {fileID: 10782, guid: 0000000000000000f000000000000000, type: 0}
39+
- {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0}
40+
- {fileID: 17000, guid: 0000000000000000f000000000000000, type: 0}
3941
m_PreloadedShaders: []
40-
m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000,
41-
type: 0}
42-
m_TierSettings_Tier1:
43-
renderingPath: 1
44-
useCascadedShadowMaps: 1
45-
m_TierSettings_Tier2:
46-
renderingPath: 1
47-
useCascadedShadowMaps: 1
48-
m_TierSettings_Tier3:
49-
renderingPath: 1
50-
useCascadedShadowMaps: 1
42+
m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
43+
m_CustomRenderPipeline: {fileID: 0}
44+
m_TransparencySortMode: 0
45+
m_TransparencySortAxis: {x: 0, y: 0, z: 1}
5146
m_DefaultRenderingPath: 1
5247
m_DefaultMobileRenderingPath: 1
5348
m_TierSettings: []
5449
m_LightmapStripping: 0
5550
m_FogStripping: 0
51+
m_InstancingStripping: 0
5652
m_LightmapKeepPlain: 1
5753
m_LightmapKeepDirCombined: 1
58-
m_LightmapKeepDirSeparate: 1
5954
m_LightmapKeepDynamicPlain: 1
6055
m_LightmapKeepDynamicDirCombined: 1
61-
m_LightmapKeepDynamicDirSeparate: 1
56+
m_LightmapKeepShadowMask: 1
57+
m_LightmapKeepSubtractive: 1
6258
m_FogKeepLinear: 1
6359
m_FogKeepExp: 1
6460
m_FogKeepExp2: 1
61+
m_AlbedoSwatchInfos: []
62+
m_LightsUseLinearIntensity: 0
63+
m_LightsUseColorTemperature: 0

ProjectSettings/ProjectSettings.asset

Lines changed: 38 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ PlayerSettings:
5252
m_StackTraceTypes: 010000000100000001000000010000000100000001000000
5353
iosShowActivityIndicatorOnLoading: -1
5454
androidShowActivityIndicatorOnLoading: -1
55-
tizenShowActivityIndicatorOnLoading: -1
5655
iosAppInBackgroundBehavior: 0
5756
displayResolutionDialog: 1
5857
iosAllowHTTPDownload: 1
@@ -64,6 +63,7 @@ PlayerSettings:
6463
use32BitDisplayBuffer: 1
6564
preserveFramebufferAlpha: 0
6665
disableDepthAndStencilBuffers: 0
66+
androidStartInFullscreen: 1
6767
androidBlitType: 0
6868
defaultIsNativeResolution: 1
6969
macRetinaSupport: 1
@@ -97,9 +97,6 @@ PlayerSettings:
9797
xboxEnableGuest: 0
9898
xboxEnablePIXSampling: 0
9999
metalFramebufferOnly: 0
100-
n3dsDisableStereoscopicView: 0
101-
n3dsEnableSharedListOpt: 1
102-
n3dsEnableVSync: 0
103100
xboxOneResolution: 0
104101
xboxOneSResolution: 0
105102
xboxOneXResolution: 3
@@ -108,9 +105,7 @@ PlayerSettings:
108105
xboxOneDisableEsram: 0
109106
xboxOnePresentImmediateThreshold: 0
110107
switchQueueCommandMemory: 0
111-
videoMemoryForVertexBuffers: 0
112-
psp2PowerMode: 0
113-
psp2AcquireBGM: 1
108+
vulkanEnableSetSRGBWrite: 0
114109
m_SupportedAspectRatios:
115110
4:3: 1
116111
5:4: 1
@@ -138,11 +133,12 @@ PlayerSettings:
138133
hololens:
139134
depthFormat: 1
140135
depthBufferSharingEnabled: 0
141-
enable360StereoCapture: 0
142136
oculus:
143137
sharedDepthBuffer: 0
144138
dashSupport: 0
139+
enable360StereoCapture: 0
145140
protectGraphicsMemory: 0
141+
enableFrameTimingStats: 0
146142
useHDRDisplay: 0
147143
m_ColorGamuts: 00000000
148144
targetPixelDensity: 30
@@ -247,6 +243,7 @@ PlayerSettings:
247243
androidSplashScreen: {fileID: 0}
248244
AndroidKeystoreName:
249245
AndroidKeyaliasName:
246+
AndroidBuildApkPerCpuArchitecture: 0
250247
AndroidTVCompatibility: 1
251248
AndroidIsGame: 1
252249
AndroidEnableTango: 0
@@ -257,6 +254,7 @@ PlayerSettings:
257254
height: 180
258255
banner: {fileID: 0}
259256
androidGamepadSupportLevel: 0
257+
AndroidJvmMaxHeapSize: 4096
260258
resolutionDialogBanner: {fileID: 0}
261259
m_BuildTargetIcons: []
262260
m_BuildTargetPlatformIcons: []
@@ -277,6 +275,7 @@ PlayerSettings:
277275
m_EncodingQuality: 1
278276
- m_BuildTarget: PS4
279277
m_EncodingQuality: 1
278+
m_BuildTargetGroupLightmapSettings: []
280279
playModeTestRunnerEnabled: 0
281280
runPlayModeTestAsEditModeTest: 0
282281
actionOnDotNetUnhandledException: 1
@@ -399,6 +398,9 @@ PlayerSettings:
399398
switchAllowsRuntimeAddOnContentInstall: 0
400399
switchDataLossConfirmation: 0
401400
switchSupportedNpadStyles: 3
401+
switchNativeFsCacheSize: 32
402+
switchIsHoldTypeHorizontal: 0
403+
switchSupportedNpadCount: 8
402404
switchSocketConfigEnabled: 0
403405
switchTcpInitialSendBufferSize: 32
404406
switchTcpInitialReceiveBufferSize: 64
@@ -455,6 +457,7 @@ PlayerSettings:
455457
ps4pnGameCustomData: 1
456458
playerPrefsSupport: 0
457459
enableApplicationExit: 0
460+
resetTempFolder: 1
458461
restrictedAudioUsageRights: 0
459462
ps4UseResolutionFallback: 0
460463
ps4ReprojectionSupport: 0
@@ -478,53 +481,6 @@ PlayerSettings:
478481
ps4attribEyeToEyeDistanceSettingVR: 0
479482
ps4IncludedModules: []
480483
monoEnv:
481-
psp2Splashimage: {fileID: 0}
482-
psp2NPTrophyPackPath:
483-
psp2NPSupportGBMorGJP: 0
484-
psp2NPAgeRating: 12
485-
psp2NPTitleDatPath:
486-
psp2NPCommsID:
487-
psp2NPCommunicationsID:
488-
psp2NPCommsPassphrase:
489-
psp2NPCommsSig:
490-
psp2ParamSfxPath:
491-
psp2ManualPath:
492-
psp2LiveAreaGatePath:
493-
psp2LiveAreaBackroundPath:
494-
psp2LiveAreaPath:
495-
psp2LiveAreaTrialPath:
496-
psp2PatchChangeInfoPath:
497-
psp2PatchOriginalPackage:
498-
psp2PackagePassword: WRK5RhRXdCdG5nG5azdNMK66MuCV6GXi
499-
psp2KeystoneFile:
500-
psp2MemoryExpansionMode: 0
501-
psp2DRMType: 0
502-
psp2StorageType: 0
503-
psp2MediaCapacity: 0
504-
psp2DLCConfigPath:
505-
psp2ThumbnailPath:
506-
psp2BackgroundPath:
507-
psp2SoundPath:
508-
psp2TrophyCommId:
509-
psp2TrophyPackagePath:
510-
psp2PackagedResourcesPath:
511-
psp2SaveDataQuota: 10240
512-
psp2ParentalLevel: 1
513-
psp2ShortTitle: Not Set
514-
psp2ContentID: IV0000-ABCD12345_00-0123456789ABCDEF
515-
psp2Category: 0
516-
psp2MasterVersion: 01.00
517-
psp2AppVersion: 01.00
518-
psp2TVBootMode: 0
519-
psp2EnterButtonAssignment: 2
520-
psp2TVDisableEmu: 0
521-
psp2AllowTwitterDialog: 1
522-
psp2Upgradable: 0
523-
psp2HealthWarning: 0
524-
psp2UseLibLocation: 0
525-
psp2InfoBarOnStartup: 0
526-
psp2InfoBarColor: 0
527-
psp2ScriptOptimizationLevel: 0
528484
splashScreenBackgroundSourceLandscape: {fileID: 0}
529485
splashScreenBackgroundSourcePortrait: {fileID: 0}
530486
spritePackerPolicy:
@@ -540,10 +496,12 @@ PlayerSettings:
540496
webGLUseEmbeddedResources: 0
541497
webGLCompressionFormat: 1
542498
webGLLinkerTarget: 0
499+
webGLThreadsSupport: 0
543500
scriptingDefineSymbols: {}
544501
platformArchitecture: {}
545502
scriptingBackend: {}
546503
il2cppCompilerConfiguration: {}
504+
managedStrippingLevel: {}
547505
incrementalIl2cppBuild: {}
548506
allowUnsafeCode: 0
549507
additionalIl2CppArgs:
@@ -561,41 +519,23 @@ PlayerSettings:
561519
metroApplicationDescription: NavMeshComponents
562520
wsaImages: {}
563521
metroTileShortName:
564-
metroCommandLineArgsFile:
565522
metroTileShowName: 0
566523
metroMediumTileShowName: 0
567524
metroLargeTileShowName: 0
568525
metroWideTileShowName: 0
526+
metroSupportStreamingInstall: 0
527+
metroLastRequiredScene: 0
569528
metroDefaultTileSize: 1
570529
metroTileForegroundText: 2
571530
metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0}
572-
metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628,
573-
a: 1}
531+
metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, a: 1}
574532
metroSplashScreenUseBackgroundColor: 0
575533
platformCapabilities: {}
534+
metroTargetDeviceFamilies: {}
576535
metroFTAName:
577536
metroFTAFileTypes: []
578537
metroProtocolName:
579538
metroCompilationOverrides: 1
580-
tizenProductDescription:
581-
tizenProductURL:
582-
tizenSigningProfileName:
583-
tizenGPSPermissions: 0
584-
tizenMicrophonePermissions: 0
585-
tizenDeploymentTarget:
586-
tizenDeploymentTargetType: 0
587-
tizenMinOSVersion: 1
588-
n3dsUseExtSaveData: 0
589-
n3dsCompressStaticMem: 1
590-
n3dsExtSaveDataNumber: 0x12345
591-
n3dsStackSize: 131072
592-
n3dsTargetPlatform: 2
593-
n3dsRegion: 7
594-
n3dsMediaSize: 0
595-
n3dsLogoStyle: 3
596-
n3dsTitle: GameName
597-
n3dsProductCode:
598-
n3dsApplicationId: 0xFF3FF
599539
XboxOneProductId:
600540
XboxOneUpdateKey:
601541
XboxOneSandboxId:
@@ -605,6 +545,7 @@ PlayerSettings:
605545
XboxOneGameOsOverridePath:
606546
XboxOnePackagingOverridePath:
607547
XboxOneAppManifestOverridePath:
548+
XboxOneVersion: 1.0.0.0
608549
XboxOnePackageEncryption: 0
609550
XboxOnePackageUpdateGranularity: 2
610551
XboxOneDescription:
@@ -620,16 +561,36 @@ PlayerSettings:
620561
XboxOnePersistentLocalStorageSize: 0
621562
XboxOneXTitleMemory: 8
622563
xboxOneScriptCompiler: 0
564+
XboxOneOverrideIdentityName:
623565
vrEditorSettings:
624566
daydream:
625567
daydreamIconForeground: {fileID: 0}
626568
daydreamIconBackground: {fileID: 0}
627569
cloudServicesEnabled: {}
570+
luminIcon:
571+
m_Name:
572+
m_ModelFolderPath:
573+
m_PortalFolderPath:
574+
luminCert:
575+
m_CertPath:
576+
m_PrivateKeyPath:
577+
luminIsChannelApp: 0
578+
luminVersion:
579+
m_VersionCode: 1
580+
m_VersionName:
628581
facebookSdkVersion: 7.9.4
582+
facebookAppId:
583+
facebookCookies: 1
584+
facebookLogging: 1
585+
facebookStatus: 1
586+
facebookXfbml: 0
587+
facebookFrictionlessRequests: 1
629588
apiCompatibilityLevel: 2
630589
cloudProjectId:
590+
framebufferDepthMemorylessMode: 0
631591
projectName:
632592
organizationId:
633593
cloudEnabled: 0
634594
enableNativePlatformBackendsForNewInputSystem: 0
635595
disableOldInputManagerSupport: 0
596+
legacyClampBlendShapeWeights: 1

ProjectSettings/ProjectVersion.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
m_EditorVersion: 2018.3.0a6
1+
m_EditorVersion: 2018.3.0a10

0 commit comments

Comments
 (0)