Skip to content

Commit ac359b9

Browse files
author
Unity Technologies
committedOct 31, 2024·
Unity 6000.1.0a3 C# reference source code
1 parent 59e16ee commit ac359b9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+1201
-563
lines changed
 

‎Editor/Mono/Audio/AudioContainerWindow.cs

+5
Original file line numberDiff line numberDiff line change
@@ -965,6 +965,11 @@ void OnAudioClipListChanged(SerializedProperty property)
965965
// Force a list rebuild when the list has changed or it will not always render correctly
966966
m_ClipsListView.Rebuild();
967967

968+
// This function is the first entry-point in `AudioContainerWindow` after an undo-event that alters the
969+
// audio clip list has been triggered. And, whenever the list is altered, we need to make sure the state is stopped.
970+
State.Stop();
971+
ClearClipFieldProgressBars();
972+
968973
UpdateTransportButtonStates();
969974
SetTitle();
970975
}

‎Editor/Mono/BuildPipeline.bindings.cs

+18
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,24 @@ private static BuildReport BuildPlayer(string[] scenes, string locationPathName,
393393
scenes[i] = scenes[i].Replace('\\', '/').Replace("//", "/");
394394
}
395395

396+
if ((options & BuildOptions.Development) == 0)
397+
{
398+
if ((options & BuildOptions.AllowDebugging) != 0)
399+
{
400+
throw new ArgumentException("Non-development build cannot allow debugging. Either add the Development build option, or remove the AllowDebugging build option.");
401+
}
402+
403+
if ((options & BuildOptions.EnableDeepProfilingSupport) != 0)
404+
{
405+
throw new ArgumentException("Non-development build cannot allow deep profiling support. Either add the Development build option, or remove the EnableDeepProfilingSupport build option.");
406+
}
407+
408+
if ((options & BuildOptions.ConnectWithProfiler) != 0)
409+
{
410+
throw new ArgumentException("Non-development build cannot allow auto-connecting the profiler. Either add the Development build option, or remove the ConnectWithProfiler build option.");
411+
}
412+
}
413+
396414
try
397415
{
398416
return BuildPlayerInternal(scenes, locationPathName, assetBundleManifestPath, buildTargetGroup, target, subtarget, options, extraScriptingDefines);

0 commit comments

Comments
 (0)
Please sign in to comment.