├── .gitignore ├── LICENSE.md ├── External ├── NetStandardExtensions │ └── System.CodeDom.dll ├── ExCSS │ └── builds │ │ └── builds │ │ └── lib │ │ └── net35 │ │ └── ExCSS.Unity.dll ├── Unity.Cecil │ └── builds │ │ └── lib │ │ └── net40 │ │ ├── Unity.Cecil.dll │ │ ├── Unity.Cecil.Mdb.dll │ │ ├── Unity.Cecil.Pdb.dll │ │ └── Unity.Cecil.Rocks.dll ├── unitytls │ └── builds │ │ └── CSharp │ │ └── UnityTLSNativeLibrary.cs └── baselib │ └── baselib │ └── CSharp │ └── BaselibNativeLibrary.cs ├── Tools └── Bee │ └── build │ └── Distribution │ ├── BeeDriver2 │ ├── Bee.BinLog.dll │ └── Bee.BeeDriver2.dll │ └── BeeTinyProfiler2 │ └── Bee.TinyProfiler2.dll ├── Editor └── Mono │ ├── Inspector │ ├── UNetBehaviourInspector.cs │ └── Core │ │ └── ScriptAttributeGUI │ │ └── GUIDrawer.cs │ ├── IPlatformProperties.cs │ ├── ICleanuppable.cs │ ├── IHasCustomMenu.cs │ ├── Audio │ ├── Analytics │ │ └── AudioAnalytics.cs │ ├── WaveformPreviewFactory.cs │ └── Effects │ │ └── IAudioEffectPluginGUI.cs │ ├── VersionControl │ ├── Common │ │ ├── VCChangeSets.cs │ │ ├── ISettingsInspectorExtension.cs │ │ ├── IPopupMenuExtension.cs │ │ ├── IInspectorWindowExtension.cs │ │ ├── IIconOverlayExtension.cs │ │ └── VCMessage.cs │ └── VersionControlManager.bindings.cs │ ├── BuildPipeline │ ├── OSArchitecture.cs │ ├── RenderPipeline │ │ └── RenderPipelineBuildProcessor.cs │ ├── Android │ │ └── AndroidPostGenerateGradleProject.cs │ ├── RuntimeClassMetadataUtils.bindings.cs │ └── DesktopStandaloneUserBuildSettings.cs │ ├── MonoCecil │ ├── IFileOpenInfo.cs │ ├── IMonoCecilHelper.cs │ └── FileOpenInfo.cs │ ├── GUI │ ├── ListViewOptions.cs │ ├── ListViewElement.cs │ ├── SubToolbar.cs │ └── PopupLocation.cs │ ├── SaveAssetsProcessor.cs │ ├── Utils │ ├── LightProbeGroupSelection.cs │ ├── DirectoryExtensions.cs │ └── EnumUtility.cs │ ├── GameView │ ├── IGameViewOnPlayMenuUser.cs │ └── IGameViewSizeMenuUser.cs │ ├── Scripting │ ├── Compilers │ │ ├── CompilerSpecificReponseFiles.cs │ │ └── MicrosoftCSharpResponseFileProvider.cs │ └── ScriptCompilation │ │ ├── CompilerMessage.cs │ │ └── ExpressionNotValidException.cs │ ├── IVRPlatformProperties.cs │ ├── PluginDesc.cs │ ├── Prefabs │ └── PrefabImporter.bindings.cs │ ├── Camera │ └── IScriptableBakedReflectionSystemStageNotifier.cs │ ├── EditorWindow.bindings.cs │ ├── IAudioPlatformProperties.cs │ ├── Playables │ └── PlayableOutputEditorExtensions.cs │ ├── CodeEditor │ └── ExternalEditor.bindings.cs │ ├── IUIPlatformProperties.cs │ ├── UIElements │ └── StyleSheets │ │ └── ThemeAssetDefinitionState.cs │ ├── Macros │ └── MacroEvaluator.cs │ ├── SceneView │ └── PickingShortcutContext.cs │ ├── HyperLinkClickedEventArgs.cs │ ├── AssetPipeline │ ├── ComputeShaderImporter.bindings.cs │ ├── ShaderIncludeImporter.bindings.cs │ ├── AssemblyDefinitionImporter.cs │ └── AssemblyDefinitionReferenceImporter.cs │ ├── EditorUserBuildSettingsQNX.bindings.cs │ ├── BuildPipelineExperimental.cs │ ├── AvatarUtility.bindings.cs │ ├── BrokenPrefabAsset.bindings.cs │ ├── PreferencesWindow │ └── PreferencesItem.cs │ ├── GI │ ├── LightingDataAsset.bindings.cs │ └── LightmapSnapshot.deprecated.cs │ ├── Overlays │ └── ICreateToolbar.cs │ ├── Collab │ └── IVersionControl.cs │ └── Tools │ └── IEditor.cs ├── Runtime ├── Export │ ├── Windows │ │ ├── WindowsInput.bindings.cs │ │ ├── WindowsCrashReporting.bindings.cs │ │ └── WindowsCrypto.bindings.cs │ ├── Director │ │ ├── INotification.cs │ │ ├── IPlayable.cs │ │ ├── IPlayableOutput.cs │ │ ├── Notification.cs │ │ ├── INotificationReceiver.cs │ │ └── IExposedPropertyTable.cs │ ├── Camera │ │ ├── FlareLayer.bindings.cs │ │ └── IScriptableRuntimeReflectionSystem.cs │ ├── IMGUI │ │ └── ScrollWaitDefinitions.cs │ ├── Scripting │ │ ├── AlwaysLinkAssemblyAttribute.cs │ │ ├── RequireDerivedAttribute.cs │ │ ├── RequireAttributeUsagesAttribute.cs │ │ ├── RequireImplementorsAttribute.cs │ │ ├── SelectionBaseAttribute.cs │ │ ├── ExcludeFromObjectFactoryAttribute.cs │ │ ├── WaitForFixedUpdate.cs │ │ ├── YieldOperation.cs │ │ ├── Il2CppEagerStaticClassConstructionAttribute.cs │ │ ├── RequiredMemberAttribute.cs │ │ ├── WaitForEndOfFrame.cs │ │ ├── ScriptingRuntime.bindings.cs │ │ ├── RangeInt.cs │ │ ├── RequiredInterfaceAttribute.cs │ │ └── ExtensionOfNativeClassAttribute.cs │ ├── RenderPipeline │ │ ├── GizmoSubset.cs │ │ ├── ReflectionProbeSortingCriteria.cs │ │ ├── DrawRendererFlags.cs │ │ ├── VisibleLightFlags.cs │ │ ├── UISubset.cs │ │ ├── InvalidImportException.cs │ │ └── RenderStateMask.cs │ ├── Graphics │ │ ├── IRenderPipelineGraphicsSettings.cs │ │ ├── Watermark.bindings.cs │ │ ├── RenderPipelineGraphicsSettingsCollection.cs │ │ └── LightProbeGroup.bindings.cs │ ├── Logging │ │ └── ILogHandler.cs │ ├── ObjectPool │ │ └── IObjectPool.cs │ ├── Burst │ │ ├── BurstDiscardAttribute.cs │ │ └── BurstAuthorizedExternalMethodAttribute.cs │ ├── Math │ │ └── ColorUtility.bindings.cs │ ├── Internal │ │ ├── InternalInterfaces.cs │ │ └── ExcludeFromDocs.cs │ ├── Caching │ │ └── Caching.deprecated.cs │ ├── ETW │ │ └── EventProvider.bindings.cs │ ├── iOS │ │ └── iOSSystemGestureDeferMode.cs │ ├── Profiler │ │ └── IgnoredByDeepProfilerAttribute.cs │ ├── WSA │ │ └── WSACursor.bindings.cs │ ├── SystemInfo │ │ └── SystemInfo.deprecated.cs │ └── UnityEngineInternal │ │ └── WrappedTypes.cs ├── Profiler │ └── ScriptBindings │ │ └── ProfilerScreenCapture.cs ├── 2D │ └── Common │ │ └── ScriptBindings │ │ └── Light2DBase.cs └── NameFormatter │ └── NameFormatter.bindings.cs ├── artifacts └── Stevedore │ └── unity-compiler-win-x64_8048 │ └── Unity.CompilationPipeline.Common │ └── Unity.CompilationPipeline.Common.dll └── Modules ├── Audio └── Public │ ├── ScriptBindings │ ├── ExposeVivox.cs │ ├── ExposeDSPGraph.cs │ └── AudioMixerGroup.bindings.cs │ └── Managed │ ├── IValidatable.cs │ └── IHandle.cs ├── AndroidJNI ├── AssemblyInfo.cs ├── Configuration │ ├── AndroidColorModeHdr.cs │ ├── AndroidKeyboardHidden.cs │ ├── AndroidNavigationHidden.cs │ ├── AndroidTouchScreen.cs │ ├── AndroidOrientation.cs │ ├── AndroidColorModeWideColorGamut.cs │ ├── AndroidHardwareKeyboardHidden.cs │ ├── AndroidScreenLayoutDirection.cs │ ├── AndroidKeyboard.cs │ ├── AndroidUiModeNight.cs │ ├── AndroidScreenLayoutLong.cs │ ├── AndroidScreenLayoutRound.cs │ ├── AndroidNavigation.cs │ ├── AndroidScreenLayoutSize.cs │ └── AndroidUiModeType.cs └── AndroidDiagnosticsReporting.cs ├── UIElementsEditor ├── Legacy │ └── ProgressBar.cs ├── Delegates │ └── SerializedPropertyDelegates.cs ├── Text │ └── PanelTextSettingsEditor.cs ├── Debugger │ └── Events │ │ └── IRegisteredCallbackLine.cs ├── UIElementsEditorRuntimeUtility.cs ├── EditorUIElementsBridge.cs └── GameObjects │ └── Inspector │ └── UIRendererEditor.cs ├── UnityCurl └── FriendAttributes.cs ├── TerrainEditor └── AssemblyInfo.cs ├── TextCoreTextEngineEditor └── Managed │ ├── AssemblyInfo.cs │ └── FontAssetEditorUtilities.cs ├── QuickSearch └── Editor │ ├── UITK │ └── ISearchPanel.cs │ ├── Utilities │ └── RaceConditionDetector.cs │ └── QueryEngine │ └── QueryToggle.cs ├── UIElements ├── Core │ ├── Layout │ │ └── Model │ │ │ ├── LayoutDisplay.cs │ │ │ ├── LayoutDimension.cs │ │ │ ├── LayoutNodeType.cs │ │ │ ├── LayoutPositionType.cs │ │ │ ├── LayoutDirection.cs │ │ │ ├── LayoutWrap.cs │ │ │ ├── LayoutOverflow.cs │ │ │ ├── LayoutUnit.cs │ │ │ ├── LayoutFlexDirection.cs │ │ │ ├── LayoutLogLevel.cs │ │ │ ├── LayoutMeasureMode.cs │ │ │ ├── LayoutPrintOptions.cs │ │ │ ├── LayoutJustify.cs │ │ │ ├── LayoutEdge.cs │ │ │ ├── LayoutAlign.cs │ │ │ ├── LayoutSize.cs │ │ │ └── Components │ │ │ └── LayoutConfigData.cs │ ├── DragAndDrop │ │ ├── IReorderable.cs │ │ └── ICollectionDragAndDropController.cs │ ├── UpgradeConstants.cs │ ├── StyleSheets │ │ ├── StyleSelectorRelationship.cs │ │ ├── StyleSelectorType.cs │ │ └── ThemeStyleSheet.cs │ ├── GameObjects │ │ └── RuntimeEventDispatcher.cs │ ├── UIElementsBridge.cs │ ├── DropdownUtility.cs │ ├── Bindings │ │ ├── BindingTarget.cs │ │ └── CustomBinding.Factory.cs │ ├── Style │ │ ├── IStyle.cs │ │ └── IResolvedStyle.cs │ └── Collections │ │ ├── Controllers │ │ └── ISerializedObjectList.cs │ │ └── DictionaryExtensions.cs └── ScriptBindings │ ├── VisualNodeRenderData.bindings.cs │ ├── VisualNodeImguiData.bindings.cs │ ├── VisualPanelData.bindings.cs │ ├── VisualNodeTextData.bindings.cs │ └── VisualNodePseudoStateData.bindings.cs ├── ImageConversion └── ScriptBindings │ └── AssemblyInfo.cs ├── GameCenter └── Public │ └── GameCenterServices.bindings.cs ├── IMGUI ├── FriendAttributes.cs └── GUISkin.bindings.cs ├── PropertiesEditor └── Module │ └── AssemblyInfo.cs ├── GraphViewEditor ├── Direction.cs ├── Orientation.cs ├── Elements │ ├── IResizable.cs │ └── Line2.cs ├── ExperimentalNamespaceRelic.cs ├── ICollectibleElement.cs ├── AssemblyInfo.cs ├── ISelection.cs └── ISelectable.cs ├── Licensing └── UI │ ├── Helper │ ├── Constants.cs │ └── ILicenseLogger.cs │ ├── Events │ ├── INotificationDispatcher.cs │ ├── Buttons │ │ ├── EventsButtonType.cs │ │ └── IEventsButtonFactory.cs │ ├── ILicenseNotificationHandlerFactory.cs │ └── Handlers │ │ └── INotificationHandler.cs │ └── Data │ └── Events │ └── Base │ ├── NotificationType.cs │ └── NotificationWithDetails.cs ├── AssetBundle └── Managed │ └── AssemblyInfo.cs ├── PackageManager └── Editor │ └── Managed │ ├── Search │ ├── SearchOrder.cs │ ├── SearchEntitlement.cs │ └── SearchOrderBy.cs │ ├── StatusCode.cs │ ├── ResolutionStrategy.cs │ ├── LogLevel.cs │ ├── ProgressState.cs │ ├── SignatureStatus.cs │ ├── EntitlementLicensingModel.cs │ ├── ConfigSource.cs │ ├── IShouldIncludeInBuildCallback.cs │ ├── NativeStatusCode.cs │ ├── PackageSource.cs │ ├── NativeErrorCode.cs │ ├── EditorCompatibilityLevel.cs │ ├── ErrorCode.cs │ ├── DownloadProgress.cs │ └── ProgressUpdateEventArgs.cs ├── Physics ├── AssemblyInfo.cs ├── Managed │ ├── ForceMode.cs │ └── CollisionDetectionMode.cs └── ScriptBindings │ ├── FixedJoint.bindings.cs │ ├── BoxCollider.bindings.cs │ ├── SphereCollider.bindings.cs │ ├── RaycastHit.deprecated.cs │ ├── BoxCollider.deprecated.cs │ ├── CapsuleCollider.bindings.cs │ └── ConstantForce.bindings.cs ├── Subsystems ├── ISubsystemDescriptor.cs ├── ISubsystem.cs ├── SubsystemDescriptorStore.deprecated.cs └── IntegratedSubsystem.deprecated.cs ├── VirtualTexturing └── Managed │ └── AssemblyInfo.cs ├── BuildProfileEditor └── AssemblyInfo.cs ├── TreeEditor └── Includes │ └── TreeMaterial.cs ├── BuildReportingEditor └── Managed │ ├── BuildType.cs │ ├── BuildResult.cs │ ├── ScenesUsingAsset.cs │ └── BuildStepMessage.cs ├── ShortcutManagerEditor ├── PriorityContextAttribute.cs ├── IConflictResolver.cs ├── IShortcutContext.cs └── ReserveModifiersAttribute.cs ├── PackageManagerUI └── Editor │ ├── UI │ ├── Common │ │ ├── Tabs │ │ │ ├── ITabElement.cs │ │ │ └── BaseTabElement.cs │ │ └── IncorrectFieldTypeException.cs │ ├── MultiSelect │ │ ├── IMultiSelectFoldoutElement.cs │ │ └── NoActionsFoldout.cs │ ├── PackageHelpBox │ │ └── PackageBaseHelpBox.cs │ ├── Interfaces │ │ └── ISelectableItem.cs │ ├── PackageSelectionObject.cs │ ├── PackageManifest.cs │ ├── ToolBar │ │ └── Interfaces │ │ │ └── IPackageToolBarButton.cs │ └── PackageTagLabel │ │ └── PackageBaseTagLabel.cs │ ├── Extensions │ └── Interfaces │ │ ├── IMenu.cs │ │ ├── IExtension.cs │ │ ├── IDetailsExtension.cs │ │ ├── IMenuDropdownItem.cs │ │ ├── IPackageActionMenu.cs │ │ ├── IPackageActionDropdownItem.cs │ │ └── IPackageActionButton.cs │ ├── Services │ ├── Packages │ │ ├── RegistryType.cs │ │ ├── PackageProgress.cs │ │ ├── PackageLink │ │ │ └── PackageUpmVersionHistoryChangelogLink.cs │ │ └── PackageImage.cs │ ├── AssetStore │ │ └── Asset.cs │ ├── Pages │ │ └── PageCapability.cs │ ├── Proxies │ │ └── DateTimeProxy.cs │ └── Interfaces │ │ └── IVisualStateList.cs │ └── External │ └── ServicesTab │ ├── ServicesTabConfiguration.cs │ └── ServiceGroupingsWrapper.cs ├── UIBuilder └── Editor │ ├── Utilities │ ├── Transitions │ │ └── TransitionPropertyDropdownContent.cs │ └── StyleField │ │ └── BoxType.cs │ └── Builder │ ├── Viewport │ └── IBuilderViewportWindow.cs │ └── Inspector │ └── IBuilderInspectorSection.cs ├── AI └── AssemblyInfo.cs ├── Animation └── Managed │ ├── IAnimationPreviewable.cs │ ├── IAnimationClipSource.cs │ ├── NotKeyableAttribute.cs │ ├── IAnimationJob.cs │ └── IAnimationJobPlayable.cs ├── AssetDatabase └── Editor │ ├── V2 │ ├── Managed │ │ └── AssetPostprocessorStaticVariableIgnoreAttribute.cs │ └── MultiArtifactTestImporter.bindings.cs │ └── Public │ └── PreviewImporter.bindings.cs ├── ProfilerEditor └── ProfilerWindow │ ├── Analytics │ └── IAnalyticsService.cs │ ├── Bottlenecks │ ├── Details │ │ └── Shared │ │ │ └── TimeFormatterUtility.cs │ └── Data │ │ └── IProfilerPersistentSettingsService.cs │ ├── ModuleEditor │ └── ViewController.cs │ ├── ViewControllerSystem │ └── InvalidViewDefinedInUxmlException.cs │ ├── ProfilerModules │ └── Memory │ │ └── ObjectMemoryInfo.cs │ └── UIElements │ └── SelectableLabel.cs ├── BuildPipeline └── Editor │ ├── Managed │ ├── BuildArchiveImporter.cs │ ├── BuildMetaDataImporter.cs │ └── BuildInstructionImporter.cs │ └── Shared │ └── ReferencesArtifactGenerator.bindings.cs ├── DSPGraph └── Public │ └── ScriptBindings │ ├── ExposeDSPGraph.cs │ └── ExecuteContext.bindings.cs ├── Director └── AssemblyInfo.cs ├── ShaderFoundry └── ScriptBindings │ ├── ITemplateLinker.cs │ └── PassStageType.bindings.cs ├── DeviceSimulatorEditor ├── DeviceInfo │ └── DeviceInfoImporterEditor.cs └── AssemblyInfo.cs ├── Properties └── Runtime │ ├── Algorithms │ └── PropertyContainer.cs │ └── Reflection │ └── Internal │ └── ReflectionUtilities.cs ├── UIAutomationEditor └── TestEditorWindow.cs ├── AccessibilityEditor └── Managed │ └── AccessibilityEditor.cs ├── XR └── ScriptBindings │ └── VRNode.cs ├── Grid └── Managed │ └── Grid.cs ├── Multiplayer └── Managed │ └── MultiplayerRolesData.bindings.cs ├── UnityWebRequest ├── Public │ └── WebRequest.deprecated.cs └── FriendAttributes.cs ├── EditorToolbar └── Controls │ └── EditorToolbarFloatField.cs ├── MultiplayerEditor └── Managed │ └── AssemblyInfo.cs ├── AssetPipelineEditor └── Public │ └── AndroidAssetPackImporter.bindings.cs ├── Accessibility ├── AssemblyInfo.cs └── Managed │ └── Services │ └── IService.cs ├── UIElementsSamplesEditor └── UIElementsSnippetAsset.cs ├── TextCoreTextEngine └── Managed │ └── NativeTextInfo.cs ├── ClusterRenderer └── ClusterRenderer.bindings.cs ├── HierarchyCore └── Managed │ ├── AssemblyInfo.cs │ └── HierarchyNodeChildrenAlloc.cs └── TextRendering └── FontStyle.cs /.gitignore: -------------------------------------------------------------------------------- 1 | **/.vs 2 | **/.vscode 3 | **/.idea 4 | **/obj/ 5 | **/bin/ -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | For terms of use, see https://unity3d.com/legal/licenses/Unity_Reference_Only_License 2 | -------------------------------------------------------------------------------- /External/NetStandardExtensions/System.CodeDom.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SolarianZ/UnityCsReference/master/External/NetStandardExtensions/System.CodeDom.dll -------------------------------------------------------------------------------- /External/ExCSS/builds/builds/lib/net35/ExCSS.Unity.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SolarianZ/UnityCsReference/master/External/ExCSS/builds/builds/lib/net35/ExCSS.Unity.dll -------------------------------------------------------------------------------- /External/Unity.Cecil/builds/lib/net40/Unity.Cecil.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SolarianZ/UnityCsReference/master/External/Unity.Cecil/builds/lib/net40/Unity.Cecil.dll -------------------------------------------------------------------------------- /Tools/Bee/build/Distribution/BeeDriver2/Bee.BinLog.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SolarianZ/UnityCsReference/master/Tools/Bee/build/Distribution/BeeDriver2/Bee.BinLog.dll -------------------------------------------------------------------------------- /External/Unity.Cecil/builds/lib/net40/Unity.Cecil.Mdb.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SolarianZ/UnityCsReference/master/External/Unity.Cecil/builds/lib/net40/Unity.Cecil.Mdb.dll -------------------------------------------------------------------------------- /External/Unity.Cecil/builds/lib/net40/Unity.Cecil.Pdb.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SolarianZ/UnityCsReference/master/External/Unity.Cecil/builds/lib/net40/Unity.Cecil.Pdb.dll -------------------------------------------------------------------------------- /External/Unity.Cecil/builds/lib/net40/Unity.Cecil.Rocks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SolarianZ/UnityCsReference/master/External/Unity.Cecil/builds/lib/net40/Unity.Cecil.Rocks.dll -------------------------------------------------------------------------------- /Tools/Bee/build/Distribution/BeeDriver2/Bee.BeeDriver2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SolarianZ/UnityCsReference/master/Tools/Bee/build/Distribution/BeeDriver2/Bee.BeeDriver2.dll -------------------------------------------------------------------------------- /Tools/Bee/build/Distribution/BeeTinyProfiler2/Bee.TinyProfiler2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SolarianZ/UnityCsReference/master/Tools/Bee/build/Distribution/BeeTinyProfiler2/Bee.TinyProfiler2.dll -------------------------------------------------------------------------------- /Editor/Mono/Inspector/UNetBehaviourInspector.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | // gone 6 | -------------------------------------------------------------------------------- /Runtime/Export/Windows/WindowsInput.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.Bindings; 6 | 7 | -------------------------------------------------------------------------------- /artifacts/Stevedore/unity-compiler-win-x64_8048/Unity.CompilationPipeline.Common/Unity.CompilationPipeline.Common.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SolarianZ/UnityCsReference/master/artifacts/Stevedore/unity-compiler-win-x64_8048/Unity.CompilationPipeline.Common/Unity.CompilationPipeline.Common.dll -------------------------------------------------------------------------------- /Modules/Audio/Public/ScriptBindings/ExposeVivox.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | [assembly: System.Runtime.CompilerServices.InternalsVisibleTo("VivoxUnity")] 6 | -------------------------------------------------------------------------------- /External/unitytls/builds/CSharp/UnityTLSNativeLibrary.cs: -------------------------------------------------------------------------------- 1 | namespace Unity.TLS 2 | { 3 | internal static class UnityTLSNativeLibrary 4 | { 5 | // TODO: pinvoke interface not yet supported/used outside of baselib testing. 6 | //public const string DllName = "__Internal"; 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /External/baselib/baselib/CSharp/BaselibNativeLibrary.cs: -------------------------------------------------------------------------------- 1 | namespace Unity.Baselib 2 | { 3 | internal static class BaselibNativeLibrary 4 | { 5 | // TODO: pinvoke interface not yet supported/used outside of baselib testing. 6 | //public const string DllName = "__Internal"; 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Modules/AndroidJNI/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Runtime.CompilerServices; 6 | 7 | [assembly: InternalsVisibleTo("Assembly-CSharp-testable")] 8 | -------------------------------------------------------------------------------- /Modules/UIElementsEditor/Legacy/ProgressBar.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.UIElements; 6 | 7 | namespace UnityEditor.UIElements 8 | { 9 | } 10 | -------------------------------------------------------------------------------- /Modules/UnityCurl/FriendAttributes.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Runtime.CompilerServices; 6 | 7 | [assembly: InternalsVisibleTo("Unity.HttpClient.Curl")] 8 | -------------------------------------------------------------------------------- /Editor/Mono/IPlatformProperties.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor; 6 | 7 | internal interface IPlatformProperties 8 | { 9 | // empty 10 | } 11 | -------------------------------------------------------------------------------- /Modules/TerrainEditor/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Runtime.CompilerServices; 6 | 7 | [assembly:InternalsVisibleTo("UnityEditor.Terrain.Tests.PerformanceTests")] 8 | -------------------------------------------------------------------------------- /Editor/Mono/ICleanuppable.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor 6 | { 7 | internal interface ICleanuppable 8 | { 9 | void Cleanup(); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Modules/TextCoreTextEngineEditor/Managed/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Runtime.CompilerServices; 6 | 7 | [assembly: InternalsVisibleTo("Unity.TextMeshPro.Editor")] 8 | -------------------------------------------------------------------------------- /Modules/QuickSearch/Editor/UITK/ISearchPanel.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor.Search 6 | { 7 | interface ISearchPanel : ISearchElement 8 | { 9 | 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Modules/UIElements/Core/Layout/Model/LayoutDisplay.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine.UIElements.Layout; 6 | 7 | enum LayoutDisplay 8 | { 9 | Flex, 10 | None, 11 | } 12 | -------------------------------------------------------------------------------- /Modules/UIElements/Core/Layout/Model/LayoutDimension.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine.UIElements.Layout; 6 | 7 | enum LayoutDimension 8 | { 9 | Width, 10 | Height, 11 | } 12 | -------------------------------------------------------------------------------- /Modules/UIElements/Core/Layout/Model/LayoutNodeType.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine.UIElements.Layout; 6 | 7 | enum LayoutNodeType 8 | { 9 | Default, 10 | Text, 11 | } 12 | -------------------------------------------------------------------------------- /Modules/ImageConversion/ScriptBindings/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Runtime.CompilerServices; 6 | using UnityEngine; 7 | 8 | [assembly: InternalsVisibleTo("Unity.ImageConversionTests")] 9 | -------------------------------------------------------------------------------- /Modules/GameCenter/Public/GameCenterServices.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using System.Runtime.InteropServices; 7 | using UnityEngine.Bindings; 8 | using UnityEngine.Scripting; 9 | 10 | -------------------------------------------------------------------------------- /Modules/IMGUI/FriendAttributes.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Runtime.CompilerServices; 6 | 7 | // needed for UnityEngine.IStylePainter 8 | [assembly: InternalsVisibleTo("UnityEngine.UIElementsModule")] 9 | -------------------------------------------------------------------------------- /Modules/PropertiesEditor/Module/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Runtime.CompilerServices; 6 | 7 | [assembly: InternalsVisibleTo("UnityEditor.UIElementsModule")] // PropertiesEditorInitialization 8 | -------------------------------------------------------------------------------- /Modules/UIElements/Core/Layout/Model/LayoutPositionType.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine.UIElements.Layout; 6 | 7 | enum LayoutPositionType 8 | { 9 | Relative, 10 | Absolute, 11 | } 12 | -------------------------------------------------------------------------------- /Runtime/Export/Director/INotification.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine.Playables 6 | { 7 | public interface INotification 8 | { 9 | PropertyName id { get; } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Modules/UIElements/Core/Layout/Model/LayoutDirection.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine.UIElements.Layout; 6 | 7 | enum LayoutDirection 8 | { 9 | Inherit, 10 | LTR, 11 | RTL, 12 | } 13 | -------------------------------------------------------------------------------- /Modules/UIElements/Core/Layout/Model/LayoutWrap.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine.UIElements.Layout; 6 | 7 | enum LayoutWrap 8 | { 9 | NoWrap, 10 | Wrap, 11 | WrapReverse, 12 | } 13 | -------------------------------------------------------------------------------- /Modules/GraphViewEditor/Direction.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor.Experimental.GraphView 6 | { 7 | public enum Direction 8 | { 9 | Input = 0, 10 | Output = 1 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Modules/UIElements/Core/Layout/Model/LayoutOverflow.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine.UIElements.Layout; 6 | 7 | enum LayoutOverflow 8 | { 9 | Visible, 10 | Hidden, 11 | Scroll, 12 | } 13 | -------------------------------------------------------------------------------- /Modules/GraphViewEditor/Orientation.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor.Experimental.GraphView 6 | { 7 | public enum Orientation 8 | { 9 | Horizontal, 10 | Vertical 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Modules/Licensing/UI/Helper/Constants.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor.Licensing.UI.Helper; 6 | 7 | static class Constants 8 | { 9 | public const string UiEntitlement = "com.unity.editor.ui"; 10 | } 11 | -------------------------------------------------------------------------------- /Modules/UIElements/Core/Layout/Model/LayoutUnit.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine.UIElements.Layout; 6 | 7 | enum LayoutUnit 8 | { 9 | Undefined, 10 | Point, 11 | Percent, 12 | Auto, 13 | } 14 | -------------------------------------------------------------------------------- /Editor/Mono/Inspector/Core/ScriptAttributeGUI/GUIDrawer.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor 6 | { 7 | // Base class for both PropertyDrawer and DecoratorDrawer. 8 | public abstract class GUIDrawer {} 9 | } 10 | -------------------------------------------------------------------------------- /Editor/Mono/IHasCustomMenu.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEditor; 6 | 7 | namespace UnityEditor 8 | { 9 | public interface IHasCustomMenu 10 | { 11 | void AddItemsToMenu(GenericMenu menu); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Modules/AssetBundle/Managed/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Runtime.CompilerServices; 6 | 7 | [assembly: InternalsVisibleTo("Assembly-CSharp-Editor-testable")] 8 | [assembly: InternalsVisibleTo("Assembly-CSharp-testable")] 9 | -------------------------------------------------------------------------------- /Modules/Licensing/UI/Events/INotificationDispatcher.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor.Licensing.UI.Events; 6 | 7 | interface INotificationDispatcher 8 | { 9 | public void Dispatch(string jsonNotification); 10 | } 11 | -------------------------------------------------------------------------------- /Modules/PackageManager/Editor/Managed/Search/SearchOrder.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor.PackageManager 6 | { 7 | internal enum SearchOrder 8 | { 9 | Ascending, 10 | Descending, 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Modules/Physics/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Runtime.CompilerServices; 6 | 7 | [assembly: InternalsVisibleTo("UnityEngine.Modules.Physics.Tests")] 8 | [assembly: InternalsVisibleTo("UnityEditor.Modules.Physics.Tests")] 9 | -------------------------------------------------------------------------------- /Modules/Subsystems/ISubsystemDescriptor.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine 6 | { 7 | public interface ISubsystemDescriptor 8 | { 9 | string id { get; } 10 | ISubsystem Create(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Editor/Mono/Audio/Analytics/AudioAnalytics.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using UnityEngine; 7 | using UnityEngine.Analytics; 8 | 9 | namespace UnityEditor.Audio.Analytics; 10 | 11 | static class AudioAnalytics 12 | { 13 | } 14 | -------------------------------------------------------------------------------- /Editor/Mono/VersionControl/Common/VCChangeSets.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Collections.Generic; 6 | 7 | namespace UnityEditor.VersionControl 8 | { 9 | public class ChangeSets : List 10 | { 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Modules/VirtualTexturing/Managed/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Runtime.CompilerServices; 6 | 7 | [assembly: InternalsVisibleTo("Assembly-CSharp-Editor-testable")] 8 | [assembly: InternalsVisibleTo("Assembly-CSharp-testable")] 9 | -------------------------------------------------------------------------------- /Editor/Mono/BuildPipeline/OSArchitecture.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor.Build 6 | { 7 | public enum OSArchitecture 8 | { 9 | x64, 10 | ARM64, 11 | x64ARM64, 12 | x86, 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Editor/Mono/MonoCecil/IFileOpenInfo.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor 6 | { 7 | internal interface IFileOpenInfo 8 | { 9 | string FilePath { get; set; } 10 | int LineNumber { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Modules/BuildProfileEditor/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Runtime.CompilerServices; 6 | 7 | [assembly: InternalsVisibleTo("UnityEditor.BuildProfileModule.Tests")] 8 | [assembly: InternalsVisibleTo("Assembly-CSharp-Editor-testable")] 9 | -------------------------------------------------------------------------------- /Modules/PackageManager/Editor/Managed/StatusCode.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor.PackageManager 6 | { 7 | public enum StatusCode 8 | { 9 | InProgress, 10 | Success, 11 | Failure 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Modules/UIElements/Core/Layout/Model/LayoutFlexDirection.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine.UIElements.Layout; 6 | 7 | enum LayoutFlexDirection 8 | { 9 | Column, 10 | ColumnReverse, 11 | Row, 12 | RowReverse, 13 | } 14 | -------------------------------------------------------------------------------- /Editor/Mono/VersionControl/Common/ISettingsInspectorExtension.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor.VersionControl 6 | { 7 | public interface ISettingsInspectorExtension 8 | { 9 | void OnInspectorGUI(); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Modules/Audio/Public/Managed/IValidatable.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace Unity.Audio 6 | { 7 | [UnityEngine.Bindings.VisibleToOtherModules] 8 | internal interface IValidatable 9 | { 10 | bool Valid { get; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Modules/GraphViewEditor/Elements/IResizable.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor.Experimental.GraphView 6 | { 7 | public interface IResizable 8 | { 9 | void OnStartResize(); 10 | void OnResized(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Runtime/Export/Director/IPlayable.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using UnityEngine; 7 | 8 | namespace UnityEngine.Playables 9 | { 10 | public interface IPlayable 11 | { 12 | PlayableHandle GetHandle(); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Editor/Mono/GUI/ListViewOptions.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor 6 | { 7 | internal enum ListViewOptions { wantsReordering = 1, wantsExternalFiles = 2, wantsToStartCustomDrag = 4, wantsToAcceptCustomDrag = 8, wantsRowMultiSelection = 16 } 8 | } 9 | -------------------------------------------------------------------------------- /Modules/TreeEditor/Includes/TreeMaterial.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine; 6 | 7 | namespace TreeEditor 8 | { 9 | public class TreeMaterial 10 | { 11 | public Material material; 12 | public bool tileV; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Modules/UIElements/Core/DragAndDrop/IReorderable.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEngine.UIElements 8 | { 9 | internal interface IReorderable 10 | { 11 | bool enableReordering { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Modules/UIElements/Core/Layout/Model/LayoutLogLevel.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine.UIElements.Layout; 6 | 7 | enum LayoutLogLevel 8 | { 9 | Error, 10 | Warn, 11 | Info, 12 | Debug, 13 | Verbose, 14 | Fatal, 15 | } 16 | -------------------------------------------------------------------------------- /Modules/UIElements/Core/Layout/Model/LayoutMeasureMode.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine.UIElements.Layout; 6 | 7 | enum LayoutMeasureMode 8 | { 9 | Undefined = 0, 10 | Exactly = 1, 11 | AtMost = 2, 12 | Invalid = -1 13 | } 14 | -------------------------------------------------------------------------------- /Modules/UIElements/Core/Layout/Model/LayoutPrintOptions.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine.UIElements.Layout; 6 | 7 | [System.Flags] 8 | enum LayoutPrintOptions 9 | { 10 | Layout = 1, 11 | Style = 2, 12 | Children = 4, 13 | } 14 | -------------------------------------------------------------------------------- /Modules/AndroidJNI/Configuration/AndroidColorModeHdr.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine.Android 6 | { 7 | public enum AndroidColorModeHdr : int 8 | { 9 | Undefined = 0, 10 | No = 4, 11 | Yes = 8, 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Modules/PackageManager/Editor/Managed/Search/SearchEntitlement.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor.PackageManager 6 | { 7 | internal enum SearchEntitlement 8 | { 9 | Any, 10 | None, 11 | AssetStore, 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Modules/PackageManager/Editor/Managed/Search/SearchOrderBy.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor.PackageManager 6 | { 7 | internal enum SearchOrderBy 8 | { 9 | Relevance, 10 | Name, 11 | DisplayName, 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Modules/Physics/Managed/ForceMode.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine 6 | { 7 | public enum ForceMode 8 | { 9 | Force = 0, 10 | Acceleration = 5, 11 | Impulse = 1, 12 | VelocityChange = 2, 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Modules/AndroidJNI/Configuration/AndroidKeyboardHidden.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine.Android 6 | { 7 | public enum AndroidKeyboardHidden : int 8 | { 9 | Undefined = 0, 10 | No = 1, 11 | Yes = 2 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Modules/AndroidJNI/Configuration/AndroidNavigationHidden.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine.Android 6 | { 7 | public enum AndroidNavigationHidden : int 8 | { 9 | Undefined = 0, 10 | No = 1, 11 | Yes = 2 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Modules/AndroidJNI/Configuration/AndroidTouchScreen.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine.Android 6 | { 7 | public enum AndroidTouchScreen : int 8 | { 9 | Undefined = 0, 10 | NoTouch = 1, 11 | Finger = 3 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Editor/Mono/SaveAssetsProcessor.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEditor 8 | { 9 | [Obsolete("Use UnityEditor.AssetModificationProcessor")] 10 | public class SaveAssetsProcessor : UnityEditor.AssetModificationProcessor {} 11 | } 12 | -------------------------------------------------------------------------------- /Modules/AndroidJNI/Configuration/AndroidOrientation.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine.Android 6 | { 7 | public enum AndroidOrientation : int 8 | { 9 | Undefined = 0, 10 | Portrait = 1, 11 | Landscape = 2 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Modules/BuildReportingEditor/Managed/BuildType.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEditor.Build.Reporting 8 | { 9 | [Flags] 10 | public enum BuildType 11 | { 12 | Player = 1, 13 | AssetBundle = 2 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Modules/PackageManager/Editor/Managed/ResolutionStrategy.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor.PackageManager 6 | { 7 | internal enum ResolutionStrategy 8 | { 9 | HighestPatch, 10 | HighestMinor, 11 | Highest 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Modules/Subsystems/ISubsystem.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine 6 | { 7 | public interface ISubsystem 8 | { 9 | bool running { get; } 10 | 11 | void Start(); 12 | void Stop(); 13 | void Destroy(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Runtime/Export/Director/IPlayableOutput.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using UnityEngine; 7 | 8 | namespace UnityEngine.Playables 9 | { 10 | public interface IPlayableOutput 11 | { 12 | PlayableOutputHandle GetHandle(); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Editor/Mono/VersionControl/Common/IPopupMenuExtension.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine; 6 | 7 | namespace UnityEditor.VersionControl 8 | { 9 | public interface IPopupMenuExtension 10 | { 11 | void DisplayPopupMenu(Rect position); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Modules/AndroidJNI/AndroidDiagnosticsReporting.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | 6 | namespace UnityEngine.Android 7 | { 8 | public static class DiagnosticsReporting 9 | { 10 | public static void CallReportFullyDrawn() 11 | { 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Runtime/Export/Camera/FlareLayer.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEngine 8 | { 9 | [RequireComponent(typeof(Camera))] 10 | public class FlareLayer : Behaviour 11 | { 12 | internal FlareLayer() {} 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Editor/Mono/GUI/ListViewElement.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine; 6 | 7 | namespace UnityEditor 8 | { 9 | internal struct ListViewElement 10 | { 11 | public int row; 12 | public int column; 13 | public Rect position; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Modules/AndroidJNI/Configuration/AndroidColorModeWideColorGamut.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine.Android 6 | { 7 | public enum AndroidColorModeWideColorGamut : int 8 | { 9 | Undefined = 0, 10 | No = 1, 11 | Yes = 2, 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Modules/AndroidJNI/Configuration/AndroidHardwareKeyboardHidden.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine.Android 6 | { 7 | public enum AndroidHardwareKeyboardHidden : int 8 | { 9 | Undefined = 0, 10 | No = 1, 11 | Yes = 2 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Modules/AndroidJNI/Configuration/AndroidScreenLayoutDirection.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEngine.Android 8 | { 9 | public enum AndroidScreenLayoutDirection : int 10 | { 11 | LTR = 64, 12 | RTL = 128 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Modules/ShortcutManagerEditor/PriorityContextAttribute.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEditor.ShortcutManagement 8 | { 9 | [AttributeUsage(AttributeTargets.Class)] 10 | class PriorityContextAttribute : Attribute 11 | { 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Modules/UIElements/Core/Layout/Model/LayoutJustify.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine.UIElements.Layout; 6 | 7 | enum LayoutJustify 8 | { 9 | FlexStart, 10 | Center, 11 | FlexEnd, 12 | SpaceBetween, 13 | SpaceAround, 14 | SpaceEvenly, 15 | } 16 | -------------------------------------------------------------------------------- /Modules/AndroidJNI/Configuration/AndroidKeyboard.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine.Android 6 | { 7 | public enum AndroidKeyboard : int 8 | { 9 | Undefined = 0, 10 | NoKeys = 1, 11 | Qwerty = 2, 12 | _12Key = 3 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Modules/AndroidJNI/Configuration/AndroidUiModeNight.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEngine.Android 8 | { 9 | public enum AndroidUIModeNight : int 10 | { 11 | Undefined = 0, 12 | No = 16, 13 | Yes = 32 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Modules/PackageManagerUI/Editor/UI/Common/Tabs/ITabElement.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor.PackageManager.UI.Internal 6 | { 7 | internal interface ITabElement 8 | { 9 | string displayName { get; } 10 | 11 | string id { get; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Modules/UIBuilder/Editor/Utilities/Transitions/TransitionPropertyDropdownContent.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace Unity.UI.Builder 6 | { 7 | static class TransitionPropertyDropdownContent 8 | { 9 | public static CategoryDropdownContent Content; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Runtime/Export/IMGUI/ScrollWaitDefinitions.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine 6 | { 7 | internal static class ScrollWaitDefinitions 8 | { 9 | public const int firstWait = 250; // ms 10 | public const int regularWait = 30; // ms 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Runtime/Export/Scripting/AlwaysLinkAssemblyAttribute.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEngine.Scripting 8 | { 9 | [AttributeUsage(AttributeTargets.Assembly)] 10 | public class AlwaysLinkAssemblyAttribute : Attribute 11 | { 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Modules/AI/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Runtime.CompilerServices; 6 | 7 | [assembly: InternalsVisibleTo("Unity.AI.HeightMesh.Tests")] 8 | [assembly: InternalsVisibleTo("Unity.AI.Navigation.Editor")] 9 | [assembly: InternalsVisibleTo("Unity.AI.Navigation.Updater")] 10 | -------------------------------------------------------------------------------- /Modules/PackageManager/Editor/Managed/LogLevel.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor.PackageManager 6 | { 7 | public enum LogLevel 8 | { 9 | Error, 10 | Warn, 11 | Info, 12 | Verbose, 13 | Debug, 14 | Silly 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Modules/UIElements/Core/DragAndDrop/ICollectionDragAndDropController.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine.UIElements 6 | { 7 | internal interface ICollectionDragAndDropController : IDragAndDropController, IReorderable 8 | { 9 | 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Modules/AndroidJNI/Configuration/AndroidScreenLayoutLong.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEngine.Android 8 | { 9 | public enum AndroidScreenLayoutLong : int 10 | { 11 | Undefined = 0, 12 | No = 16, 13 | Yes = 32 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Modules/Animation/Managed/IAnimationPreviewable.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.Scripting; 6 | 7 | namespace UnityEngine.Animations 8 | { 9 | [UsedByNativeCode] 10 | internal interface IAnimationPreviewable 11 | { 12 | void OnPreviewUpdate(); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Modules/PackageManager/Editor/Managed/ProgressState.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor.PackageManager 6 | { 7 | internal enum ProgressState 8 | { 9 | Pending, 10 | Downloading, 11 | Installing, 12 | Ready, 13 | Error 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Modules/PackageManager/Editor/Managed/SignatureStatus.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor.PackageManager 6 | { 7 | internal enum SignatureStatus 8 | { 9 | Unchecked, 10 | Valid, 11 | Invalid, 12 | Unsigned, 13 | Error 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Runtime/Export/Scripting/RequireDerivedAttribute.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEngine.Scripting 8 | { 9 | [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)] 10 | public class RequireDerivedAttribute : Attribute 11 | { 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Editor/Mono/BuildPipeline/RenderPipeline/RenderPipelineBuildProcessor.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor.Build.Rendering 6 | { 7 | enum ExecutionOrder 8 | { 9 | EnsureSinglePipeline = int.MinValue, 10 | StripRenderPipelineGlobalSettingsAsset, 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Modules/AndroidJNI/Configuration/AndroidScreenLayoutRound.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEngine.Android 8 | { 9 | public enum AndroidScreenLayoutRound : int 10 | { 11 | Undefined = 0, 12 | No = 256, 13 | Yes = 512 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Modules/PackageManager/Editor/Managed/EntitlementLicensingModel.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor.PackageManager 6 | { 7 | internal enum EntitlementLicensingModel 8 | { 9 | None, 10 | Public, 11 | AssetStore, 12 | Enterprise, 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Modules/UIElements/Core/Layout/Model/LayoutEdge.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine.UIElements.Layout; 6 | 7 | enum LayoutEdge 8 | { 9 | Left, 10 | Top, 11 | Right, 12 | Bottom, 13 | Start, 14 | End, 15 | Horizontal, 16 | Vertical, 17 | All, 18 | } 19 | -------------------------------------------------------------------------------- /Runtime/Export/Camera/IScriptableRuntimeReflectionSystem.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEngine.Experimental.Rendering 8 | { 9 | public interface IScriptableRuntimeReflectionSystem : IDisposable 10 | { 11 | bool TickRealtimeProbes(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Runtime/Export/RenderPipeline/GizmoSubset.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using System.Runtime.InteropServices; 7 | 8 | namespace UnityEngine.Rendering 9 | { 10 | public enum GizmoSubset 11 | { 12 | PreImageEffects = 0, 13 | PostImageEffects = 1 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Runtime/Export/RenderPipeline/ReflectionProbeSortingCriteria.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine.Rendering 6 | { 7 | public enum ReflectionProbeSortingCriteria 8 | { 9 | None, 10 | Importance, 11 | Size, 12 | ImportanceThenSize 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Editor/Mono/MonoCecil/IMonoCecilHelper.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using System.Reflection; 7 | 8 | namespace UnityEditor 9 | { 10 | internal interface IMonoCecilHelper 11 | { 12 | IFileOpenInfo TryGetCecilFileOpenInfo(Type type, MethodInfo methodInfo); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Modules/AssetDatabase/Editor/V2/Managed/AssetPostprocessorStaticVariableIgnoreAttribute.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor 6 | { 7 | [System.AttributeUsage(System.AttributeTargets.Field)] 8 | public class AssetPostprocessorStaticVariableIgnoreAttribute : System.Attribute { } 9 | } 10 | -------------------------------------------------------------------------------- /Modules/Physics/Managed/CollisionDetectionMode.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine 6 | { 7 | public enum CollisionDetectionMode 8 | { 9 | Discrete = 0, 10 | Continuous = 1, 11 | ContinuousDynamic = 2, 12 | ContinuousSpeculative = 3 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Modules/ProfilerEditor/ProfilerWindow/Analytics/IAnalyticsService.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.Analytics; 6 | 7 | namespace UnityEditor.Profiling 8 | { 9 | internal interface IAnalyticsService 10 | { 11 | AnalyticsResult SendAnalytic(IAnalytic analytic); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Modules/UIElements/Core/Layout/Model/LayoutAlign.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine.UIElements.Layout; 6 | 7 | enum LayoutAlign 8 | { 9 | Auto, 10 | FlexStart, 11 | Center, 12 | FlexEnd, 13 | Stretch, 14 | Baseline, 15 | SpaceBetween, 16 | SpaceAround, 17 | } 18 | -------------------------------------------------------------------------------- /Editor/Mono/GUI/SubToolbar.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine; 6 | 7 | namespace UnityEditor 8 | { 9 | class SubToolbar 10 | { 11 | public float Width { get; set; } 12 | 13 | public virtual void OnGUI(Rect rect) 14 | { 15 | } 16 | } 17 | } // namespace 18 | -------------------------------------------------------------------------------- /Modules/AndroidJNI/Configuration/AndroidNavigation.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine.Android 6 | { 7 | public enum AndroidNavigation : int 8 | { 9 | Undefined = 0, 10 | NoNav = 1, 11 | Dpad = 2, 12 | TrackBall = 3, 13 | Wheel = 4, 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Modules/BuildPipeline/Editor/Managed/BuildArchiveImporter.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEditor; 6 | using UnityEngine; 7 | 8 | namespace UnityEditor.Build.Content 9 | { 10 | [ExcludeFromPreset] 11 | internal sealed partial class BuildArchiveImporter : AssetImporter 12 | { 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Modules/Licensing/UI/Data/Events/Base/NotificationType.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor.Licensing.UI.Data.Events; 6 | 7 | enum NotificationType 8 | { 9 | Unknown, 10 | LicenseUpdate, 11 | LicenseExpired, 12 | LicenseOfflineValidityEnding, 13 | BorrowFeatureStatus, 14 | } 15 | -------------------------------------------------------------------------------- /Modules/PackageManagerUI/Editor/Extensions/Interfaces/IMenu.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor.PackageManager.UI 6 | { 7 | internal interface IMenu 8 | { 9 | IMenuDropdownItem AddDropdownItem(); 10 | 11 | void ShowInputDropdown(InputDropdownArgs args); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Runtime/Export/Scripting/RequireAttributeUsagesAttribute.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEngine.Scripting 8 | { 9 | [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)] 10 | public class RequireAttributeUsagesAttribute : Attribute 11 | { 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Runtime/Export/Scripting/RequireImplementorsAttribute.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEngine.Scripting 8 | { 9 | [AttributeUsage(AttributeTargets.Interface, AllowMultiple = false)] 10 | public class RequireImplementorsAttribute : Attribute 11 | { 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Runtime/Export/Scripting/SelectionBaseAttribute.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEngine 8 | { 9 | [System.AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = false)] 10 | public class SelectionBaseAttribute : Attribute 11 | { 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Editor/Mono/VersionControl/Common/IInspectorWindowExtension.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor.VersionControl 6 | { 7 | public interface IInspectorWindowExtension 8 | { 9 | void OnVersionControlBar(Editor editor); 10 | void InvalidateVersionControlBarState(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Modules/BuildPipeline/Editor/Managed/BuildMetaDataImporter.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEditor; 6 | using UnityEngine; 7 | 8 | namespace UnityEditor.Build.Content 9 | { 10 | [ExcludeFromPreset] 11 | internal sealed partial class BuildMetaDataImporter : AssetImporter 12 | { 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Modules/PackageManager/Editor/Managed/ConfigSource.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor.PackageManager 6 | { 7 | internal enum ConfigSource 8 | { 9 | Unknown, 10 | Default, 11 | Global, 12 | User, 13 | Project, 14 | Environment, 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Modules/PackageManager/Editor/Managed/IShouldIncludeInBuildCallback.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor.PackageManager 6 | { 7 | public interface IShouldIncludeInBuildCallback 8 | { 9 | string PackageName { get; } 10 | bool ShouldIncludeInBuild(string path); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Modules/PackageManager/Editor/Managed/NativeStatusCode.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor.PackageManager 6 | { 7 | enum NativeStatusCode 8 | { 9 | InQueue, 10 | InProgress, 11 | Done, 12 | Error, 13 | NotFound, 14 | Cancelled 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Editor/Mono/Utils/LightProbeGroupSelection.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Collections.Generic; 6 | using UnityEngine; 7 | 8 | namespace UnityEditor 9 | { 10 | internal class LightProbeGroupSelection : ScriptableObject 11 | { 12 | public List m_Selection = new List(); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Modules/BuildPipeline/Editor/Managed/BuildInstructionImporter.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEditor; 6 | using UnityEngine; 7 | 8 | namespace UnityEditor.Build.Content 9 | { 10 | [ExcludeFromPreset] 11 | internal sealed partial class BuildInstructionImporter : AssetImporter 12 | { 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Modules/Licensing/UI/Events/Buttons/EventsButtonType.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEditor.Licensing.UI.Events.Buttons; 8 | 9 | enum EventsButtonType 10 | { 11 | Ok, 12 | ManageLicense, 13 | SaveAndQuit, 14 | Quit, 15 | UpdateLicense, 16 | OpenUnityHub 17 | } 18 | -------------------------------------------------------------------------------- /Modules/Audio/Public/ScriptBindings/ExposeDSPGraph.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | 6 | // Expose the internals to the DSPGraph assembly 7 | [assembly: System.Runtime.CompilerServices.InternalsVisibleTo("Unity.Audio.DSPGraph")] 8 | [assembly: System.Runtime.CompilerServices.InternalsVisibleTo("Unity.Audio.DSPGraph.Tests")] 9 | 10 | -------------------------------------------------------------------------------- /Modules/PackageManagerUI/Editor/Extensions/Interfaces/IExtension.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor.PackageManager.UI 6 | { 7 | internal interface IExtension 8 | { 9 | int priority { get; set; } 10 | bool visible { get; set; } 11 | bool enabled { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Runtime/Export/RenderPipeline/DrawRendererFlags.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEngine.Rendering 8 | { 9 | [Flags] 10 | enum DrawRendererFlags 11 | { 12 | None = 0, 13 | EnableDynamicBatching = (1 << 0), 14 | EnableInstancing = (1 << 1), 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Runtime/Export/Scripting/ExcludeFromObjectFactoryAttribute.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using UnityEngine.Scripting; 7 | 8 | namespace UnityEngine 9 | { 10 | [AttributeUsage(AttributeTargets.Class)] 11 | [UsedByNativeCode] 12 | public class ExcludeFromObjectFactoryAttribute : Attribute {} 13 | } 14 | -------------------------------------------------------------------------------- /Modules/BuildReportingEditor/Managed/BuildResult.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEditor.Build.Reporting 8 | { 9 | public enum BuildResult 10 | { 11 | Unknown = 0, 12 | Succeeded = 1, 13 | Failed = 2, 14 | Cancelled = 3, 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Modules/DSPGraph/Public/ScriptBindings/ExposeDSPGraph.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | 6 | // Expose the internals to the DSPGraph assembly 7 | [assembly: System.Runtime.CompilerServices.InternalsVisibleTo("Unity.Audio.DSPGraph")] 8 | [assembly: System.Runtime.CompilerServices.InternalsVisibleTo("Unity.Audio.DSPGraph.Tests")] 9 | 10 | -------------------------------------------------------------------------------- /Modules/PackageManagerUI/Editor/Services/Packages/RegistryType.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEditor.PackageManager.UI.Internal 8 | { 9 | internal enum RegistryType 10 | { 11 | None, 12 | UnityRegistry, 13 | MyRegistries, 14 | AssetStore 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Modules/Director/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Runtime.CompilerServices; 6 | 7 | [assembly: InternalsVisibleTo("Unity.Timeline")] 8 | [assembly: InternalsVisibleTo("Unity.Animation.Timeline")] 9 | [assembly: InternalsVisibleTo("Unity.Motion.Hybrid")] 10 | [assembly: InternalsVisibleTo("Unity.Motion.Timeline")] 11 | -------------------------------------------------------------------------------- /Modules/UIElements/Core/UpgradeConstants.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine.UIElements 6 | { 7 | internal class UpgradeConstants 8 | { 9 | public const string EditorNamespace = "UnityEditor.UIElements"; 10 | public const string EditorAssembly = "UnityEditor.UIElementsModule"; 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Runtime/Export/Graphics/IRenderPipelineGraphicsSettings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine.Rendering 6 | { 7 | public interface IRenderPipelineGraphicsSettings 8 | { 9 | int version { get; } 10 | 11 | bool isAvailableInPlayerBuild => false; 12 | 13 | void Reset() { } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Runtime/Export/RenderPipeline/VisibleLightFlags.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEngine.Rendering 8 | { 9 | [Flags] 10 | enum VisibleLightFlags 11 | { 12 | IntersectsNearPlane = 1 << 0, 13 | IntersectsFarPlane = 1 << 1, 14 | ForcedVisible = 1 << 2, 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Modules/PackageManager/Editor/Managed/PackageSource.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor.PackageManager 6 | { 7 | public enum PackageSource 8 | { 9 | Unknown, 10 | Registry, 11 | BuiltIn, 12 | Embedded, 13 | Local, 14 | Git, 15 | LocalTarball, 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Modules/Physics/ScriptBindings/FixedJoint.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.Bindings; 6 | 7 | namespace UnityEngine 8 | { 9 | [RequireComponent(typeof(Rigidbody))] 10 | [NativeHeader("Modules/Physics/FixedJoint.h")] 11 | [NativeClass("Unity::FixedJoint")] 12 | public class FixedJoint : Joint {} 13 | } 14 | -------------------------------------------------------------------------------- /Modules/UIElementsEditor/Delegates/SerializedPropertyDelegates.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEditor.UIElements 8 | { 9 | internal class SerializedPropertyDelegates 10 | { 11 | internal static Func IsPropertyValid = property => property.isValid; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Runtime/Export/RenderPipeline/UISubset.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using System.Runtime.InteropServices; 7 | 8 | namespace UnityEngine.Rendering 9 | { 10 | [Flags] 11 | public enum UISubset 12 | { 13 | UIToolkit_UGUI = (1 << 0), 14 | LowLevel = (1 << 1), 15 | All = ~0 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Modules/AndroidJNI/Configuration/AndroidScreenLayoutSize.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEngine.Android 8 | { 9 | public enum AndroidScreenLayoutSize : int 10 | { 11 | Undefined = 0, 12 | Small = 1, 13 | Normal = 2, 14 | Large = 3, 15 | XLarge = 4 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Modules/ShaderFoundry/ScriptBindings/ITemplateLinker.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor.ShaderFoundry 6 | { 7 | [FoundryAPI] 8 | internal interface ITemplateLinker 9 | { 10 | public abstract void Link(ShaderBuilder builder, ShaderContainer shaderContainer, TemplateInstance templateInstance); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Modules/UIElementsEditor/Text/PanelTextSettingsEditor.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEditor.TextCore.Text; 6 | using UnityEngine.UIElements; 7 | 8 | namespace UnityEditor.UIElements 9 | { 10 | [CustomEditor(typeof(PanelTextSettings))] 11 | internal class PanelTextSettingsEditor : TextSettingsEditor 12 | { 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Editor/Mono/GameView/IGameViewOnPlayMenuUser.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor 6 | { 7 | internal interface IGameViewOnPlayMenuUser 8 | { 9 | void OnPlayPopupSelection(int indexClicked, object objectSelected); 10 | bool playFocused { get; set; } 11 | bool vSyncEnabled { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Modules/DeviceSimulatorEditor/DeviceInfo/DeviceInfoImporterEditor.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEditor; 6 | using UnityEditor.AssetImporters; 7 | 8 | namespace UnityEditor.DeviceSimulation 9 | { 10 | [CustomEditor(typeof(DeviceInfoImporter))] 11 | class DeviceInfoImporterEditor : ScriptedImporterEditor 12 | { 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Modules/PackageManagerUI/Editor/UI/MultiSelect/IMultiSelectFoldoutElement.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor.PackageManager.UI.Internal 6 | { 7 | internal interface IMultiSelectFoldoutElement 8 | { 9 | void Refresh(); 10 | bool AddPackage(IPackage package); 11 | void ClearPackages(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Modules/PackageManagerUI/Editor/UI/PackageHelpBox/PackageBaseHelpBox.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.UIElements; 6 | 7 | namespace UnityEditor.PackageManager.UI.Internal 8 | { 9 | internal abstract class PackageBaseHelpBox : HelpBox 10 | { 11 | public abstract void Refresh(IPackageVersion version); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Runtime/Export/Director/Notification.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine.Playables 6 | { 7 | public class Notification : INotification 8 | { 9 | public Notification(string name) 10 | { 11 | id = new PropertyName(name); 12 | } 13 | 14 | public PropertyName id { get; } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Runtime/Export/RenderPipeline/InvalidImportException.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEngine.Rendering 8 | { 9 | public class InvalidImportException : Exception 10 | { 11 | public InvalidImportException(string message) 12 | : base(message) 13 | { 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Editor/Mono/Utils/DirectoryExtensions.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.IO; 6 | 7 | namespace UnityEditor.Utils 8 | { 9 | static class DirectoryExtensions 10 | { 11 | public static void DeleteRecursive(this string directoryPath) 12 | { 13 | Directory.Delete(directoryPath, true); 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Modules/Licensing/UI/Events/Buttons/IEventsButtonFactory.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using UnityEngine.UIElements; 7 | 8 | namespace UnityEditor.Licensing.UI.Events.Buttons; 9 | 10 | interface IEventsButtonFactory 11 | { 12 | public VisualElement Create(EventsButtonType buttonType, Action additionalCustomClickAction = null); 13 | } 14 | -------------------------------------------------------------------------------- /Modules/UIBuilder/Editor/Utilities/StyleField/BoxType.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace Unity.UI.Builder 6 | { 7 | internal enum BoxType 8 | { 9 | Margin, 10 | Border, 11 | Padding, 12 | BorderColor, 13 | BorderWidth, 14 | BorderRadius, 15 | Radius, 16 | Content 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Runtime/Export/Logging/ILogHandler.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEngine 8 | { 9 | public interface ILogHandler 10 | { 11 | void LogFormat(LogType logType, Object context, string format, params object[] args); 12 | 13 | void LogException(Exception exception, Object context); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Runtime/Export/ObjectPool/IObjectPool.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine.Pool 6 | { 7 | public interface IObjectPool where T : class 8 | { 9 | int CountInactive { get; } 10 | 11 | T Get(); 12 | PooledObject Get(out T v); 13 | void Release(T element); 14 | void Clear(); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Modules/Animation/Managed/IAnimationClipSource.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using UnityEngine; 7 | using UnityEngine.Playables; 8 | using System.Collections.Generic; 9 | 10 | namespace UnityEngine 11 | { 12 | public interface IAnimationClipSource 13 | { 14 | void GetAnimationClips(List results); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Modules/PackageManagerUI/Editor/Services/AssetStore/Asset.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEditor.PackageManager.UI.Internal 8 | { 9 | [Serializable] 10 | internal class Asset 11 | { 12 | public string guid; 13 | public AssetOrigin origin; 14 | 15 | public string importedPath; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Runtime/Export/Scripting/WaitForFixedUpdate.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.Scripting; 6 | 7 | namespace UnityEngine 8 | { 9 | // Waits until next fixed frame rate update function. SA: MonoBehaviour::pref::FixedUpdate. 10 | [RequiredByNativeCode] 11 | public sealed class WaitForFixedUpdate : YieldInstruction 12 | { 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Modules/GraphViewEditor/ExperimentalNamespaceRelic.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor.Experimental.UIElements.GraphView 6 | { 7 | // We cannot delete the whole namespace just yet as there are left-over using statement in some packages 8 | // However expect this using statement no visible types exist anymore 9 | internal class Empty {} 10 | } 11 | -------------------------------------------------------------------------------- /Modules/IMGUI/GUISkin.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.Bindings; 6 | 7 | namespace UnityEngine 8 | { 9 | // General settings for how the GUI behaves 10 | [NativeHeader("Modules/IMGUI/GUISkin.bindings.h")] 11 | partial class GUISettings 12 | { 13 | private static extern float Internal_GetCursorFlashSpeed(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Modules/Licensing/UI/Data/Events/Base/NotificationWithDetails.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using System.Diagnostics.CodeAnalysis; 7 | 8 | namespace UnityEditor.Licensing.UI.Data.Events.Base; 9 | 10 | [ExcludeFromCodeCoverage] 11 | [Serializable] 12 | class NotificationWithDetails : Notification 13 | { 14 | public TDetails details; 15 | } 16 | -------------------------------------------------------------------------------- /Modules/UIElements/Core/StyleSheets/StyleSelectorRelationship.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.Bindings; 6 | 7 | namespace UnityEngine.UIElements 8 | { 9 | [VisibleToOtherModules("UnityEditor.UIBuilderModule")] 10 | internal enum StyleSelectorRelationship 11 | { 12 | None, 13 | Child, 14 | Descendent 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Runtime/Export/Scripting/YieldOperation.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Runtime.InteropServices; 6 | using UnityEngine.Scripting; 7 | 8 | namespace UnityEngine 9 | { 10 | // Base class for all /yield/ instructions. 11 | [StructLayout(LayoutKind.Sequential)] 12 | [UsedByNativeCode] 13 | public class YieldInstruction 14 | { 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Editor/Mono/Scripting/Compilers/CompilerSpecificReponseFiles.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor.Scripting.Compilers 6 | { 7 | internal class CompilerSpecificResponseFiles 8 | { 9 | public const string MicrosoftCSharpCompiler = "csc.rsp"; 10 | public static string[] MicrosoftCSharpCompilerObsolete = new[] { "mcs.rsp" }; 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Modules/GraphViewEditor/ICollectibleElement.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using System.Collections.Generic; 7 | 8 | namespace UnityEditor.Experimental.GraphView 9 | { 10 | public interface ICollectibleElement 11 | { 12 | void CollectElements(HashSet collectedElementSet, Func conditionFunc); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Modules/Properties/Runtime/Algorithms/PropertyContainer.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace Unity.Properties 6 | { 7 | /// 8 | /// The class is used as the entry point to operate on data containers using properties. 9 | /// 10 | public static partial class PropertyContainer 11 | { 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Modules/Animation/Managed/NotKeyableAttribute.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using UnityEngine; 7 | using UnityEngine.Scripting; 8 | 9 | namespace UnityEngine.Animations 10 | { 11 | [RequiredByNativeCode] 12 | [AttributeUsage(AttributeTargets.Field | AttributeTargets.Class)] 13 | public class NotKeyableAttribute : Attribute 14 | { 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Modules/PackageManagerUI/Editor/External/ServicesTab/ServicesTabConfiguration.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using System.Collections.Generic; 7 | 8 | namespace UnityEditor.PackageManager.UI.Internal 9 | { 10 | [Serializable] 11 | class ServicesTabConfiguration 12 | { 13 | public List serviceGroupings; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Modules/UIAutomationEditor/TestEditorWindow.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEditor; 6 | 7 | namespace UnityEditor.UIAutomation 8 | { 9 | //TODO: Should this be part of the framework? 10 | [UIFramework(UIFrameworkUsage.Excluded)] 11 | class TestEditorWindow : EditorWindow 12 | { 13 | public FakeCursor fakeCursor = new FakeCursor(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Modules/UIElements/Core/GameObjects/RuntimeEventDispatcher.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Collections.Generic; 6 | 7 | namespace UnityEngine.UIElements 8 | { 9 | static class RuntimeEventDispatcher 10 | { 11 | public static EventDispatcher Create() 12 | { 13 | return EventDispatcher.CreateDefault(); 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Runtime/Export/Director/INotificationReceiver.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.Scripting; 6 | 7 | namespace UnityEngine.Playables 8 | { 9 | [RequiredByNativeCode] 10 | public interface INotificationReceiver 11 | { 12 | [RequiredByNativeCode] 13 | void OnNotify(Playable origin, INotification notification, object context); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Runtime/Export/Scripting/Il2CppEagerStaticClassConstructionAttribute.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace Unity.IL2CPP.CompilerServices 8 | { 9 | [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, Inherited = false, AllowMultiple = false)] 10 | class Il2CppEagerStaticClassConstructionAttribute : Attribute 11 | { 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Modules/PackageManager/Editor/Managed/NativeErrorCode.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor.PackageManager 6 | { 7 | internal enum NativeErrorCode 8 | { 9 | Unknown, 10 | NotFound, 11 | Forbidden, 12 | InvalidParameter, 13 | Conflict, 14 | AggregateError, 15 | Cancelled, 16 | Success 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Runtime/Export/Scripting/RequiredMemberAttribute.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEngine.Scripting 8 | { 9 | [AttributeUsage(AttributeTargets.Field | AttributeTargets.Method | AttributeTargets.Event | AttributeTargets.Property | AttributeTargets.Constructor)] 10 | public class RequiredMemberAttribute : Attribute 11 | { 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Modules/PackageManagerUI/Editor/UI/Interfaces/ISelectableItem.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.UIElements; 6 | 7 | namespace UnityEditor.PackageManager.UI.Internal 8 | { 9 | internal interface ISelectableItem 10 | { 11 | IPackage package { get; } 12 | IPackageVersion targetVersion { get; } 13 | VisualElement element { get; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Runtime/Export/Scripting/WaitForEndOfFrame.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.Scripting; 6 | 7 | namespace UnityEngine 8 | { 9 | // Waits until the end of the frame after all cameras and GUI is rendered, just before displaying the frame on screen. 10 | [RequiredByNativeCode] 11 | public sealed class WaitForEndOfFrame : YieldInstruction 12 | { 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Editor/Mono/IVRPlatformProperties.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor; 6 | 7 | internal interface IVRPlatformProperties : IPlatformProperties 8 | { 9 | bool SupportSinglePassStereoRendering => false; 10 | bool SupportStereoInstancingRendering => false; 11 | bool SupportStereoMultiviewRendering => false; 12 | bool SupportStereo360Capture => false; 13 | } 14 | -------------------------------------------------------------------------------- /Editor/Mono/PluginDesc.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine; 6 | using UnityEditor; 7 | 8 | namespace UnityEditorInternal 9 | { 10 | internal struct PluginDesc 11 | { 12 | public string pluginPath; 13 | public CPUArch architecture; 14 | } 15 | 16 | internal enum CPUArch 17 | { 18 | Any, 19 | x86, 20 | ARMv7 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Modules/Licensing/UI/Helper/ILicenseLogger.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine; 6 | 7 | namespace UnityEditor.Licensing.UI.Helper; 8 | 9 | interface ILicenseLogger 10 | { 11 | const string tag = "License"; 12 | 13 | public void DebugLogNoStackTrace(string message, LogType logType = LogType.Log, string tag = tag); 14 | 15 | public void LogError(string message); 16 | } 17 | -------------------------------------------------------------------------------- /Runtime/Export/Burst/BurstDiscardAttribute.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace Unity.Burst 8 | { 9 | [AttributeUsage(AttributeTargets.Method | AttributeTargets.Property)] 10 | public class BurstDiscardAttribute : Attribute 11 | { 12 | // Attribute used to discard entirely a method/property from being compiled by the burst compiler. 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Editor/Mono/Prefabs/PrefabImporter.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine; 6 | using Object = UnityEngine.Object; 7 | using System; 8 | using UnityEngine.Bindings; 9 | 10 | namespace UnityEditor 11 | { 12 | [NativeHeader("Editor/Src/AssetPipeline/PrefabImporter.h")] 13 | [ExcludeFromPreset] 14 | internal class PrefabImporter : AssetImporter 15 | { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Modules/PackageManagerUI/Editor/Extensions/Interfaces/IDetailsExtension.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.UIElements; 6 | 7 | namespace UnityEditor.PackageManager.UI 8 | { 9 | internal interface IDetailsExtension : IExtension 10 | { 11 | bool expanded { set; get; } 12 | string title { set; get; } 13 | 14 | void Add(VisualElement element); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Modules/PackageManagerUI/Editor/Services/Packages/PackageProgress.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor.PackageManager.UI.Internal 6 | { 7 | internal enum PackageProgress 8 | { 9 | None = 0, 10 | Refreshing, 11 | Downloading, 12 | Pausing, 13 | Resuming, 14 | Installing, 15 | Resetting, 16 | Removing 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Modules/ProfilerEditor/ProfilerWindow/Bottlenecks/Details/Shared/TimeFormatterUtility.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace Unity.Profiling.Editor.UI 8 | { 9 | class TimeFormatterUtility 10 | { 11 | public static string FormatTimeNsToMs(UInt64 timeNs) 12 | { 13 | return string.Format($"{timeNs * 1.0e-6f:F3}ms"); 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Modules/UIElements/ScriptBindings/VisualNodeRenderData.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Runtime.InteropServices; 6 | using UnityEngine.Bindings; 7 | 8 | namespace UnityEngine.UIElements; 9 | 10 | [NativeType(Header = "Modules/UIElements/VisualNodeRenderData.h")] 11 | [StructLayout(LayoutKind.Sequential)] 12 | struct VisualNodeRenderData 13 | { 14 | public RenderHints Hints; 15 | } 16 | -------------------------------------------------------------------------------- /Editor/Mono/Camera/IScriptableBakedReflectionSystemStageNotifier.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor.Experimental.Rendering 6 | { 7 | public interface IScriptableBakedReflectionSystemStageNotifier 8 | { 9 | void EnterStage(int stage, string progressMessage, float progress); 10 | void ExitStage(int stage); 11 | 12 | void SetIsDone(bool isDone); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Runtime/Export/Scripting/ScriptingRuntime.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using UnityEngine.Bindings; 7 | 8 | namespace UnityEngine 9 | { 10 | [NativeHeader("Runtime/Export/Scripting/ScriptingRuntime.h")] 11 | [VisibleToOtherModules] 12 | internal partial class ScriptingRuntime 13 | { 14 | public static extern string[] GetAllUserAssemblies(); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Editor/Mono/MonoCecil/FileOpenInfo.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor 6 | { 7 | internal class FileOpenInfo : IFileOpenInfo 8 | { 9 | public string FilePath { get; set; } 10 | public int LineNumber { get; set; } 11 | 12 | public FileOpenInfo() 13 | { 14 | LineNumber = 1; 15 | FilePath = string.Empty; 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Editor/Mono/Utils/EnumUtility.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using UnityEngine.Scripting; 7 | 8 | namespace UnityEditor 9 | { 10 | static class EnumUtility 11 | { 12 | [RequiredByNativeCode] 13 | private static string ConvertEnumToString(Type enumType, int enumValue) 14 | { 15 | return Enum.GetName(enumType, enumValue); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Modules/AndroidJNI/Configuration/AndroidUiModeType.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEngine.Android 8 | { 9 | public enum AndroidUIModeType : int 10 | { 11 | Undefined = 0, 12 | Normal = 1, 13 | Desk = 2, 14 | Car = 3, 15 | Television = 4, 16 | Appliance = 5, 17 | Watch = 6, 18 | VrHeadset = 7 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Modules/GraphViewEditor/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Runtime.CompilerServices; 6 | 7 | [assembly: InternalsVisibleTo("Unity.VisualEffectGraph.Editor")] 8 | [assembly: InternalsVisibleTo("Unity.VisualEffectGraph.Editor-testable")] 9 | [assembly: InternalsVisibleTo("Unity.VisualEffectGraph.EditorTests")] 10 | [assembly: InternalsVisibleTo("Unity.VisualEffectGraph.EditorTests-testable")] 11 | -------------------------------------------------------------------------------- /Modules/Licensing/UI/Events/ILicenseNotificationHandlerFactory.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEditor.Licensing.UI.Data.Events; 6 | using UnityEditor.Licensing.UI.Events.Handlers; 7 | 8 | namespace UnityEditor.Licensing.UI.Events; 9 | 10 | interface ILicenseNotificationHandlerFactory 11 | { 12 | public INotificationHandler GetHandler(NotificationType notificationType, string jsonNotification); 13 | } 14 | -------------------------------------------------------------------------------- /Runtime/Export/Math/ColorUtility.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.Bindings; 6 | 7 | namespace UnityEngine 8 | { 9 | [NativeHeader("Runtime/Math/ColorUtility.h")] 10 | public partial class ColorUtility 11 | { 12 | [FreeFunction("TryParseHtmlColor", true)] 13 | extern internal static bool DoTryParseHtmlColor(string htmlString, out Color32 color); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Editor/Mono/BuildPipeline/Android/AndroidPostGenerateGradleProject.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using System.Collections.Generic; 7 | using UnityEditor.Build; 8 | using UnityEngine; 9 | 10 | namespace UnityEditor.Android 11 | { 12 | public interface IPostGenerateGradleAndroidProject : IOrderedCallback 13 | { 14 | void OnPostGenerateGradleAndroidProject(string path); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Editor/Mono/GameView/IGameViewSizeMenuUser.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor 6 | { 7 | internal interface IGameViewSizeMenuUser 8 | { 9 | void SizeSelectionCallback(int indexClicked, object objectSelected); 10 | bool lowResolutionForAspectRatios { get; set; } 11 | bool forceLowResolutionAspectRatios { get; } 12 | bool vSyncEnabled { get; set; } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Modules/AccessibilityEditor/Managed/AccessibilityEditor.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.Accessibility; 6 | 7 | namespace UnityEditor.Accessibility 8 | { 9 | internal static class AccessibilityEditor 10 | { 11 | [InitializeOnLoadMethod] 12 | public static void Initialize() 13 | { 14 | AccessibilityManager.Internal_Initialize(); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Modules/PackageManagerUI/Editor/UI/PackageSelectionObject.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using UnityEngine; 7 | 8 | namespace UnityEditor.PackageManager.UI.Internal 9 | { 10 | [ExcludeFromPreset] 11 | [Serializable] 12 | internal class PackageSelectionObject : ScriptableObject 13 | { 14 | public string displayName; 15 | public string packageUniqueId; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Runtime/Export/Graphics/Watermark.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.Bindings; 6 | 7 | namespace UnityEngine.Rendering 8 | { 9 | [NativeHeader("Runtime/Graphics/DrawSplashScreenAndWatermarks.h")] 10 | public class Watermark 11 | { 12 | [FreeFunction("IsAnyWatermarkVisible")] 13 | extern public static bool IsVisible(); 14 | } 15 | } // namespace UnityEngine.Rendering 16 | -------------------------------------------------------------------------------- /Runtime/Export/Internal/InternalInterfaces.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using UnityEngine.Bindings; 7 | 8 | namespace UnityEngine.Internal 9 | { 10 | /// 11 | /// Tags that it is not possible (or undefined) to duplicate/instantiate an asset of this type. 12 | /// 13 | [VisibleToOtherModules] 14 | interface ISubAssetNotDuplicatable 15 | { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Editor/Mono/EditorWindow.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.Bindings; 6 | 7 | namespace UnityEditor 8 | { 9 | [NativeHeader("Editor/Src/Windowing/ContainerWindow.bindings.h")] 10 | public partial class EditorWindow 11 | { 12 | [FreeFunction("ContainerWindowBindings::MakeModal")] 13 | internal static extern void Internal_MakeModal(ContainerWindow win); 14 | 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Modules/XR/ScriptBindings/VRNode.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine.XR 6 | { 7 | // Matches UnityVRTrackedNodeType in IUnityVR.h 8 | public enum XRNode 9 | { 10 | LeftEye, 11 | RightEye, 12 | CenterEye, 13 | Head, 14 | LeftHand, 15 | RightHand, 16 | GameController, 17 | TrackingReference, 18 | HardwareTracker 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Runtime/Export/Caching/Caching.deprecated.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEngine 8 | { 9 | 10 | public partial class Caching 11 | { 12 | [System.Obsolete("This function is obsolete. Please use ClearCache. (UnityUpgradable) -> ClearCache()")] 13 | public static bool CleanCache() 14 | { 15 | return ClearCache(); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Modules/Grid/Managed/Grid.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine 6 | { 7 | public partial class Grid 8 | { 9 | public Vector3 GetCellCenterLocal(Vector3Int position) { return CellToLocalInterpolated(position + GetLayoutCellCenter()); } 10 | public Vector3 GetCellCenterWorld(Vector3Int position) { return LocalToWorld(CellToLocalInterpolated(position + GetLayoutCellCenter())); } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Modules/PackageManagerUI/Editor/Extensions/Interfaces/IMenuDropdownItem.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEditor.PackageManager.UI 8 | { 9 | internal interface IMenuDropdownItem : IExtension 10 | { 11 | bool isChecked {set; get;} 12 | string text { set; get; } 13 | bool insertSeparatorBefore { set; get; } 14 | Action action { set; get; } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Runtime/Export/ETW/EventProvider.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.Bindings; 6 | 7 | namespace UnityEngine 8 | { 9 | [NativeHeader("Runtime/Export/ETW/EventProvider.bindings.h")] 10 | public sealed class EventProvider 11 | { 12 | [FreeFunction("EventProvider_Bindings::WriteCustomEvent")] 13 | extern public static void WriteCustomEvent(int value, string text); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Runtime/Export/Internal/ExcludeFromDocs.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEngine.Internal 8 | { 9 | /// 10 | /// Adds default value information for optional parameters 11 | /// 12 | [Serializable] 13 | public class ExcludeFromDocsAttribute : Attribute 14 | { 15 | public ExcludeFromDocsAttribute() 16 | { 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Editor/Mono/IAudioPlatformProperties.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor; 6 | 7 | internal interface IAudioPlatformProperties : IPlatformProperties 8 | { 9 | // The AudioImporterInspector.OnSampleSettingGUI method uses this property to determine whether or not to display UI 10 | // to set sample rates. This property is true for all build targets except WebGL. 11 | bool HasSampleRateSettings => true; 12 | } 13 | -------------------------------------------------------------------------------- /Editor/Mono/Playables/PlayableOutputEditorExtensions.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.Playables; 6 | 7 | namespace UnityEditor.Playables 8 | { 9 | public static class PlayableOutputEditorExtensions 10 | { 11 | public static string GetEditorName(this U output) where U : struct, IPlayableOutput 12 | { 13 | return output.GetHandle().GetEditorName(); 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Modules/AssetDatabase/Editor/Public/PreviewImporter.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine; 6 | using Object = UnityEngine.Object; 7 | using System; 8 | using UnityEngine.Bindings; 9 | 10 | namespace UnityEditor 11 | { 12 | [NativeHeader("Modules/AssetPipelineEditor/Public/PreviewImporter.h")] 13 | [ExcludeFromPreset] 14 | internal partial class PreviewImporter : AssetImporter 15 | { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Modules/BuildReportingEditor/Managed/ScenesUsingAsset.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using UnityEngine.Bindings; 7 | 8 | namespace UnityEditor.Build.Reporting 9 | { 10 | [NativeType(Header = "Modules/BuildReportingEditor/Public/ScenesUsingAssets.h")] 11 | public struct ScenesUsingAsset 12 | { 13 | public string assetPath { get; } 14 | public string[] scenePaths { get; } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Modules/DeviceSimulatorEditor/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Runtime.CompilerServices; 6 | 7 | [assembly: InternalsVisibleTo("UnityEditor.DeviceSimulation.Tests")] 8 | [assembly: InternalsVisibleTo("UnityEditor.DeviceSimulation.InputSystem.Extension")] 9 | [assembly: InternalsVisibleTo("Assembly-CSharp-Editor-firstpass-testable")] 10 | [assembly: InternalsVisibleTo("UnityEditor.DeviceSimulation.Tests.Common")] 11 | -------------------------------------------------------------------------------- /Modules/GraphViewEditor/ISelection.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Collections.Generic; 6 | 7 | namespace UnityEditor.Experimental.GraphView 8 | { 9 | public interface ISelection 10 | { 11 | List selection { get; } 12 | 13 | void AddToSelection(ISelectable selectable); 14 | void RemoveFromSelection(ISelectable selectable); 15 | void ClearSelection(); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Modules/Multiplayer/Managed/MultiplayerRolesData.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.Bindings; 6 | using System.Runtime.CompilerServices; 7 | using UnityEngine.Scripting.APIUpdating; 8 | using UnityEngine.Scripting; 9 | 10 | namespace UnityEngine 11 | { 12 | [NativeType(Header = "Modules/Multiplayer/MultiplayerRolesData.h")] 13 | internal class MultiplayerRolesData : Component 14 | { 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Editor/Mono/CodeEditor/ExternalEditor.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.Bindings; 6 | 7 | namespace Unity.CodeEditor 8 | { 9 | [NativeHeader("Editor/Platform/Interface/ExternalEditor.h")] 10 | internal class ExternalEditor 11 | { 12 | [FreeFunction("PlatformSpecificOpenFileAtLine")] 13 | internal static extern bool OSOpenFileWithArgument(string appPath, string arguments); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Editor/Mono/IUIPlatformProperties.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEditor; 8 | 9 | internal interface IUIPlatformProperties : IPlatformProperties 10 | { 11 | // The GameViewSizes.BuildTargetGroupToGameViewSizeGroup method uses this property to set that class's GameViewSizeGroup 12 | // static variable. 13 | GameViewSizeGroupType GameViewSizeGroupType => GameViewSizeGroupType.Standalone; 14 | } 15 | -------------------------------------------------------------------------------- /Editor/Mono/UIElements/StyleSheets/ThemeAssetDefinitionState.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Collections.Generic; 6 | using UnityEngine; 7 | using UnityEngine.UIElements; 8 | 9 | namespace UnityEditor.UIElements.StyleSheets 10 | { 11 | class ThemeAssetDefinitionState : ScriptableObject 12 | { 13 | public List StyleSheets; 14 | public List InheritedThemes; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Modules/Physics/ScriptBindings/BoxCollider.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.Bindings; 6 | 7 | namespace UnityEngine 8 | { 9 | [RequireComponent(typeof(Transform))] 10 | [NativeHeader("Modules/Physics/BoxCollider.h")] 11 | public partial class BoxCollider : Collider 12 | { 13 | extern public Vector3 center { get; set; } 14 | extern public Vector3 size { get; set; } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Modules/Physics/ScriptBindings/SphereCollider.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.Bindings; 6 | 7 | namespace UnityEngine 8 | { 9 | [RequireComponent(typeof(Transform))] 10 | [NativeHeader("Modules/Physics/SphereCollider.h")] 11 | public class SphereCollider : Collider 12 | { 13 | extern public Vector3 center { get; set; } 14 | extern public float radius { get; set; } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Modules/UIElements/Core/UIElementsBridge.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine.UIElements 6 | { 7 | internal abstract class UIElementsBridge 8 | { 9 | public abstract void SetWantsMouseJumping(int value); 10 | } 11 | 12 | internal class RuntimeUIElementsBridge : UIElementsBridge 13 | { 14 | public override void SetWantsMouseJumping(int value) 15 | { 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Runtime/Export/iOS/iOSSystemGestureDeferMode.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEngine.iOS 8 | { 9 | [Flags] 10 | public enum SystemGestureDeferMode: uint 11 | { 12 | None = 0, 13 | TopEdge = 1 << 0, 14 | LeftEdge = 1 << 1, 15 | BottomEdge = 1 << 2, 16 | RightEdge = 1 << 3, 17 | All = TopEdge | LeftEdge | BottomEdge | RightEdge 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Editor/Mono/VersionControl/Common/IIconOverlayExtension.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine; 6 | 7 | namespace UnityEditor.VersionControl 8 | { 9 | public enum IconOverlayType 10 | { 11 | Project, 12 | Hierarchy, 13 | Other, 14 | } 15 | 16 | public interface IIconOverlayExtension 17 | { 18 | void DrawOverlay(string assetPath, IconOverlayType type, Rect rect); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Modules/GraphViewEditor/Elements/Line2.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine; 6 | 7 | namespace UnityEditor.Experimental.GraphView 8 | { 9 | struct Line2 10 | { 11 | public Vector2 start { get; set; } 12 | public Vector2 end { get; set; } 13 | public Line2(Vector2 start, Vector2 end) 14 | { 15 | this.start = start; 16 | this.end = end; 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Modules/PackageManagerUI/Editor/Extensions/Interfaces/IPackageActionMenu.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine; 6 | 7 | namespace UnityEditor.PackageManager.UI 8 | { 9 | internal interface IPackageActionMenu : IExtension 10 | { 11 | string text { get; set; } 12 | Texture2D icon { set; } 13 | string tooltip { get; set; } 14 | 15 | IPackageActionDropdownItem AddDropdownItem(); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Modules/QuickSearch/Editor/Utilities/RaceConditionDetector.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | // #define USE_RACE_CONDITION_DETECTOR 6 | using System; 7 | 8 | 9 | namespace UnityEditor.Search 10 | { 11 | struct RaceConditionDetector : IDisposable 12 | { 13 | 14 | public RaceConditionDetector(object resource) 15 | { 16 | } 17 | 18 | public void Dispose() 19 | { 20 | } 21 | 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Modules/UIBuilder/Editor/Builder/Viewport/IBuilderViewportWindow.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.UIElements; 6 | 7 | namespace Unity.UI.Builder 8 | { 9 | internal interface IBuilderViewportWindow 10 | { 11 | BuilderSelection selection { get; } 12 | 13 | BuilderViewport viewport { get; } 14 | VisualElement documentRootElement { get; } 15 | BuilderCanvas canvas { get; } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Runtime/Export/Scripting/RangeInt.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine 6 | { 7 | public struct RangeInt 8 | { 9 | public int start; 10 | public int length; 11 | 12 | public int end { get { return start + length; } } 13 | 14 | public RangeInt(int start, int length) 15 | { 16 | this.start = start; 17 | this.length = length; 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Editor/Mono/BuildPipeline/RuntimeClassMetadataUtils.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.Bindings; 6 | 7 | namespace UnityEditor 8 | { 9 | [NativeHeader("Runtime/Scripting/Scripting.h")] 10 | internal class RuntimeClassMetadataUtils 11 | { 12 | [FreeFunction("Scripting::ScriptingWrapperTypeNameForNativeID")] 13 | extern public static string ScriptingWrapperTypeNameForNativeID(int id); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Modules/PackageManagerUI/Editor/External/ServicesTab/ServiceGroupingsWrapper.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using System.Collections.Generic; 7 | 8 | namespace UnityEditor.PackageManager.UI.Internal 9 | { 10 | [Serializable] 11 | class ServiceGroupingsWrapper 12 | { 13 | public string name; 14 | public int index; 15 | public string id; 16 | public List packages; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Modules/Physics/ScriptBindings/RaycastHit.deprecated.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using System.ComponentModel; 7 | 8 | namespace UnityEngine 9 | { 10 | partial struct RaycastHit 11 | { 12 | [EditorBrowsable(EditorBrowsableState.Never)] 13 | [Obsolete("Use textureCoord2 instead. (UnityUpgradable) -> textureCoord2")] 14 | public Vector2 textureCoord1 { get { return textureCoord2; } } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Modules/ShaderFoundry/ScriptBindings/PassStageType.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor.ShaderFoundry 6 | { 7 | // THIS ENUM MUST BE KEPT IN SYNC WITH THE ENUM IN PassStageType.h 8 | enum PassStageType : short 9 | { 10 | Invalid = -1, 11 | Vertex = 0, 12 | HullConstant, 13 | Hull, 14 | Domain, 15 | Geometry, 16 | Fragment, 17 | Count, 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Modules/Subsystems/SubsystemDescriptorStore.deprecated.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine.SubsystemsImplementation 6 | { 7 | public static partial class SubsystemDescriptorStore 8 | { 9 | #pragma warning disable CS0618 10 | internal static void RegisterDeprecatedDescriptor(SubsystemDescriptor descriptor) => RegisterDescriptor(descriptor, s_DeprecatedDescriptors); 11 | #pragma warning restore CS0618 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Modules/TextCoreTextEngineEditor/Managed/FontAssetEditorUtilities.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Collections.Generic; 6 | using UnityEditor; 7 | using UnityEngine.TextCore; 8 | 9 | namespace UnityEngine.TextCore.Text 10 | { 11 | internal struct GlyphProxy 12 | { 13 | public uint index; 14 | public GlyphRect glyphRect; 15 | public GlyphMetrics metrics; 16 | public int atlasIndex; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Runtime/Export/Profiler/IgnoredByDeepProfilerAttribute.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using UnityEngine; 7 | using UnityEngine.Scripting; 8 | 9 | namespace Unity.Profiling 10 | { 11 | [RequiredByNativeCode] 12 | [AttributeUsage(AttributeTargets.Method | AttributeTargets.Class | AttributeTargets.Struct, AllowMultiple = false)] 13 | public sealed class IgnoredByDeepProfilerAttribute : Attribute 14 | { 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Runtime/Export/WSA/WSACursor.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.Bindings; 6 | 7 | namespace UnityEngine.WSA 8 | { 9 | [NativeConditional("PLATFORM_WINRT")] 10 | [NativeHeader("PlatformDependent/MetroPlayer/Input/PlatformCursor.h")] 11 | public static class Cursor 12 | { 13 | [FreeFunction("Cursors::SetHardwareCursor")] 14 | public static extern void SetCustomCursor(uint id); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Modules/UIElements/Core/Layout/Model/LayoutSize.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Runtime.InteropServices; 6 | 7 | namespace UnityEngine.UIElements.Layout; 8 | 9 | [StructLayout(LayoutKind.Sequential)] 10 | struct LayoutSize 11 | { 12 | public float width; 13 | public float height; 14 | 15 | public LayoutSize(float width, float height) 16 | { 17 | this.width = width; 18 | this.height = height; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Modules/UnityWebRequest/Public/WebRequest.deprecated.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | 6 | namespace UnityEngine.Networking 7 | { 8 | public partial class UnityWebRequest 9 | { 10 | [System.Obsolete("UnityWebRequest.isError has been renamed to isNetworkError for clarity. (UnityUpgradable) -> isNetworkError", false)] 11 | public bool isError 12 | { 13 | get { return isNetworkError; } 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Runtime/Export/Scripting/RequiredInterfaceAttribute.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEngine.Scripting 8 | { 9 | [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface, AllowMultiple = true)] 10 | public class RequiredInterfaceAttribute : Attribute 11 | { 12 | public RequiredInterfaceAttribute(Type interfaceType) 13 | { 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Editor/Mono/Macros/MacroEvaluator.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.Scripting; 6 | 7 | namespace UnityEditor.Macros 8 | { 9 | public static class MacroEvaluator 10 | { 11 | [RequiredByNativeCode] 12 | public static string Eval(string macro) 13 | { 14 | var ret = MethodEvaluator.ExecuteExternalCode(macro); 15 | return ret == null ? "Null" : ret.ToString(); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Editor/Mono/SceneView/PickingShortcutContext.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | 6 | 7 | namespace UnityEditor 8 | { 9 | class SceneViewPickingShortcutContext : SceneViewMotion.SceneViewContext, ShortcutManagement.IHelperBarShortcutContext 10 | { 11 | public override bool active => ViewHasFocusAndViewportUnderMouse && Tools.current != Tool.View; 12 | public bool helperBarActive => base.active && Tools.current != Tool.View; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Modules/QuickSearch/Editor/QueryEngine/QueryToggle.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor.Search 6 | { 7 | readonly struct QueryToggle 8 | { 9 | public readonly StringView rawText; 10 | public readonly StringView value; 11 | 12 | public QueryToggle(in StringView rawText, in StringView value) 13 | { 14 | this.rawText = rawText; 15 | this.value = value; 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Modules/ProfilerEditor/ProfilerWindow/ModuleEditor/ViewController.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.UIElements; 6 | 7 | namespace UnityEditor.Profiling.ModuleEditor 8 | { 9 | class ViewController 10 | { 11 | public virtual void ConfigureView(VisualElement root) 12 | { 13 | CollectViewElements(root); 14 | } 15 | 16 | protected virtual void CollectViewElements(VisualElement root) {} 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Runtime/Export/Burst/BurstAuthorizedExternalMethodAttribute.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using UnityEngine.Scripting; 7 | 8 | namespace Unity.Burst 9 | { 10 | [RequireAttributeUsages] 11 | [AttributeUsage(AttributeTargets.Method)] 12 | public class BurstAuthorizedExternalMethodAttribute : Attribute 13 | { 14 | // Attribute used to signify that an external method may be called from a Burst-compiled cctor 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Runtime/Export/Windows/WindowsCrashReporting.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.Bindings; 6 | 7 | namespace UnityEngine.Windows 8 | { 9 | public static class CrashReporting 10 | { 11 | public extern static string crashReportFolder 12 | { 13 | [ThreadSafe] 14 | [NativeHeader("PlatformDependent/WinPlayer/Bindings/CrashReportingBindings.h")] 15 | get; 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Modules/Audio/Public/Managed/IHandle.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using System.Runtime.CompilerServices; 7 | using UnityEngine.Bindings; 8 | 9 | [assembly: InternalsVisibleTo("UnityEngine.DSPGraphModule")] 10 | 11 | namespace Unity.Audio 12 | { 13 | [VisibleToOtherModules] 14 | internal interface IHandle : IValidatable, IEquatable 15 | where HandleType : struct, IHandle 16 | { 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Modules/EditorToolbar/Controls/EditorToolbarFloatField.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.UIElements; 6 | 7 | namespace UnityEditor.Toolbars 8 | { 9 | public class EditorToolbarFloatField : FloatField 10 | { 11 | const string k_FloatFieldUssClass = "unity-toolbar-float-field"; 12 | 13 | public EditorToolbarFloatField() : base() 14 | { 15 | AddToClassList(k_FloatFieldUssClass); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Modules/MultiplayerEditor/Managed/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Runtime.CompilerServices; 6 | 7 | [assembly: InternalsVisibleTo("UnityEditor.Modules.Multiplayer.Tests.MultiplayerRoles")] 8 | [assembly: InternalsVisibleTo("UnityEditor.Modules.Multiplayer.Tests.MultiplayerRoles.Performance")] 9 | [assembly: InternalsVisibleTo("Unity.DedicatedServer.Editor")] 10 | [assembly: InternalsVisibleTo("Unity.DedicatedServer.MultiplayerRoles.Editor")] 11 | -------------------------------------------------------------------------------- /Modules/PackageManager/Editor/Managed/EditorCompatibilityLevel.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using RequiredByNativeCodeAttribute = UnityEngine.Scripting.RequiredByNativeCodeAttribute; 7 | 8 | namespace UnityEditor.PackageManager 9 | { 10 | [Serializable] 11 | [RequiredByNativeCode] 12 | internal enum EditorCompatibilityLevel 13 | { 14 | Compatible = 0, 15 | EditorTooHigh, 16 | EditorTooLow, 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Modules/PackageManagerUI/Editor/Extensions/Interfaces/IPackageActionDropdownItem.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEditor.PackageManager.UI 8 | { 9 | internal interface IPackageActionDropdownItem : IExtension 10 | { 11 | bool isChecked { set; get; } 12 | string text { set; get; } 13 | bool insertSeparatorBefore { set; get; } 14 | Action action { set; get; } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Modules/ProfilerEditor/ProfilerWindow/ViewControllerSystem/InvalidViewDefinedInUxmlException.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace Unity.Profiling.Editor.UI 8 | { 9 | class InvalidViewDefinedInUxmlException : Exception 10 | { 11 | const string k_Message = "Unable to create view from Uxml. Uxml must contain at least one child element."; 12 | public InvalidViewDefinedInUxmlException() : base(k_Message) { } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Modules/UIElements/ScriptBindings/VisualNodeImguiData.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Runtime.InteropServices; 6 | using UnityEngine.Bindings; 7 | 8 | namespace UnityEngine.UIElements; 9 | 10 | [NativeType(Header = "Modules/UIElements/VisualNodeImguiData.h")] 11 | [StructLayout(LayoutKind.Sequential)] 12 | struct VisualNodeImguiData 13 | { 14 | [MarshalAs(UnmanagedType.U1)] public bool IsContainer; 15 | public int DescendantCount; 16 | } 17 | -------------------------------------------------------------------------------- /Editor/Mono/Audio/WaveformPreviewFactory.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using System.Collections.Generic; 7 | using System.Reflection; 8 | using UnityEngine; 9 | 10 | 11 | namespace UnityEditor 12 | { 13 | static class WaveformPreviewFactory 14 | { 15 | public static WaveformPreview Create(int initialSize, AudioClip clip) 16 | { 17 | return new StreamedAudioClipPreview(clip, initialSize); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Editor/Mono/HyperLinkClickedEventArgs.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Collections.Generic; 6 | 7 | namespace UnityEditor 8 | { 9 | public class HyperLinkClickedEventArgs 10 | { 11 | public Dictionary hyperLinkData { get; private set; } 12 | 13 | internal HyperLinkClickedEventArgs(Dictionary hyperLinkData) 14 | { 15 | this.hyperLinkData = hyperLinkData; 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Modules/AssetPipelineEditor/Public/AndroidAssetPackImporter.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine; 6 | using UnityEngine.Bindings; 7 | 8 | namespace UnityEditor 9 | { 10 | [NativeHeader("Modules/AssetPipelineEditor/Public/AndroidAssetPackImporter.h")] 11 | [ExcludeFromPreset] 12 | public class AndroidAssetPackImporter : AssetImporter 13 | { 14 | extern public static AndroidAssetPackImporter[] GetAllImporters(); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Modules/PackageManager/Editor/Managed/ErrorCode.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor.PackageManager 6 | { 7 | public enum ErrorCode 8 | { 9 | Unknown, 10 | NotFound, 11 | Forbidden, 12 | InvalidParameter, 13 | Conflict, 14 | AggregateError, 15 | // NOTE: Error code success from the C++ API is not defined here 16 | // since we never create errors for successful requests 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Modules/Physics/ScriptBindings/BoxCollider.deprecated.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using System.ComponentModel; 7 | 8 | namespace UnityEngine 9 | { 10 | public partial class BoxCollider 11 | { 12 | [EditorBrowsable(EditorBrowsableState.Never)] 13 | [Obsolete("Use BoxCollider.size instead. (UnityUpgradable) -> size")] 14 | public Vector3 extents { get { return size * 0.5F; } set { size = value * 2.0F; } } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Modules/UIElements/Core/DropdownUtility.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEngine.UIElements 8 | { 9 | internal static class DropdownUtility 10 | { 11 | internal static Func MakeDropdownFunc; 12 | 13 | internal static IGenericMenu CreateDropdown() 14 | { 15 | return MakeDropdownFunc != null ? MakeDropdownFunc.Invoke() : new GenericDropdownMenu(); 16 | } 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /Modules/UIElements/Core/StyleSheets/StyleSelectorType.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.Bindings; 6 | 7 | namespace UnityEngine.UIElements 8 | { 9 | [VisibleToOtherModules("UnityEditor.UIBuilderModule")] 10 | internal enum StyleSelectorType 11 | { 12 | Unknown, 13 | Wildcard, 14 | Type, 15 | Class, 16 | PseudoClass, 17 | RecursivePseudoClass, 18 | ID, 19 | Predicate 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Modules/UIElements/ScriptBindings/VisualPanelData.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Runtime.InteropServices; 6 | using UnityEngine.Bindings; 7 | 8 | namespace UnityEngine.UIElements; 9 | 10 | [NativeType(Header = "Modules/UIElements/VisualPanelData.h")] 11 | [StructLayout(LayoutKind.Sequential)] 12 | struct VisualPanelData 13 | { 14 | public VisualNodeHandle RootContainer; 15 | [MarshalAs(UnmanagedType.U1)] public bool DuringLayoutPhase; 16 | } 17 | -------------------------------------------------------------------------------- /Editor/Mono/AssetPipeline/ComputeShaderImporter.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine; 6 | using UnityEngine.Bindings; 7 | 8 | namespace UnityEditor 9 | { 10 | [NativeHeader("Editor/Src/AssetPipeline/ComputeShaderImporter.h")] 11 | public sealed partial class ComputeShaderImporter : AssetImporter 12 | { 13 | public PreprocessorOverride preprocessorOverride { get { return PreprocessorOverride.UseProjectSettings; } set {} } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Editor/Mono/EditorUserBuildSettingsQNX.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.Bindings; 6 | 7 | namespace UnityEditor 8 | { 9 | [NativeType(Header = "Editor/Src/EditorUserBuildSettings.h")] 10 | public enum QNXOsVersion 11 | { 12 | [System.Obsolete("Neutrino RTOS 7.0 has been removed in 2023.2")] 13 | Neutrino70 = 0, 14 | 15 | [UnityEngine.InspectorName("Neutrino RTOS 7.1")] 16 | Neutrino71 = 1, 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Modules/AssetDatabase/Editor/V2/MultiArtifactTestImporter.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine; 6 | using UnityEngine.Bindings; 7 | 8 | namespace UnityEditor.Experimental 9 | { 10 | // AssetImporter for importing ReferenceArtifactGenerator 11 | [NativeHeader("Modules/AssetDatabase/Editor/V2/MultiArtifactTestImporter.h")] 12 | [ExcludeFromPreset] 13 | internal partial class MultiArtifactTestImporter : AssetImporter 14 | { 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Modules/BuildPipeline/Editor/Shared/ReferencesArtifactGenerator.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine; 6 | using UnityEngine.Bindings; 7 | 8 | namespace UnityEditor 9 | { 10 | // AssetImporter for importing ReferenceArtifactGenerator 11 | [NativeHeader("Modules/AssetPipelineEditor/Public/ReferencesArtifactGenerator.h")] 12 | [ExcludeFromPreset] 13 | internal partial class ReferencesArtifactGenerator : AssetImporter 14 | { 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Modules/PackageManagerUI/Editor/UI/PackageManifest.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine; 6 | using UnityEditor; 7 | 8 | namespace UnityEditorInternal 9 | { 10 | [ExcludeFromPreset] 11 | public sealed class PackageManifestImporter : AssetImporter 12 | { 13 | } 14 | 15 | public sealed class PackageManifest : TextAsset 16 | { 17 | private PackageManifest() {} 18 | 19 | private PackageManifest(string text) {} 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Modules/UIElements/ScriptBindings/VisualNodeTextData.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Runtime.InteropServices; 6 | using UnityEngine.Bindings; 7 | 8 | namespace UnityEngine.UIElements; 9 | 10 | [NativeType(Header = "Modules/UIElements/VisualNodeTextData.h")] 11 | [StructLayout(LayoutKind.Sequential)] 12 | struct VisualNodeTextData 13 | { 14 | internal LanguageDirection LanguageDirection; 15 | internal LanguageDirection LocalLanguageDirection; 16 | } 17 | -------------------------------------------------------------------------------- /Editor/Mono/GUI/PopupLocation.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.Bindings; 6 | 7 | namespace UnityEditor 8 | { 9 | [VisibleToOtherModules("UnityEditor.UIBuilderModule")] 10 | internal enum PopupLocation 11 | { 12 | Below, 13 | BelowAlignLeft = Below, 14 | Above, 15 | AboveAlignLeft = Above, 16 | Left, 17 | Right, 18 | Overlay, 19 | BelowAlignRight, 20 | AboveAlignRight 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Modules/BuildReportingEditor/Managed/BuildStepMessage.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using UnityEngine; 7 | using UnityEngine.Bindings; 8 | using Object = UnityEngine.Object; 9 | 10 | namespace UnityEditor.Build.Reporting 11 | { 12 | [NativeType(Header = "Modules/BuildReportingEditor/Public/BuildReport.h")] 13 | public struct BuildStepMessage 14 | { 15 | public LogType type { get; } 16 | public string content { get; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Modules/PackageManagerUI/Editor/UI/Common/Tabs/BaseTabElement.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.UIElements; 6 | 7 | namespace UnityEditor.PackageManager.UI.Internal 8 | { 9 | internal abstract class BaseTabElement : VisualElement, ITabElement 10 | { 11 | protected string m_DisplayName; 12 | public virtual string displayName => m_DisplayName; 13 | 14 | protected string m_Id; 15 | public virtual string id => m_Id; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Editor/Mono/BuildPipelineExperimental.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEditor.Experimental 8 | { 9 | [Obsolete("BuildPipelineExperimental is no longer supported and will be removed")] 10 | public static class BuildPipelineExperimental 11 | { 12 | public static string GetSessionIdForBuildTarget(BuildTarget target) 13 | { 14 | return BuildPipeline.GetSessionIdForBuildTarget(target, 0); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Modules/Accessibility/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Runtime.CompilerServices; 6 | 7 | [assembly: InternalsVisibleTo("UnityEngine.AccessibilityModule.EditModeTests")] 8 | [assembly: InternalsVisibleTo("UnityEditor.AccessibilityModule")] 9 | 10 | // TOLERATED: modules or core packages evolving in lockstep with this module 11 | // Reducing this list means to improve the API design of this module. 12 | 13 | [assembly: InternalsVisibleTo("UnityEditor.CoreModule")] 14 | -------------------------------------------------------------------------------- /Modules/PackageManagerUI/Editor/UI/MultiSelect/NoActionsFoldout.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor.PackageManager.UI.Internal 6 | { 7 | internal class NoActionsFoldout : MultiSelectFoldout 8 | { 9 | public NoActionsFoldout(IPageManager pageManager) 10 | : base(new DeselectAction(pageManager, "deselectNoAction")) 11 | { 12 | headerTextTemplate = L10n.Tr("No common action available for {0}"); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Modules/UIElements/Core/Bindings/BindingTarget.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine.UIElements 6 | { 7 | internal readonly struct BindingTarget 8 | { 9 | public readonly VisualElement element; 10 | public readonly BindingId bindingId; 11 | 12 | public BindingTarget(VisualElement element, in BindingId bindingId) 13 | { 14 | this.element = element; 15 | this.bindingId = bindingId; 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Modules/UIElements/Core/Style/IStyle.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEngine.UIElements 8 | { 9 | public partial interface IStyle 10 | { 11 | /// 12 | /// Background image scaling in the element's box. 13 | /// 14 | [Obsolete("unityBackgroundScaleMode is deprecated. Use background-* properties instead.")] 15 | StyleEnum unityBackgroundScaleMode { get; set; } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Modules/UIElementsEditor/Debugger/Events/IRegisteredCallbackLine.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.UIElements; 6 | 7 | namespace UnityEditor.UIElements.Debugger 8 | { 9 | enum LineType 10 | { 11 | Title, 12 | Callback, 13 | CodeLine 14 | } 15 | 16 | interface IRegisteredCallbackLine 17 | { 18 | LineType type { get; } 19 | string text { get; } 20 | VisualElement callbackHandler { get; } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Modules/UIElementsEditor/UIElementsEditorRuntimeUtility.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine; 6 | using UnityEngine.UIElements; 7 | 8 | namespace UnityEditor.UIElements 9 | { 10 | internal static class UIElementsEditorRuntimeUtility 11 | { 12 | public static void CreateRuntimePanelDebug(IPanel panel) 13 | { 14 | var panelDebug = new PanelDebug(panel); 15 | (panel as Panel).panelDebug = panelDebug; 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Runtime/Export/Graphics/RenderPipelineGraphicsSettingsCollection.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using System.Collections.Generic; 7 | 8 | namespace UnityEngine.Rendering 9 | { 10 | [Serializable] 11 | public class RenderPipelineGraphicsSettingsCollection 12 | { 13 | [SerializeReference] private List m_List = new(); 14 | 15 | public List settingsList => m_List; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Runtime/Export/SystemInfo/SystemInfo.deprecated.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEngine 8 | { 9 | public sealed partial class SystemInfo 10 | { 11 | [Obsolete("SystemInfo.supportsGPUFence has been deprecated, use SystemInfo.supportsGraphicsFence instead (UnityUpgradable) -> supportsGraphicsFence", true)] 12 | public static bool supportsGPUFence 13 | { 14 | get { return false; } 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Modules/Accessibility/Managed/Services/IService.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEngine.Accessibility 6 | { 7 | internal interface IService 8 | { 9 | /// 10 | /// Sets up everything the service needs to work. 11 | /// 12 | void Start(); 13 | 14 | /// 15 | /// Tears the service down without needing to create a new service. 16 | /// 17 | void Stop(); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Modules/PackageManager/Editor/Managed/DownloadProgress.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEditor.PackageManager 8 | { 9 | internal struct DownloadProgress 10 | { 11 | public readonly ulong currentBytes; 12 | public readonly ulong totalBytes; 13 | 14 | internal DownloadProgress(ulong current, ulong total) 15 | { 16 | currentBytes = current; 17 | totalBytes = total; 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Modules/UIElements/Core/Style/IResolvedStyle.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEngine.UIElements 8 | { 9 | public partial interface IResolvedStyle 10 | { 11 | /// 12 | /// Background image scaling in the element's box. 13 | /// 14 | [Obsolete("unityBackgroundScaleMode is deprecated. Use background-* properties instead.")] 15 | StyleEnum unityBackgroundScaleMode { get; } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Editor/Mono/AssetPipeline/ShaderIncludeImporter.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine; 6 | using UnityEngine.Bindings; 7 | 8 | namespace UnityEditor 9 | { 10 | [NativeHeader("Editor/Src/AssetPipeline/ShaderIncludeImporter.h")] 11 | internal sealed partial class ShaderIncludeImporter : AssetImporter 12 | { 13 | } 14 | 15 | [NativeHeader("Editor/Src/Shaders/ShaderInclude.h")] 16 | public sealed partial class ShaderInclude : TextAsset 17 | { 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Editor/Mono/Scripting/ScriptCompilation/CompilerMessage.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor.Compilation 6 | { 7 | public enum CompilerMessageType 8 | { 9 | Error = 0, 10 | Warning = 1, 11 | Info = 2 12 | } 13 | 14 | public struct CompilerMessage 15 | { 16 | public string message; 17 | public string file; 18 | public int line; 19 | public int column; 20 | public CompilerMessageType type; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Editor/Mono/VersionControl/VersionControlManager.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine; 6 | using UnityEngine.Bindings; 7 | 8 | namespace UnityEditor.VersionControl 9 | { 10 | [NativeHeader("Editor/Src/VersionControl/VCManager.h")] 11 | [StaticAccessor("GetVCManager()")] 12 | partial class VersionControlManager 13 | { 14 | static extern ScriptableObject GetActiveObject(); 15 | static extern void SetActiveObject(ScriptableObject vco); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Modules/PackageManagerUI/Editor/Services/Packages/PackageLink/PackageUpmVersionHistoryChangelogLink.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor.PackageManager.UI.Internal 6 | { 7 | internal class PackageUpmVersionHistoryChangelogLink : PackageUpmChangelogLink 8 | { 9 | public PackageUpmVersionHistoryChangelogLink(IPackageVersion version) : base(version) 10 | { 11 | } 12 | 13 | public override bool isVisible => !isEmpty && base.isVisible; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Modules/UIElementsEditor/EditorUIElementsBridge.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using UnityEditor; 7 | using UnityEditorInternal; 8 | using UnityEngine; 9 | using UnityEngine.UIElements; 10 | 11 | namespace UnityEditor.UIElements 12 | { 13 | internal class EditorUIElementsBridge : UIElementsBridge 14 | { 15 | public override void SetWantsMouseJumping(int value) 16 | { 17 | EditorGUIUtility.SetWantsMouseJumping(value); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Modules/UIElementsEditor/GameObjects/Inspector/UIRendererEditor.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine; 6 | using UnityEngine.UIElements; 7 | 8 | namespace UnityEditor.UIElements.Inspector 9 | { 10 | [CustomEditor(typeof(UIRenderer))] 11 | [CanEditMultipleObjects] 12 | class UIRendererEditor : RendererEditorBase 13 | { 14 | public override void OnInspectorGUI() { } 15 | 16 | public override VisualElement CreateInspectorGUI() { return null; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Runtime/Export/Director/IExposedPropertyTable.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Runtime.InteropServices; 6 | using UnityEngine.Scripting; 7 | using UnityEngine; 8 | 9 | namespace UnityEngine 10 | { 11 | public interface IExposedPropertyTable 12 | { 13 | void SetReferenceValue(PropertyName id, UnityEngine.Object value); 14 | UnityEngine.Object GetReferenceValue(PropertyName id, out bool idValid); 15 | void ClearReferenceValue(PropertyName id); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Editor/Mono/AvatarUtility.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using UnityEngine; 7 | using UnityEditor; 8 | using UnityEngine.Bindings; 9 | using UnityEngine.Scripting; 10 | 11 | namespace UnityEditor 12 | { 13 | [NativeHeader("Modules/Animation/Animator.h")] 14 | [NativeHeader("Editor/Src/Animation/AvatarUtility.h")] 15 | internal class AvatarUtility 16 | { 17 | extern static internal void SetHumanPose([NotNull] Animator animator, float[] dof); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Modules/UIElements/ScriptBindings/VisualNodePseudoStateData.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Runtime.InteropServices; 6 | using UnityEngine.Bindings; 7 | 8 | namespace UnityEngine.UIElements; 9 | 10 | [NativeType(Header = "Modules/UIElements/VisualNodePseudoStateData.h")] 11 | [StructLayout(LayoutKind.Sequential)] 12 | struct VisualNodePseudoStateData 13 | { 14 | public PseudoStates States; 15 | public PseudoStates TriggerMask; 16 | public PseudoStates DependencyMask; 17 | } 18 | -------------------------------------------------------------------------------- /Modules/UIElementsSamplesEditor/UIElementsSnippetAsset.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using UnityEngine; 7 | 8 | namespace UnityEditor.UIElements.Samples 9 | { 10 | [Serializable] 11 | internal class UIElementsSnippetAsset : ScriptableObject 12 | { 13 | public string text 14 | { 15 | get { return m_Text; } 16 | set { m_Text = value; } 17 | } 18 | 19 | [SerializeField] 20 | private string m_Text; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Runtime/Export/Graphics/LightProbeGroup.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using UnityEngine.Bindings; 7 | 8 | namespace UnityEngine 9 | { 10 | [NativeHeader("Runtime/Graphics/LightProbeGroup.h")] 11 | public sealed partial class LightProbeGroup : Behaviour 12 | { 13 | [NativeName("Positions")] 14 | public extern Vector3[] probePositions { get; set; } 15 | [NativeName("Dering")] 16 | public extern bool dering { get; set; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Runtime/Profiler/ScriptBindings/ProfilerScreenCapture.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using Unity.Collections; 6 | using UnityEngine; 7 | using UnityEngine.Scripting.APIUpdating; 8 | 9 | namespace Unity.Profiling 10 | { 11 | public struct DebugScreenCapture 12 | { 13 | public NativeArray RawImageDataReference { get; set; } 14 | public TextureFormat ImageFormat { get; set; } 15 | public int Width { get; set; } 16 | public int Height { get; set; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Editor/Mono/Scripting/ScriptCompilation/ExpressionNotValidException.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEditor.Scripting.ScriptCompilation 8 | { 9 | internal class ExpressionNotValidException : Exception 10 | { 11 | public ExpressionNotValidException(string expression) 12 | : base(expression) {} 13 | 14 | public ExpressionNotValidException(string message, string expression) 15 | : base($"{message} : {expression}") {} 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Modules/PackageManagerUI/Editor/Services/Pages/PageCapability.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEditor.PackageManager.UI.Internal 8 | { 9 | [Flags] 10 | internal enum PageCapability : uint 11 | { 12 | None = 0, 13 | RequireUserLoggedIn = 1 << 0, 14 | RequireNetwork = 1 << 1, 15 | SupportLocalReordering = 1 << 2, 16 | DynamicEntitlementStatus = 1 << 3 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Modules/ShortcutManagerEditor/IConflictResolver.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using System.Collections.Generic; 7 | using UnityEditor.ShortcutManagement; 8 | 9 | interface IConflictResolver 10 | { 11 | void ResolveConflict(IEnumerable keyCombinationSequence, IEnumerable entries); 12 | void Cancel(); 13 | void ExecuteOnce(ShortcutEntry entry); 14 | void ExecuteAlways(ShortcutEntry entry); 15 | void GoToShortcutManagerConflictCategory(); 16 | } 17 | -------------------------------------------------------------------------------- /Modules/UIBuilder/Editor/Builder/Inspector/IBuilderInspectorSection.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.UIElements; 6 | using System.Collections.Generic; 7 | using UnityEditor; 8 | using UnityEditor.UIElements; 9 | using UnityEngine; 10 | 11 | namespace Unity.UI.Builder 12 | { 13 | internal interface IBuilderInspectorSection 14 | { 15 | VisualElement root { get; } 16 | 17 | void Refresh(); 18 | 19 | void Enable(); 20 | 21 | void Disable(); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Modules/UIElements/Core/Collections/Controllers/ISerializedObjectList.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Collections; 6 | 7 | namespace UnityEngine.UIElements 8 | { 9 | internal interface ISerializedObjectList : IList 10 | { 11 | public void ApplyChanges(); 12 | public void RemoveAt(int index, int listCount); 13 | public void Move(int srcIndex, int destIndex); 14 | public int minArraySize { get; } 15 | public int arraySize { get; set; } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Modules/UIElements/Core/Collections/DictionaryExtensions.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Collections.Generic; 6 | 7 | namespace UnityEngine.UIElements.Collections 8 | { 9 | internal static class DictionaryExtensions 10 | { 11 | public static TValue Get(this IDictionary dict, TKey key, TValue fallbackValue = default(TValue)) 12 | { 13 | return dict.TryGetValue(key, out var result) ? result : fallbackValue; 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Modules/Animation/Managed/IAnimationJob.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | 6 | using Unity.Jobs.LowLevel.Unsafe; 7 | using UnityEngine.Scripting.APIUpdating; 8 | 9 | namespace UnityEngine.Animations 10 | { 11 | [MovedFrom("UnityEngine.Experimental.Animations")] 12 | [JobProducerType(typeof(ProcessAnimationJobStruct<>))] 13 | public interface IAnimationJob 14 | { 15 | void ProcessAnimation(AnimationStream stream); 16 | void ProcessRootMotion(AnimationStream stream); 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /Modules/PackageManager/Editor/Managed/ProgressUpdateEventArgs.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using System.Collections.ObjectModel; 7 | 8 | namespace UnityEditor.PackageManager 9 | { 10 | internal class ProgressUpdateEventArgs 11 | { 12 | public ReadOnlyCollection entries; 13 | 14 | internal ProgressUpdateEventArgs(PackageProgress[] progressUpdates) 15 | { 16 | entries = Array.AsReadOnly(progressUpdates); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Modules/PackageManagerUI/Editor/UI/Common/IncorrectFieldTypeException.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEditor.PackageManager.UI.Internal 8 | { 9 | internal class IncorrectFieldTypeException : InvalidCastException 10 | { 11 | public IncorrectFieldTypeException(string fieldName, Type expectedType, Type actualType) 12 | : base($"Unable to cast {actualType.Name} to {expectedType.Name} for the field {fieldName}.") 13 | { 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Modules/ShortcutManagerEditor/IShortcutContext.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEditor.ShortcutManagement 8 | { 9 | abstract class ClutchShortcutContext : IShortcutContext 10 | { 11 | public bool active { get; internal set; } 12 | } 13 | 14 | public interface IShortcutContext 15 | { 16 | bool active { get; } 17 | } 18 | 19 | internal interface IHelperBarShortcutContext 20 | { 21 | bool helperBarActive { get; } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Runtime/Export/Scripting/ExtensionOfNativeClassAttribute.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using UnityEngine.Scripting; 7 | using System.Reflection; 8 | using UnityEngine.Bindings; 9 | 10 | namespace UnityEngine 11 | { 12 | [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, Inherited = true)] 13 | [RequiredByNativeCode] 14 | [VisibleToOtherModules("UnityEditor.UIBuilderModule")] 15 | sealed class ExtensionOfNativeClassAttribute : Attribute 16 | { 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Editor/Mono/AssetPipeline/AssemblyDefinitionImporter.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEditor; 6 | using UnityEngine; 7 | 8 | namespace UnityEditorInternal 9 | { 10 | [ExcludeFromPreset] 11 | public sealed partial class AssemblyDefinitionImporter : AssetImporter 12 | { 13 | } 14 | 15 | public sealed partial class AssemblyDefinitionAsset : TextAsset 16 | { 17 | private AssemblyDefinitionAsset() {} 18 | 19 | private AssemblyDefinitionAsset(string text) {} 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Modules/TextCoreTextEngine/Managed/NativeTextInfo.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Runtime.InteropServices; 6 | using UnityEngine.Bindings; 7 | 8 | namespace UnityEngine.TextCore.Text 9 | { 10 | [VisibleToOtherModules("UnityEngine.UIElementsModule", "UnityEngine.IMGUIModule")] 11 | [StructLayout(LayoutKind.Sequential)] 12 | [NativeHeader("Modules/TextCoreTextEngine/Native/TextInfo.h")] 13 | internal struct NativeTextInfo 14 | { 15 | public ATGMeshInfo[] meshInfos; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Editor/Mono/BrokenPrefabAsset.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.Bindings; 6 | 7 | namespace UnityEditor 8 | { 9 | [NativeHeader("Modules/AssetPipelineEditor/Public/BrokenPrefabAsset.h")] 10 | public class BrokenPrefabAsset : DefaultAsset 11 | { 12 | private BrokenPrefabAsset() {} 13 | 14 | public extern BrokenPrefabAsset brokenPrefabParent { get; } 15 | public extern bool isVariant { get; } 16 | public extern bool isPrefabFileValid { get; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Editor/Mono/BuildPipeline/DesktopStandaloneUserBuildSettings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using System.IO; 7 | using UnityEngine; 8 | using UnityEditor; 9 | using UnityEditorInternal; 10 | using UnityEditor.Modules; 11 | using System.Collections.Generic; 12 | using System.Text; 13 | 14 | internal static class DesktopStandaloneUserBuildSettings 15 | { 16 | internal static string PlatformName 17 | { 18 | get 19 | { 20 | return "Standalone"; 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Editor/Mono/VersionControl/Common/VCMessage.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine; 6 | 7 | namespace UnityEditor.VersionControl 8 | { 9 | // Shared message class to give plugin messages consistency 10 | public partial class Message 11 | { 12 | public void Show() 13 | { 14 | Message.Info(message); 15 | } 16 | 17 | private static void Info(string message) 18 | { 19 | Debug.Log("Version control:\n" + message); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Modules/ShortcutManagerEditor/ReserveModifiersAttribute.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEditor.ShortcutManagement 8 | { 9 | [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)] 10 | public class ReserveModifiersAttribute : Attribute 11 | { 12 | public ShortcutModifiers Modifiers { get; } 13 | 14 | public ReserveModifiersAttribute(ShortcutModifiers modifiers) 15 | { 16 | this.Modifiers = modifiers; 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Runtime/2D/Common/ScriptBindings/Light2DBase.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEngine.U2D 8 | { 9 | public abstract class Light2DBase : MonoBehaviour 10 | { 11 | } 12 | 13 | /// 14 | /// This has to match Light2D.LightType from the Graphics repository 15 | /// 16 | internal enum Light2DType 17 | { 18 | Parametric = 0, 19 | Freeform = 1, 20 | Sprite = 2, 21 | Point = 3, 22 | Global = 4 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Modules/PackageManagerUI/Editor/Services/Proxies/DateTimeProxy.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using System.Diagnostics.CodeAnalysis; 7 | 8 | namespace UnityEditor.PackageManager.UI.Internal 9 | { 10 | internal interface IDateTimeProxy : IService 11 | { 12 | DateTime utcNow { get; } 13 | } 14 | 15 | [ExcludeFromCodeCoverage] 16 | internal class DateTimeProxy : BaseService, IDateTimeProxy 17 | { 18 | public DateTime utcNow => DateTime.UtcNow; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Modules/PackageManagerUI/Editor/UI/ToolBar/Interfaces/IPackageToolBarButton.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Collections.Generic; 6 | using UnityEngine.UIElements; 7 | using System; 8 | 9 | namespace UnityEditor.PackageManager.UI.Internal 10 | { 11 | internal interface IPackageToolBarButton 12 | { 13 | void Refresh(IPackageVersion version); 14 | void Refresh(IEnumerable packages); 15 | event Action onActionTriggered; 16 | VisualElement element { get; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Modules/UIElements/Core/Bindings/CustomBinding.Factory.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using UnityEngine.Internal; 7 | 8 | namespace UnityEngine.UIElements 9 | { 10 | /// 11 | /// Base class for general purpose binding extensibility. 12 | /// 13 | public abstract partial class CustomBinding 14 | { 15 | [ExcludeFromDocs, Serializable] 16 | public new abstract class UxmlSerializedData : Binding.UxmlSerializedData 17 | { 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Editor/Mono/PreferencesWindow/PreferencesItem.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEditor 8 | { 9 | [Obsolete("[PreferenceItem] is deprecated. Use [SettingsProvider] instead.")] 10 | [AttributeUsage(AttributeTargets.Method)] 11 | public sealed partial class PreferenceItem : Attribute 12 | { 13 | public PreferenceItem(string name) { this.name = name; } 14 | public string name; 15 | [RequiredSignature] 16 | private static void signature() {} 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Modules/Animation/Managed/IAnimationJobPlayable.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | 6 | using System; 7 | using UnityEngine; 8 | using UnityEngine.Playables; 9 | using UnityEngine.Scripting.APIUpdating; 10 | 11 | namespace UnityEngine.Animations 12 | { 13 | [MovedFrom("UnityEngine.Experimental.Animations")] 14 | public interface IAnimationJobPlayable : IPlayable 15 | { 16 | T GetJobData() where T : struct, IAnimationJob; 17 | void SetJobData(T jobData) where T : struct, IAnimationJob; 18 | } 19 | } 20 | 21 | -------------------------------------------------------------------------------- /Modules/PackageManagerUI/Editor/Services/Interfaces/IVisualStateList.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Collections.Generic; 6 | 7 | namespace UnityEditor.PackageManager.UI.Internal 8 | { 9 | internal interface IVisualStateList : IEnumerable 10 | { 11 | long countLoaded { get; } 12 | long countTotal { get; } 13 | 14 | IList orderedGroups { get; } 15 | 16 | VisualState Get(string packageUniqueId); 17 | bool Contains(string packageUniqueId); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Modules/UIElements/Core/Layout/Model/Components/LayoutConfigData.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Runtime.InteropServices; 6 | 7 | namespace UnityEngine.UIElements.Layout; 8 | 9 | [StructLayout(LayoutKind.Sequential)] 10 | struct LayoutConfigData 11 | { 12 | public static LayoutConfigData Default => new() 13 | { 14 | PointScaleFactor = 1f, 15 | ShouldLog = false 16 | }; 17 | 18 | public float PointScaleFactor; 19 | 20 | [MarshalAs(UnmanagedType.U1)] 21 | public bool ShouldLog; 22 | } 23 | -------------------------------------------------------------------------------- /Runtime/NameFormatter/NameFormatter.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.Bindings; 6 | 7 | namespace UnityEngine 8 | { 9 | // Helper class for constructing displayable names for objects. 10 | [VisibleToOtherModules] 11 | [NativeHeader("Runtime/NameFormatter/NameFormatter.h")] 12 | internal sealed class NameFormatter 13 | { 14 | // Make a displayable name for a variable. 15 | [FreeFunction] 16 | public static extern string FormatVariableName(string name); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Editor/Mono/GI/LightingDataAsset.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine; 6 | using UnityEngine.Bindings; 7 | 8 | namespace UnityEditor 9 | { 10 | [NativeHeader("Editor/Src/GI/Enlighten/LightingDataAsset.h")] 11 | [ExcludeFromPreset] 12 | public sealed partial class LightingDataAsset : Object 13 | { 14 | private LightingDataAsset() {} 15 | 16 | internal extern bool isValid {[NativeName("IsValid")] get; } 17 | 18 | internal extern string validityErrorMessage { get; } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Modules/PackageManagerUI/Editor/Extensions/Interfaces/IPackageActionButton.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using UnityEngine; 7 | 8 | namespace UnityEditor.PackageManager.UI 9 | { 10 | internal interface IPackageActionButton : IExtension 11 | { 12 | string text { get; set; } 13 | 14 | Texture2D icon { set; } 15 | string tooltip { get; set; } 16 | 17 | Action action { get; set; } 18 | 19 | IPackageActionDropdownItem AddDropdownItem(); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Modules/ProfilerEditor/ProfilerWindow/ProfilerModules/Memory/ObjectMemoryInfo.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Runtime.InteropServices; 6 | 7 | namespace UnityEditorInternal 8 | { 9 | [System.Serializable] 10 | [StructLayout(LayoutKind.Sequential)] 11 | public sealed class ObjectMemoryInfo 12 | { 13 | public int instanceId; 14 | public long memorySize; 15 | public int count; 16 | public int reason; 17 | public string name; 18 | public string className; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Modules/Properties/Runtime/Reflection/Internal/ReflectionUtilities.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Reflection; 6 | 7 | namespace Unity.Properties.Internal 8 | { 9 | internal static class ReflectionUtilities 10 | { 11 | public static string SanitizeMemberName(MemberInfo info) 12 | { 13 | return info.Name 14 | .Replace(".", "_") 15 | .Replace("<", "_") 16 | .Replace(">", "_") 17 | .Replace("+", "_"); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Editor/Mono/GI/LightmapSnapshot.deprecated.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | 6 | namespace UnityEditor 7 | { 8 | //Originally class was defined in Lightmapping.bindings 9 | [System.Obsolete("LightmapSnapshot has been deprecated. Use LightingDataAsset instead (UnityUpgradable) -> LightingDataAsset", true)] 10 | [UnityEngine.NativeClass(null)] 11 | public class LightmapSnapshot : UnityEngine.Object // No **partial** needed since it is a **type** rename 12 | { 13 | //Original class had no public members 14 | } 15 | } 16 | 17 | -------------------------------------------------------------------------------- /Modules/Physics/ScriptBindings/CapsuleCollider.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.Bindings; 6 | 7 | namespace UnityEngine 8 | { 9 | [RequireComponent(typeof(Transform))] 10 | [NativeHeader("Modules/Physics/CapsuleCollider.h")] 11 | public class CapsuleCollider : Collider 12 | { 13 | extern public Vector3 center { get; set; } 14 | extern public float radius { get; set; } 15 | extern public float height { get; set; } 16 | extern public int direction { get; set; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Modules/UnityWebRequest/FriendAttributes.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Runtime.CompilerServices; 6 | 7 | // needed for UnityEngine.Networking.DownloadHandler.DownloadHandler 8 | [assembly: InternalsVisibleTo("UnityEngine.UnityWebRequestAssetBundleModule")] 9 | [assembly: InternalsVisibleTo("UnityEngine.UnityWebRequestAudioModule")] 10 | [assembly: InternalsVisibleTo("UnityEngine.UnityWebRequestTextureModule")] 11 | 12 | // needed for UnityEngine.WWWTranscoder 13 | [assembly: InternalsVisibleTo("UnityEngine.UnityWebRequestWWWModule")] 14 | -------------------------------------------------------------------------------- /Runtime/Export/RenderPipeline/RenderStateMask.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using System.Runtime.InteropServices; 7 | using UnityEngine.Rendering; 8 | 9 | namespace UnityEngine.Rendering 10 | { 11 | // Must match RenderStateMask on C++ side 12 | [Flags] 13 | public enum RenderStateMask 14 | { 15 | Nothing = 0, 16 | Blend = 1 << 0, 17 | Raster = 1 << 1, 18 | Depth = 1 << 2, 19 | Stencil = 1 << 3, 20 | Everything = Blend | Raster | Depth | Stencil 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Runtime/Export/Windows/WindowsCrypto.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.Bindings; 6 | 7 | namespace UnityEngine.Windows 8 | { 9 | public static class Crypto 10 | { 11 | [NativeHeader("PlatformDependent/MetroPlayer/Bindings/WindowsCryptoBindings.h")] 12 | public extern static byte[] ComputeMD5Hash(byte[] buffer); 13 | 14 | [NativeHeader("PlatformDependent/MetroPlayer/Bindings/WindowsCryptoBindings.h")] 15 | public extern static byte[] ComputeSHA1Hash(byte[] buffer); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Editor/Mono/Overlays/ICreateToolbar.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Collections.Generic; 6 | 7 | namespace UnityEditor.Overlays 8 | { 9 | public interface ICreateHorizontalToolbar 10 | { 11 | OverlayToolbar CreateHorizontalToolbarContent(); 12 | } 13 | 14 | public interface ICreateVerticalToolbar 15 | { 16 | OverlayToolbar CreateVerticalToolbarContent(); 17 | } 18 | 19 | public interface ICreateToolbar 20 | { 21 | public IEnumerable toolbarElements { get; } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Editor/Mono/Scripting/Compilers/MicrosoftCSharpResponseFileProvider.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEditor.Scripting.Compilers 8 | { 9 | internal class MicrosoftCSharpResponseFileProvider : ResponseFileProvider 10 | { 11 | public override string ResponseFileName { get { return CompilerSpecificResponseFiles.MicrosoftCSharpCompiler; } } 12 | 13 | public override string[] ObsoleteResponseFileNames { get { return CompilerSpecificResponseFiles.MicrosoftCSharpCompilerObsolete; } } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Modules/ProfilerEditor/ProfilerWindow/UIElements/SelectableLabel.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.UIElements; 6 | 7 | namespace Unity.Profiling.Editor 8 | { 9 | internal class SelectableLabel : TextField 10 | { 11 | public SelectableLabel() 12 | { 13 | isReadOnly = true; 14 | } 15 | 16 | public new class UxmlSerializedData : TextField.UxmlSerializedData 17 | { 18 | public override object CreateInstance() => new SelectableLabel(); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Modules/Subsystems/IntegratedSubsystem.deprecated.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEngine 8 | { 9 | public partial class IntegratedSubsystem : IntegratedSubsystem 10 | where TSubsystemDescriptor : ISubsystemDescriptor 11 | { 12 | [Obsolete("The property 'SubsystemDescriptor' is deprecated. Use `subsystemDescriptor` instead. UnityUpgradeable -> subsystemDescriptor", false)] 13 | public TSubsystemDescriptor SubsystemDescriptor => subsystemDescriptor; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Modules/UIElements/Core/StyleSheets/ThemeStyleSheet.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEngine.UIElements 8 | { 9 | /// 10 | /// Represents a style sheet that's assembled from other style sheets. 11 | /// 12 | [HelpURL("UIE-tss")] 13 | [Serializable] 14 | public class ThemeStyleSheet : StyleSheet 15 | { 16 | internal override void OnEnable() 17 | { 18 | isDefaultStyleSheet = true; 19 | base.OnEnable(); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Editor/Mono/Collab/IVersionControl.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | namespace UnityEditor.Collaboration 6 | { 7 | internal interface IVersionControl 8 | { 9 | bool SupportsDownloads(); 10 | bool SupportsAsyncChanges(); 11 | bool OnEnableVersionControl(); 12 | void OnDisableVersionControl(); 13 | void MergeDownloadedFiles(bool isFullDownload); 14 | } 15 | 16 | internal interface IVersionControl_V2 : IVersionControl 17 | { 18 | void RefreshAvailableLocalChangesSynchronous(); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Modules/Audio/Public/ScriptBindings/AudioMixerGroup.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine; 6 | using UnityEngine.Bindings; 7 | using UnityEngine.Internal; 8 | 9 | namespace UnityEngine.Audio 10 | { 11 | [NativeHeader("Modules/Audio/Public/AudioMixerGroup.h")] 12 | public class AudioMixerGroup : Object, ISubAssetNotDuplicatable 13 | { 14 | // Make constructor internal 15 | internal AudioMixerGroup() {} 16 | 17 | [NativeProperty] 18 | public extern AudioMixer audioMixer { get; } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Modules/ProfilerEditor/ProfilerWindow/Bottlenecks/Data/IProfilerPersistentSettingsService.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace Unity.Profiling.Editor 8 | { 9 | interface IProfilerPersistentSettingsService : IDisposable 10 | { 11 | bool IsBottleneckViewVisible { get; set; } 12 | 13 | ulong TargetFrameDurationNs { get; set; } 14 | 15 | int MaximumFrameCount { get; } 16 | 17 | event Action TargetFrameDurationChanged; 18 | 19 | event Action MaximumFrameCountChanged; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Runtime/Export/UnityEngineInternal/WrappedTypes.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using System.Collections.Generic; 7 | namespace UnityEngineInternal 8 | { 9 | // This is a solution to problem where we cannot use: 10 | // * System.Collections.Stack on WP8 and Metro, because it was stripped from .NET 11 | // * System.Collections.Generic.Stack cannot use on iOS because it creates a dependency to System.dll thus increasing overall executable size 12 | public class GenericStack : System.Collections.Stack 13 | { 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Modules/DSPGraph/Public/ScriptBindings/ExecuteContext.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | 6 | using System; 7 | using UnityEngine.Bindings; 8 | 9 | namespace Unity.Audio 10 | { 11 | [NativeType(Header = "Modules/DSPGraph/Public/ExecuteContext.bindings.h")] 12 | internal unsafe struct ExecuteContextInternal 13 | { 14 | [NativeMethod(IsThreadSafe = true, IsFreeFunction = true)] 15 | public static extern unsafe void Internal_PostEvent(void* dspNodePtr, long eventTypeHashCode, void* eventPtr, int eventSize); 16 | } 17 | } 18 | 19 | -------------------------------------------------------------------------------- /Modules/Licensing/UI/Events/Handlers/INotificationHandler.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEditor.Licensing.UI.Events.Handlers; 8 | 9 | interface INotificationHandler 10 | { 11 | public void Handle(bool isHumanControllingUs) 12 | { 13 | if (isHumanControllingUs) 14 | { 15 | HandleUI(); 16 | } 17 | else 18 | { 19 | HandleBatchmode(); 20 | } 21 | } 22 | 23 | public void HandleUI(); 24 | 25 | public void HandleBatchmode(); 26 | 27 | } 28 | -------------------------------------------------------------------------------- /Modules/PackageManagerUI/Editor/Services/Packages/PackageImage.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEditor.PackageManager.UI.Internal 8 | { 9 | [Serializable] 10 | internal class PackageImage 11 | { 12 | public enum ImageType 13 | { 14 | Main, 15 | Screenshot, 16 | Sketchfab, 17 | Youtube, 18 | Vimeo 19 | } 20 | 21 | public ImageType type; 22 | public string thumbnailUrl; 23 | public string url; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Modules/PackageManagerUI/Editor/UI/PackageTagLabel/PackageBaseTagLabel.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.UIElements; 6 | 7 | namespace UnityEditor.PackageManager.UI.Internal 8 | { 9 | internal abstract class PackageBaseTagLabel : Label 10 | { 11 | public new static readonly string ussClassName = "package-tag-label"; 12 | 13 | public PackageBaseTagLabel() 14 | { 15 | AddToClassList(ussClassName); 16 | } 17 | 18 | public abstract void Refresh(IPackageVersion version); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Modules/Physics/ScriptBindings/ConstantForce.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine.Bindings; 6 | 7 | namespace UnityEngine 8 | { 9 | [RequireComponent(typeof(Rigidbody))] 10 | [NativeHeader("Modules/Physics/ConstantForce.h")] 11 | public class ConstantForce : Behaviour 12 | { 13 | extern public Vector3 force { get; set; } 14 | extern public Vector3 torque { get; set; } 15 | extern public Vector3 relativeForce { get; set; } 16 | extern public Vector3 relativeTorque { get; set; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Editor/Mono/AssetPipeline/AssemblyDefinitionReferenceImporter.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEditor; 6 | using UnityEngine; 7 | 8 | namespace UnityEditorInternal 9 | { 10 | [ExcludeFromPreset] 11 | public sealed partial class AssemblyDefinitionReferenceImporter : AssetImporter 12 | { 13 | } 14 | 15 | public sealed partial class AssemblyDefinitionReferenceAsset : TextAsset 16 | { 17 | private AssemblyDefinitionReferenceAsset() {} 18 | 19 | private AssemblyDefinitionReferenceAsset(string text) {} 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Editor/Mono/Audio/Effects/IAudioEffectPluginGUI.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using System.Collections.Generic; 7 | using System.Linq; 8 | using System.Text; 9 | using UnityEngine; 10 | using UnityEditor; 11 | 12 | namespace UnityEditor 13 | { 14 | public abstract class IAudioEffectPluginGUI 15 | { 16 | public abstract string Name { get; } 17 | public abstract string Description { get; } 18 | public abstract string Vendor { get; } 19 | public abstract bool OnGUI(IAudioEffectPlugin plugin); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Editor/Mono/Tools/IEditor.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityObject = UnityEngine.Object; 6 | using System.Collections.Generic; 7 | 8 | namespace UnityEditor.EditorTools 9 | { 10 | // Specific to tool editors. 11 | interface IEditor 12 | { 13 | // Should be implemented publicly 14 | UnityObject target { get; } 15 | IEnumerable targets { get; } 16 | 17 | // Should be implemented explicitly 18 | void SetTarget(UnityObject value); 19 | void SetTargets(UnityObject[] value); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Modules/ClusterRenderer/ClusterRenderer.bindings.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | using UnityEngine.Bindings; 7 | 8 | namespace UnityEngine 9 | { 10 | [NativeHeader("Modules/ClusterRenderer/ClusterNetwork.h")] 11 | [Obsolete("This type is deprecated and will be removed in Unity 7.", false)] 12 | public class ClusterNetwork 13 | { 14 | public static extern bool isMasterOfCluster { get; } 15 | public static extern bool isDisconnected { get; } 16 | public static extern int nodeIndex { get; set; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Modules/GraphViewEditor/ISelectable.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using UnityEngine; 6 | using UnityEngine.UIElements; 7 | 8 | namespace UnityEditor.Experimental.GraphView 9 | { 10 | public interface ISelectable 11 | { 12 | bool IsSelectable(); 13 | bool HitTest(Vector2 localPoint); 14 | bool Overlaps(Rect rectangle); 15 | void Select(VisualElement selectionContainer, bool additive); 16 | void Unselect(VisualElement selectionContainer); 17 | bool IsSelected(VisualElement selectionContainer); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Modules/HierarchyCore/Managed/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Runtime.CompilerServices; 6 | 7 | // Modules 8 | [assembly: InternalsVisibleTo("UnityEngine.HierarchyModule")] 9 | [assembly: InternalsVisibleTo("UnityEditor.HierarchyModule")] 10 | 11 | // Tests 12 | [assembly: InternalsVisibleTo("Unity.Hierarchy.Tests")] 13 | [assembly: InternalsVisibleTo("Unity.Hierarchy.Editor.Tests")] 14 | [assembly: InternalsVisibleTo("Unity.Hierarchy.PerformanceTests")] 15 | 16 | // External 17 | [assembly: InternalsVisibleTo("Unity.Entities.Editor.Tests")] 18 | -------------------------------------------------------------------------------- /Modules/HierarchyCore/Managed/HierarchyNodeChildrenAlloc.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System.Runtime.InteropServices; 6 | 7 | namespace Unity.Hierarchy 8 | { 9 | [StructLayout(LayoutKind.Explicit, Size = 32)] 10 | unsafe struct HierarchyNodeChildrenAlloc 11 | { 12 | [FieldOffset(0)] public HierarchyNode* Ptr; 13 | [FieldOffset(8)] public int Size; 14 | [FieldOffset(12)] public int Capacity; 15 | [FieldOffset(16)] public int RemovedCount; 16 | [FieldOffset(20)] public fixed int Reserved[3]; 17 | }; 18 | } 19 | -------------------------------------------------------------------------------- /Modules/TextRendering/FontStyle.cs: -------------------------------------------------------------------------------- 1 | // Unity C# reference source 2 | // Copyright (c) Unity Technologies. For terms of use, see 3 | // https://unity3d.com/legal/licenses/Unity_Reference_Only_License 4 | 5 | using System; 6 | 7 | namespace UnityEngine 8 | { 9 | // Font Style applied to GUI Texts, Text Meshes or GUIStyles. 10 | public enum FontStyle 11 | { 12 | // No special style is applied. 13 | Normal = 0, 14 | 15 | // Bold style applied to your texts. 16 | Bold = 1, 17 | 18 | // Italic style applied to your texts. 19 | Italic = 2, 20 | 21 | // Bold and Italic styles applied to your texts. 22 | BoldAndItalic = 3, 23 | } 24 | } 25 | --------------------------------------------------------------------------------