├── CHANGELOG.md ├── .github └── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md ├── Core ├── Network │ ├── Local │ │ ├── README.md │ │ ├── LocalNetwork.cs.meta │ │ └── README.md.meta │ ├── Core │ │ ├── Shared │ │ │ ├── Compress │ │ │ │ ├── README.md │ │ │ │ └── README.md.meta │ │ │ ├── Utils.cs.meta │ │ │ ├── Extensions.cs.meta │ │ │ ├── Interfaces.cs.meta │ │ │ ├── Math │ │ │ │ ├── Empty.cs.meta │ │ │ │ ├── Vector3.cs.meta │ │ │ │ ├── MathToolkit.cs.meta │ │ │ │ ├── Quaternion.cs.meta │ │ │ │ ├── Vector2Int.cs.meta │ │ │ │ ├── Vector4.cs.meta │ │ │ │ ├── Vector4.cs │ │ │ │ ├── MathToolkit.cs │ │ │ │ └── Vector2Int.cs │ │ │ ├── TimeSample.cs.meta │ │ │ ├── NetworkAuthority.cs.meta │ │ │ ├── NetworkLogger.cs.meta │ │ │ ├── NetworkQuality.cs.meta │ │ │ ├── Protocol │ │ │ │ ├── kcp │ │ │ │ │ ├── Kcp.cs.meta │ │ │ │ │ ├── Log.cs.meta │ │ │ │ │ ├── Pool.cs.meta │ │ │ │ │ ├── AckItem.cs.meta │ │ │ │ │ ├── Common.cs.meta │ │ │ │ │ ├── ErrorCode.cs.meta │ │ │ │ │ ├── KcpClient.cs.meta │ │ │ │ │ ├── KcpConfig.cs.meta │ │ │ │ │ ├── KcpHeader.cs.meta │ │ │ │ │ ├── KcpPeer.cs.meta │ │ │ │ │ ├── KcpServer.cs.meta │ │ │ │ │ ├── KcpState.cs.meta │ │ │ │ │ ├── Segment.cs.meta │ │ │ │ │ ├── Utils.cs.meta │ │ │ │ │ ├── AssemblyInfo.cs.meta │ │ │ │ │ ├── Extensions.cs.meta │ │ │ │ │ ├── KcpChannel.cs.meta │ │ │ │ │ ├── KcpServerConnection.cs.meta │ │ │ │ │ ├── VERSION.txt.meta │ │ │ │ │ ├── AssemblyInfo.cs │ │ │ │ │ ├── KcpState.cs │ │ │ │ │ ├── AckItem.cs │ │ │ │ │ ├── KcpChannel.cs │ │ │ │ │ ├── Log.cs │ │ │ │ │ └── ErrorCode.cs │ │ │ │ ├── telepathy │ │ │ │ │ ├── EventType.cs.meta │ │ │ │ │ ├── ConnectionState.cs.meta │ │ │ │ │ ├── TelepathyClient.cs.meta │ │ │ │ │ ├── TelepathyListener.cs.meta │ │ │ │ │ ├── TelepathyServer.cs.meta │ │ │ │ │ ├── ThreadFunctions.cs.meta │ │ │ │ │ ├── MagnificentReceivePipe.cs.meta │ │ │ │ │ ├── MagnificentSendPipe.cs.meta │ │ │ │ │ ├── NetworkStreamExtensions.cs.meta │ │ │ │ │ ├── LICENSE.meta │ │ │ │ │ ├── VERSION.meta │ │ │ │ │ ├── EventType.cs │ │ │ │ │ ├── LICENSE │ │ │ │ │ └── ConnectionState.cs │ │ │ │ ├── kcp.meta │ │ │ │ ├── Ignorance.meta │ │ │ │ └── telepathy.meta │ │ │ ├── Unity │ │ │ │ └── NetworkLoop.cs.meta │ │ │ ├── Messages │ │ │ │ ├── NetworkBuffer.cs.meta │ │ │ │ ├── NetworkId.cs.meta │ │ │ │ ├── NetworkPacker.cs.meta │ │ │ │ ├── NetworkPacket.cs.meta │ │ │ │ ├── Messages │ │ │ │ │ ├── ReqRsp.cs.meta │ │ │ │ │ ├── NetworkMessages.cs.meta │ │ │ │ │ └── NetworkMessages.cs │ │ │ │ ├── NetworkBufferPool.cs.meta │ │ │ │ ├── Messages.meta │ │ │ │ ├── NetworkPacket.cs │ │ │ │ └── NetworkId.cs │ │ │ ├── Lerp │ │ │ │ ├── SnapshotInterpolation.cs.meta │ │ │ │ ├── Ema │ │ │ │ │ ├── ExponentialMovingAverage.cs.meta │ │ │ │ │ ├── ExponentialMovingAverageVector3.cs.meta │ │ │ │ │ ├── ExponentialMovingAverageQuaternion.cs.meta │ │ │ │ │ ├── ExponentialMovingAverageVector3.cs │ │ │ │ │ └── ExponentialMovingAverageQuaternion.cs │ │ │ │ ├── SnapshotInterpolationSettings.cs.meta │ │ │ │ └── Ema.meta │ │ │ ├── Lerp.meta │ │ │ ├── Math.meta │ │ │ ├── Compress.meta │ │ │ ├── Messages.meta │ │ │ ├── Protocol.meta │ │ │ ├── Unity.meta │ │ │ ├── Interfaces.cs │ │ │ ├── NetworkQuality.cs │ │ │ ├── NetworkAuthority.cs │ │ │ └── NetworkLogger.cs │ │ ├── Client │ │ │ ├── IClientHandler.cs.meta │ │ │ ├── IClientSocket.cs.meta │ │ │ ├── IClientSystem.cs.meta │ │ │ ├── KcpClientSocket.cs.meta │ │ │ ├── NetworkClient.cs.meta │ │ │ ├── TelepathyClientSocket.cs.meta │ │ │ ├── NetworkClientMessageHandler.cs.meta │ │ │ ├── IClientSystem.cs │ │ │ ├── IClientHandler.cs │ │ │ └── IClientSocket.cs │ │ ├── Server │ │ │ ├── IServerHandler.cs.meta │ │ │ ├── IServerSocket.cs.meta │ │ │ ├── IServerSystem.cs.meta │ │ │ ├── KcpServerSocket.cs.meta │ │ │ ├── NetworkServer.cs.meta │ │ │ ├── TelepathyServerSocket.cs.meta │ │ │ ├── NetworkServerMessageHandler.cs.meta │ │ │ ├── IServerSystem.cs │ │ │ ├── IServerHandler.cs │ │ │ └── IServerSocket.cs │ │ ├── Client.meta │ │ ├── Server.meta │ │ └── Shared.meta │ ├── UnityToolkit.Network.asmref │ ├── NetworkToolkit.cs.meta │ ├── Time │ │ ├── Messages.cs.meta │ │ ├── NetworkTimeClient.cs.meta │ │ ├── NetworkTimeServer.cs.meta │ │ └── Messages.cs │ ├── Broadcast │ │ ├── Messages.cs.meta │ │ └── Messages.cs │ ├── Empty │ │ ├── EntitySystem.cs.meta │ │ ├── NetworkEntity.cs.meta │ │ ├── NetworkComponent.cs.meta │ │ ├── NetworkEntityMgr.cs.meta │ │ ├── EntityNetworkClient.cs.meta │ │ ├── NetworkEntityMessages.cs.meta │ │ ├── NetworkComponentSerializer.cs.meta │ │ ├── NetworkEntityMgr.cs │ │ └── NetworkComponent.cs │ ├── Components │ │ └── NetworkTransform.cs.meta │ ├── README.md │ ├── README.md.meta │ ├── Core.meta │ ├── Empty.meta │ ├── Entity.meta │ ├── Local.meta │ ├── Time.meta │ ├── Broadcast.meta │ ├── Components.meta │ └── UnityToolkit.Network.asmref.meta ├── QuadTree │ ├── README.md │ └── README.md.meta ├── READNE.md ├── UnityToolkit.Core.asmref ├── Pool.cs.meta ├── State.cs.meta ├── System.cs.meta ├── Toolkit.cs.meta ├── TypeId.cs.meta ├── Util.cs.meta ├── BindData.cs.meta ├── Blackboard.cs.meta ├── DeepCopyUtil.cs.meta ├── EventCenter.cs.meta ├── IOCContainer.cs.meta ├── ModelCenter.cs.meta ├── Property.cs.meta ├── SystemUtil.cs.meta ├── ToolkitLog.cs.meta ├── ToolkitMath.cs.meta ├── BindableProperty.cs.meta ├── Buffer │ ├── LURCache.cs.meta │ └── CircularBuffer.cs.meta ├── ConcurrentPool.cs.meta ├── LazySingleton.cs.meta ├── Octree │ ├── Data │ │ ├── Ray.cs.meta │ │ ├── BoundingBox.cs.meta │ │ ├── MathExtensions.cs.meta │ │ └── MathExtensions.cs │ ├── BoundsOctree.cs.meta │ ├── PointOctree.cs.meta │ ├── PointOctreeNode.cs.meta │ ├── BoundsOctreeNode.cs.meta │ ├── LICENSE.meta │ ├── Data.meta │ └── LICENSE ├── Game │ └── LevelProgress.cs.meta ├── Collections │ └── ListEnumerator.cs.meta ├── FibonacciHeap │ ├── FibonacciHeap.cs.meta │ ├── FibonacciHeapNode.cs.meta │ ├── README.md.meta │ ├── version.json.meta │ ├── version.json │ └── README.md ├── PriorityQueue │ ├── FastPriorityQueue.cs.meta │ ├── IPriorityQueue.cs.meta │ ├── FastPriorityQueueNode.cs.meta │ ├── GenericPriorityQueue.cs.meta │ ├── IFixedSizePriorityQueue.cs.meta │ ├── SimplePriorityQueue.cs.meta │ ├── StablePriorityQueue.cs.meta │ ├── StablePriorityQueueNode.cs.meta │ ├── GenericPriorityQueueNode.cs.meta │ ├── StablePriorityQueueNode.cs │ ├── FastPriorityQueueNode.cs │ ├── GenericPriorityQueueNode.cs │ └── IFixedSizePriorityQueue.cs ├── EntityGenerator.cs.meta ├── READNE.md.meta ├── Game.meta ├── Buffer.meta ├── KDTree.meta ├── Network.meta ├── Octree.meta ├── QuadTree.meta ├── Collections.meta ├── FibonacciHeap.meta ├── PriorityQueue.meta ├── UnityToolkit.Core.asmref.meta ├── Toolkit.cs ├── LazySingleton.cs ├── SystemUtil.cs ├── IOCContainer.cs └── ConcurrentPool.cs ├── README-En.md ├── Runtime ├── Shader │ ├── README.md │ ├── UnityToolkit.hlsl.meta │ ├── StencilBuffer.shader.meta │ ├── README.md.meta │ ├── MotionBlurFunction.hlsl.meta │ ├── DitherPass.mat.meta │ ├── MotionBlur.mat.meta │ ├── StencilOnly.shader.meta │ ├── DitherPass.shadergraph.meta │ ├── MotionBlur.shadergraph.meta │ ├── StencilOnly.shader │ ├── MotionBlurFunction.hlsl │ ├── UnityToolkit.hlsl │ ├── MotionBlur.mat │ └── DitherPass.mat ├── Renderer │ ├── UnityToolkit.asmref │ ├── 2D.meta │ ├── RPMgr.cs.meta │ ├── VolumeExtensions.cs.meta │ ├── ScriptableRendererExtension.cs.meta │ ├── 2D │ │ └── DitherEffectRendererFeature.cs.meta │ ├── UnityToolkit.asmref.meta │ ├── MotionBlurActivator.cs.meta │ └── StencilBufferRenderFeature.cs.meta ├── Config.meta ├── Extensions │ ├── GameObjectExtensions.cs.meta │ ├── TransformExtensions.cs.meta │ ├── EngineExtensions.cs.meta │ └── GameObjectExtensions.cs ├── PathFind.meta ├── System.meta ├── Collections.meta ├── UIFramework │ ├── UIComponents │ │ ├── ProgressText.cs.meta │ │ ├── PolygonUI.cs.meta │ │ ├── HealthBar.cs.meta │ │ ├── ProgressBar.cs.meta │ │ ├── NonDrawGraphic.cs.meta │ │ ├── ProgressText.cs │ │ └── NonDrawGraphic.cs │ ├── UILayer.cs.meta │ ├── AddressablesUILoader.cs.meta │ ├── LoopScrollRect │ │ ├── LICENSE.meta │ │ ├── README.md.meta │ │ ├── README.md │ │ ├── LoopScrollRect.cs.meta │ │ ├── LoopScrollRectBase.cs.meta │ │ ├── LoopScrollRectMulti.cs.meta │ │ ├── LoopHorizontalScrollRect.cs.meta │ │ ├── LoopVerticalScrollRect.cs.meta │ │ ├── LoopHorizontalScrollRectMulti.cs.meta │ │ ├── LoopVerticalScrollRectMulti.cs.meta │ │ └── LICENSE │ ├── LoopScrollRect.meta │ ├── UIComponents.meta │ ├── UIRoot.cs.meta │ ├── UIDatabase.cs.meta │ ├── UIPanel.cs.meta │ ├── IUIComponent.cs.meta │ ├── UIPanelState.cs.meta │ ├── UIPanelState.cs │ ├── UILayer.cs │ └── IUIComponent.cs ├── PathFind │ ├── Path.cs.meta │ ├── PathFindSystem.cs.meta │ └── Path.cs ├── System │ ├── SceneSystem.cs.meta │ ├── ScreenRotationSystem.cs.meta │ ├── ScreenRotationSystem.cs │ └── SceneSystem.cs ├── Physics │ ├── Physics3DHelper.cs.meta │ ├── RayCaster.cs.meta │ └── Physics3DHelper.cs ├── Components │ ├── Trigger2DEventEmitter.cs.meta │ ├── Trigger3DEventEmitter.cs.meta │ ├── ParticleSystemAnimationEventTrigger.cs.meta │ ├── CharacterController2D.cs.meta │ ├── ParticleSystemAnimationEventTrigger.cs │ ├── Trigger3DEventEmitter.cs │ └── Trigger2DEventEmitter.cs ├── Config │ ├── AnimationCurveScriptableObject.cs.meta │ └── AnimationCurveScriptableObject.cs ├── Debugger │ ├── Sprites │ │ ├── Resources │ │ │ ├── IconClear.psd │ │ │ ├── IconError.psd │ │ │ ├── IconHide.psd │ │ │ ├── IconInfo.psd │ │ │ ├── IconCollapse.psd │ │ │ ├── IconWarning.psd │ │ │ ├── SearchIcon.psd │ │ │ ├── IconSnapToBottom.psd │ │ │ ├── SlicedBackground.psd │ │ │ ├── SlicedBackground2.psd │ │ │ ├── SlicedBackground3.psd │ │ │ ├── IconSnapToBottomBg.psd │ │ │ ├── IconResizeVertialOnly.psd │ │ │ └── IconResizeAllDirections.psd │ │ └── Resources.meta │ ├── Base.meta │ ├── Sprites.meta │ ├── Base │ │ ├── Utility.meta │ │ ├── ReferencePool.meta │ │ ├── DebuggerException.cs.meta │ │ ├── DebuggerManager.cs.meta │ │ ├── IDebuggerManager.cs.meta │ │ ├── IDebuggerWindow.cs.meta │ │ ├── Utility │ │ │ ├── Utility.cs.meta │ │ │ ├── Utility.Assembly.cs.meta │ │ │ ├── Utility.Text.cs.meta │ │ │ ├── Utility.Converter.cs.meta │ │ │ ├── Utility.Text.ITextHelper.cs.meta │ │ │ └── Utility.cs │ │ ├── IDebuggerWindowGroup.cs.meta │ │ ├── ReferencePool │ │ │ ├── IReference.cs.meta │ │ │ ├── ReferencePool.cs.meta │ │ │ ├── ReferencePoolInfo.cs.meta │ │ │ ├── ReferencePool.ReferenceCollection.cs.meta │ │ │ └── IReference.cs │ │ ├── DebuggerManager.DebuggerWindowGroup.cs.meta │ │ ├── IDebuggerWindow.cs │ │ ├── IDebuggerWindowGroup.cs │ │ ├── DebuggerException.cs │ │ └── IDebuggerManager.cs │ ├── Component.meta │ ├── DebugDrawer.cs.meta │ └── Component │ │ ├── DebuggerComponent.cs.meta │ │ ├── DebuggerActiveWindowType.cs.meta │ │ ├── DebuggerComponent.FpsCounter.cs.meta │ │ ├── DebuggerComponent.LogNode.cs.meta │ │ ├── DebuggerComponent.ConsoleWindow.cs.meta │ │ ├── DebuggerComponent.TimeInformationWindow.cs.meta │ │ ├── DebuggerComponent.GraphicsInformationWindow.cs.meta │ │ ├── DebuggerComponent.ProfilerInformationWindow.cs.meta │ │ ├── DebuggerComponent.QualityInformationWindow.cs.meta │ │ ├── DebuggerComponent.RuntimeMemorySummaryWindow.cs.meta │ │ ├── DebuggerComponent.SceneInformationWindow.cs.meta │ │ ├── DebuggerComponent.ScreenInformationWindow.cs.meta │ │ ├── DebuggerComponent.SystemInformationWindow.cs.meta │ │ ├── DebuggerComponent.WebPlayerInformationWindow.cs.meta │ │ ├── DebuggerComponent.InputCompassInformationWindow.cs.meta │ │ ├── DebuggerComponent.InputGyroscopeInformationWindow.cs.meta │ │ ├── DebuggerComponent.InputLocationInformationWindow.cs.meta │ │ ├── DebuggerComponent.InputSummaryInformationWindow.cs.meta │ │ ├── DebuggerComponent.InputTouchInformationWindow.cs.meta │ │ ├── DebuggerComponent.ReferencePoolInformationWindow.cs.meta │ │ ├── DebuggerComponent.RuntimeMemoryInformationWindow.cs.meta │ │ ├── DebuggerComponent.ScrollableDebuggerWindowBase.cs.meta │ │ ├── DebuggerComponent.InputAccelerationInformationWindow.cs.meta │ │ ├── DebuggerComponent.RuntimeMemorySummaryWindow.Record.cs.meta │ │ ├── DebuggerComponent.RuntimeMemoryInformationWindow.Sample.cs.meta │ │ ├── DebuggerActiveWindowType.cs │ │ ├── DebuggerComponent.WebPlayerInformationWindow.cs │ │ └── DebuggerComponent.RuntimeMemorySummaryWindow.Record.cs ├── Helper.meta ├── Math.meta ├── Shader.meta ├── Thread.meta ├── Timer.meta ├── Components.meta ├── Debugger.meta ├── Extensions.meta ├── ObjectPool.meta ├── Physics.meta ├── Renderer.meta ├── Singleton.meta ├── UIFramework.meta ├── UnityToolkit.asmdef.meta ├── Timer │ └── Timer.cs.meta ├── Math │ ├── PoisionCircle.cs.meta │ ├── BulletGeometry.cs.meta │ └── PoisionCircle.cs ├── Helper │ ├── EngineHelper.cs.meta │ ├── PlayerLoopHelper.cs.meta │ └── EngineHelper.cs ├── ObjectPool │ ├── StackPool.cs.meta │ ├── EasyGameObjectPool.cs.meta │ ├── GameObjectPoolManager.cs.meta │ └── StackPool.cs ├── Singleton │ └── MonoSingleton.cs.meta ├── Thread │ └── UnityMainThreadDispatcher.cs.meta ├── Collections │ └── SerializableDictionary.cs.meta └── UnityToolkit.asmdef ├── Tool.meta ├── Capabilities ├── Runtime.meta ├── ETickGroup.cs.meta ├── Instigator.cs.meta ├── interface.cs.meta ├── Capabilities.asmdef.meta ├── CapabilityBase.cs.meta ├── CapabilitySystem.cs.meta ├── Capabilities.asmdef ├── CapabilityHolderBase.cs.meta ├── Runtime │ ├── ConfigAsset.cs.meta │ ├── Extensions.cs.meta │ ├── CapabilityAsset.cs.meta │ ├── ComponentAsset.cs.meta │ ├── MonoBehaviorCapability.cs.meta │ ├── ScriptableCapability.cs.meta │ ├── MonoBehaviorCapabilityHolder.cs.meta │ ├── CapabilityAsset.cs │ ├── ConfigAsset.cs │ ├── ComponentAsset.cs │ ├── MonoBehaviorCapability.cs │ └── ScriptableCapability.cs ├── ETickGroup.cs └── Instigator.cs ├── Editor ├── LayerHelper.cs.meta ├── ShaderTemplate.meta ├── ShaderTemplate │ ├── UI.shader.meta │ ├── DOTS.shader.meta │ ├── Unlit.shader.meta │ ├── FullScreen.shader.meta │ ├── URPShaderCreater.cs.meta │ └── FullScreen.shader ├── Resources.meta ├── LoopScrollRect.meta ├── Resources │ ├── UnityToolkit │ │ ├── PolygonUI.prefab.meta │ │ ├── UIRoot.prefab.meta │ │ ├── PanelPrefab.prefab.meta │ │ └── ProgressBar.prefab.meta │ └── UnityToolkit.meta ├── UnityToolkit.Editor.asmdef.meta ├── UIElementUtil.cs.meta ├── EditorReflection.cs.meta ├── HierarchyEditor.cs.meta ├── UIDataBaseAssetHandler.cs.meta ├── LoopScrollRect │ ├── LoopScrollRectInspector.cs.meta │ ├── ScrollListMenuOptions.cs.meta │ └── ScrollListDefaultControls.cs.meta ├── UnityToolkit.Editor.asmdef └── UIDataBaseAssetHandler.cs ├── CHANGELOG.md.meta ├── package.json.meta ├── Core.meta ├── THIRD PARTY NOTICES.md.meta ├── Tool └── add_copyright.py.meta ├── Editor.meta ├── Network.meta ├── Runtime.meta ├── Shader.meta ├── Capabilities.meta ├── Network ├── Core.meta ├── Local.meta └── Core │ ├── Shared.meta │ └── Shared │ ├── Compress.meta │ ├── Protocol.meta │ └── Protocol │ └── telepathy.meta ├── .gitignore ├── THIRD PARTY NOTICES.md ├── .editorconfig ├── AssemblyInfo.cs.meta ├── package.json ├── AssemblyInfo.cs └── LICENSE /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Core/Network/Local/README.md: -------------------------------------------------------------------------------- 1 | 局域网相关工具 -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Core/QuadTree/README.md: -------------------------------------------------------------------------------- 1 | # Quad Tree 2 | 3 | 四叉树 -------------------------------------------------------------------------------- /README-En.md: -------------------------------------------------------------------------------- 1 | # Unity Toolkits :sob: 2 | 3 | -------------------------------------------------------------------------------- /Runtime/Shader/README.md: -------------------------------------------------------------------------------- 1 | # Shader Toolkit 2 | -------------------------------------------------------------------------------- /Core/READNE.md: -------------------------------------------------------------------------------- 1 | # UnityToolkit 2 | 3 | 和UnityEngine无关的部分,因此可以转移到其他C#项目中使用。 -------------------------------------------------------------------------------- /Core/UnityToolkit.Core.asmref: -------------------------------------------------------------------------------- 1 | { 2 | "reference": "UnityToolkit" 3 | } -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Compress/README.md: -------------------------------------------------------------------------------- 1 | # 压缩 2 | 3 | - Variants 4 | - ZigZag -------------------------------------------------------------------------------- /Core/Network/UnityToolkit.Network.asmref: -------------------------------------------------------------------------------- 1 | { 2 | "reference": "UnityToolkit" 3 | } -------------------------------------------------------------------------------- /Core/Pool.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7b0c8e5a8a8224fed9c169a546c92c1d -------------------------------------------------------------------------------- /Core/State.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 201e520ec7299461c892c2117dcdd741 -------------------------------------------------------------------------------- /Core/System.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9276d11775a5f48a3a5959cbea94b99f -------------------------------------------------------------------------------- /Core/Toolkit.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ced478b46425a40b7aa3bcc37d9ea38e -------------------------------------------------------------------------------- /Core/TypeId.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d34c2a0e00ef641818fbdc6b6c3024c2 -------------------------------------------------------------------------------- /Core/Util.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7a15da86959cf4128957cfff229e34c7 -------------------------------------------------------------------------------- /Runtime/Renderer/UnityToolkit.asmref: -------------------------------------------------------------------------------- 1 | { 2 | "reference": "UnityToolkit" 3 | } -------------------------------------------------------------------------------- /Core/BindData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 91b922947bd1949f58dd529ad3e4a054 -------------------------------------------------------------------------------- /Core/Blackboard.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a0c02b0f5f0c04c079b6607477032753 -------------------------------------------------------------------------------- /Core/DeepCopyUtil.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cb95d0d3775d94e89aa202f252ca24f8 -------------------------------------------------------------------------------- /Core/EventCenter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 84a28adb80afe499ab2ef6a88e44af5d -------------------------------------------------------------------------------- /Core/IOCContainer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eb572763d48994851b61aad371db862c -------------------------------------------------------------------------------- /Core/ModelCenter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 691fd93ef4c964d90a7efe5c4d011abe -------------------------------------------------------------------------------- /Core/Property.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 863036a0dcf6d40fdb24db844edf0f6e -------------------------------------------------------------------------------- /Core/SystemUtil.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7641335d9edf549198887826225eecda -------------------------------------------------------------------------------- /Core/ToolkitLog.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5939c1859f9ab40b894fad7778963896 -------------------------------------------------------------------------------- /Core/ToolkitMath.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ac821d7a84fae4a67be8124cb7a3295b -------------------------------------------------------------------------------- /Core/BindableProperty.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b5a870630d21c41a38177fba8644656c -------------------------------------------------------------------------------- /Core/Buffer/LURCache.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9e5c20494ebf4457990f284625c194f3 -------------------------------------------------------------------------------- /Core/ConcurrentPool.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: caa0ae6df2ca14d668f674082b56e08d -------------------------------------------------------------------------------- /Core/LazySingleton.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1c9ef3a087a734ceab257f233e7f5700 -------------------------------------------------------------------------------- /Core/Octree/Data/Ray.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: be2357a1c16f2478e90356a5985025ce -------------------------------------------------------------------------------- /Core/Buffer/CircularBuffer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1b20a2c7aeb0047cea768c4c9c9fb6af -------------------------------------------------------------------------------- /Core/Game/LevelProgress.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0c15391fdf2194bf7b62c582bb0d5570 -------------------------------------------------------------------------------- /Core/Network/NetworkToolkit.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 291dea399833449e28d4a5323aafe5a1 -------------------------------------------------------------------------------- /Core/Network/Time/Messages.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5787fbed5a9094956849c1d6c700dccc -------------------------------------------------------------------------------- /Core/Octree/BoundsOctree.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6ca538061e9a441e9850e284c77d83f5 -------------------------------------------------------------------------------- /Core/Octree/PointOctree.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 632399c041174462cb475f0ce3324545 -------------------------------------------------------------------------------- /Core/Octree/PointOctreeNode.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1f08e85e53b9c463b919db952c4fcf79 -------------------------------------------------------------------------------- /Core/Collections/ListEnumerator.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d0b55720265c44804814a948017ceb5c -------------------------------------------------------------------------------- /Core/FibonacciHeap/FibonacciHeap.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2ad889bcd5c7f41a3b50417ddeccc221 -------------------------------------------------------------------------------- /Core/Network/Broadcast/Messages.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3361f6bc446564b81ad8740e92113566 -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Utils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 944c7b776185b46b886c41ed4cbfed78 -------------------------------------------------------------------------------- /Core/Network/Empty/EntitySystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 91dd1acc460fc4474aa85d90307208b5 -------------------------------------------------------------------------------- /Core/Network/Empty/NetworkEntity.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d805b80b4b0464b6f8199c45a5c7a011 -------------------------------------------------------------------------------- /Core/Network/Local/LocalNetwork.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0e5e433b1149c4f6a949d5f486e89233 -------------------------------------------------------------------------------- /Core/Octree/BoundsOctreeNode.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6d855428409b54ed39df49d5a84f8606 -------------------------------------------------------------------------------- /Core/Octree/Data/BoundingBox.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1f1da788a62124cae99aa29f42d8451e -------------------------------------------------------------------------------- /Core/Octree/Data/MathExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9b6bdcb8b03104ae4ab608d4e95ccdc9 -------------------------------------------------------------------------------- /Tool.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 090d443332724e25bc3ac8687e148c06 3 | timeCreated: 1763348615 -------------------------------------------------------------------------------- /Core/FibonacciHeap/FibonacciHeapNode.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 907ca8021c9184b92bdf18f62e3089dc -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Extensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1467b251562584af5a77927623f7c1c6 -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Interfaces.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c7c2a4af327864352948a5da5c0837e1 -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Math/Empty.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d837efdaee1f344ec96157175033e896 -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Math/Vector3.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a6680497d34f3477d88f8e0ec1b3fe66 -------------------------------------------------------------------------------- /Core/Network/Core/Shared/TimeSample.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c386aa24bae8c417c9619de11be19d92 -------------------------------------------------------------------------------- /Core/Network/Empty/NetworkComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 28548482683934aa2adef519d7d5228f -------------------------------------------------------------------------------- /Core/Network/Empty/NetworkEntityMgr.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5f01f08c9a05c4e848baaf205555c90a -------------------------------------------------------------------------------- /Core/Network/Time/NetworkTimeClient.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7f4584a75104c4835a3d1c0e34869a3f -------------------------------------------------------------------------------- /Core/Network/Time/NetworkTimeServer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4a997c1d8c1104bd3afcb6318f0d6fe4 -------------------------------------------------------------------------------- /Core/PriorityQueue/FastPriorityQueue.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1a309d30f1c3b47ae96b33741c51304b -------------------------------------------------------------------------------- /Core/PriorityQueue/IPriorityQueue.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 93daf129a818042c891e0a01e5a0ec4d -------------------------------------------------------------------------------- /Core/Network/Core/Client/IClientHandler.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 816690285c3fb471699752a022dcc3a9 -------------------------------------------------------------------------------- /Core/Network/Core/Client/IClientSocket.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5965d6ba5da90492baa864e93738280c -------------------------------------------------------------------------------- /Core/Network/Core/Client/IClientSystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 46964759b39a0482abb2caa4b6fd1f34 -------------------------------------------------------------------------------- /Core/Network/Core/Client/KcpClientSocket.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 335454a379dbe493c82532e1f389bc82 -------------------------------------------------------------------------------- /Core/Network/Core/Client/NetworkClient.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7cc1624a878414001b2a56d6530e7c23 -------------------------------------------------------------------------------- /Core/Network/Core/Server/IServerHandler.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f0bf89078ad4b4b9b8ea09eed53466e0 -------------------------------------------------------------------------------- /Core/Network/Core/Server/IServerSocket.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: abed84a428e4b477a903465a90d56108 -------------------------------------------------------------------------------- /Core/Network/Core/Server/IServerSystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2014cf590363a45aca02f2b52a1c9354 -------------------------------------------------------------------------------- /Core/Network/Core/Server/KcpServerSocket.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0b2eb75cfdae14ccca66fc9dc3eebdc7 -------------------------------------------------------------------------------- /Core/Network/Core/Server/NetworkServer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0b58b93050d604371aa56e824560b21a -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Math/MathToolkit.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 08bd6d5d521e4426f993625d246fd2db -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Math/Quaternion.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 18cafcdaf9fa54a4192dd90446ecafa9 -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Math/Vector2Int.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ec0c213180b134c9f8eb936cd8d10b0d -------------------------------------------------------------------------------- /Core/Network/Core/Shared/NetworkAuthority.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b0801c39ecd434cd3b1502c2de713aac -------------------------------------------------------------------------------- /Core/Network/Core/Shared/NetworkLogger.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6070cdda569a04568b62524859ce3a1c -------------------------------------------------------------------------------- /Core/Network/Core/Shared/NetworkQuality.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 91cbb3493c9c04978bcc7319b7c801a4 -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/kcp/Kcp.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eaf9610a2c40f47a8919072c5e4201c0 -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/kcp/Log.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b376b5e0cf21240aea3564e791d8f0b2 -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/kcp/Pool.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6e3fb4a5aa0a04b3ca44800d2885cb36 -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Unity/NetworkLoop.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 02a5f16d87fba4dd49d0cec58961719a -------------------------------------------------------------------------------- /Core/Network/Empty/EntityNetworkClient.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 755702d0485054aaabf16a8114196230 -------------------------------------------------------------------------------- /Core/Network/Empty/NetworkEntityMessages.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 747a71f2e0c894009818c70a63c179a7 -------------------------------------------------------------------------------- /Core/PriorityQueue/FastPriorityQueueNode.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8db5289eee14e42b4972de2e4ac63553 -------------------------------------------------------------------------------- /Core/PriorityQueue/GenericPriorityQueue.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 38338ad4e3ea644c7ad9a41b2c2bd475 -------------------------------------------------------------------------------- /Core/PriorityQueue/IFixedSizePriorityQueue.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 360a8e8798c1f4526bc137ce03094956 -------------------------------------------------------------------------------- /Core/PriorityQueue/SimplePriorityQueue.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 73c59e64bcc8d4578b938359c5d1e762 -------------------------------------------------------------------------------- /Core/PriorityQueue/StablePriorityQueue.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 51b3c1734f9a9479a97508da93d43bdd -------------------------------------------------------------------------------- /Core/PriorityQueue/StablePriorityQueueNode.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 993cf00bbd7f04a30b690f285de01be4 -------------------------------------------------------------------------------- /Runtime/Config.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0e8c7e39f406422681105a4ab140dcf6 3 | timeCreated: 1732173161 -------------------------------------------------------------------------------- /Runtime/Extensions/GameObjectExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e06a75ad1e4ae4fe4b2893267aeea516 -------------------------------------------------------------------------------- /Runtime/Extensions/TransformExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9498cf00c84eb41aa933f9649b47ce22 -------------------------------------------------------------------------------- /Runtime/PathFind.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bda1064282c746cc9d24191beac6871f 3 | timeCreated: 1731996749 -------------------------------------------------------------------------------- /Runtime/System.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 454881bbc00c41f6bf9125dc110ee9bd 3 | timeCreated: 1732172484 -------------------------------------------------------------------------------- /Capabilities/Runtime.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4fd3c15d02d847cf8cdbcf2680f101b1 3 | timeCreated: 1763105659 -------------------------------------------------------------------------------- /Core/Network/Core/Client/TelepathyClientSocket.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 093d2df047fcc4911ad351c4d3b8e00a -------------------------------------------------------------------------------- /Core/Network/Core/Server/TelepathyServerSocket.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a5d116da2afef44cf8db244f1ee1da35 -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Messages/NetworkBuffer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9155e2f8aa8174507b92e8141cef3967 -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Messages/NetworkId.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e123db4baefa247b693c90ee036f4c3d -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Messages/NetworkPacker.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8000d10b60d80451f9ce1b280b62e3e2 -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Messages/NetworkPacket.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 34f6d5f37758048c591dbd8d87985954 -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/kcp/AckItem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 653b42ea3f25c4b00b0c8f6f1387a8d5 -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/kcp/Common.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ab1bfdd42acca43eebc599e9945f4795 -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/kcp/ErrorCode.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fd901dce5397b4a879f01376cbce1c08 -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/kcp/KcpClient.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5e6510bf511ab49d7b0156812e44e267 -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/kcp/KcpConfig.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9d1d9641bca964cf287036f51cf2977f -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/kcp/KcpHeader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2ccaa1d175fa8413582d2ba385dd784f -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/kcp/KcpPeer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c28e11808cb7a41b98f4b2db32c390c5 -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/kcp/KcpServer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0fe282fdf1be542d58ebdc99db756bd8 -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/kcp/KcpState.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aea9b20798a6f4c8b9e603bdb7a4868c -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/kcp/Segment.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 101b0aec5b54c4619972981a05b48bd4 -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/kcp/Utils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 24a02f4751f824270a8eeb5b1b453301 -------------------------------------------------------------------------------- /Core/Network/Empty/NetworkComponentSerializer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 36a68edb980784228a5b3422232fe40c -------------------------------------------------------------------------------- /Core/PriorityQueue/GenericPriorityQueueNode.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 712c27e9be1b54939a0220179d16e947 -------------------------------------------------------------------------------- /Editor/LayerHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3e40c74ab9794663b69b5f111b6da523 3 | timeCreated: 1740974069 -------------------------------------------------------------------------------- /Editor/ShaderTemplate.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ae8f53e6274c40aaaf85805b06a4c80c 3 | timeCreated: 1731638666 -------------------------------------------------------------------------------- /Runtime/Collections.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c0c2f5f1c6ed457082103e1a51b74f7f 3 | timeCreated: 1731996762 -------------------------------------------------------------------------------- /Runtime/Renderer/2D.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d13f8014572f4120a598a8cb56639223 3 | timeCreated: 1744181937 -------------------------------------------------------------------------------- /Runtime/UIFramework/UIComponents/ProgressText.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4427d683cb9e041a9aa9d8c61a89ed76 -------------------------------------------------------------------------------- /Capabilities/ETickGroup.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 13ffd5f1b8104ea18f0c0d3f968fa86e 3 | timeCreated: 1760433012 -------------------------------------------------------------------------------- /Capabilities/Instigator.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fb7ac919193f4db3adf43a8be467ea16 3 | timeCreated: 1760431811 -------------------------------------------------------------------------------- /Capabilities/interface.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: da947e15eb9840ec852c1a45bfdd1d4a 3 | timeCreated: 1760430769 -------------------------------------------------------------------------------- /Core/EntityGenerator.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2491ca2e12cf4d75b845282c08bb3156 3 | timeCreated: 1753087936 -------------------------------------------------------------------------------- /Core/Network/Core/Client/NetworkClientMessageHandler.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f0c34a0867b99481fa85a7d08b24e12f -------------------------------------------------------------------------------- /Core/Network/Core/Server/NetworkServerMessageHandler.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 91d692b1bf6494d51884c63fcdfa0ccb -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Lerp/SnapshotInterpolation.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2f2f24705a6214131aec7b59b9f4d505 -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Messages/Messages/ReqRsp.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 75680ea6454c14e77a8475fb3b2c8cab -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Messages/NetworkBufferPool.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9c570ee53f9ac4eafacf45b4d8bd3525 -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/kcp/AssemblyInfo.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2ec784e043ddf44dd9def7e593e91136 -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/kcp/Extensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0b3205ab35b754a85b55742c8dd0bb83 -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/kcp/KcpChannel.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b17b8f7b89cf341858a4361d0d14cebb -------------------------------------------------------------------------------- /Runtime/PathFind/Path.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b69a077fc2f44bf7a2bb34cf178ad897 3 | timeCreated: 1726037782 -------------------------------------------------------------------------------- /Runtime/Renderer/RPMgr.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 10695990aae045b5b5d46437e0efb548 3 | timeCreated: 1730972091 -------------------------------------------------------------------------------- /Capabilities/Capabilities.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a149cd0f747f4b0c9cef45a4aa0e4f17 3 | timeCreated: 1762323283 -------------------------------------------------------------------------------- /Capabilities/CapabilityBase.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: db80b775929f4c14a6c0d1e246707fbb 3 | timeCreated: 1760942765 -------------------------------------------------------------------------------- /Capabilities/CapabilitySystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eaa5bc60793d46898167e891c07a15fa 3 | timeCreated: 1765166513 -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/kcp/KcpServerConnection.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ab9a4fe514e734d86ac6e2e563521cb5 -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/telepathy/EventType.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ac6a2bceba7d547c7b8ec6963fb9f1be -------------------------------------------------------------------------------- /Editor/ShaderTemplate/UI.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4b74ff1c81634c4aa590fa5f61f91407 3 | timeCreated: 1756439694 -------------------------------------------------------------------------------- /Runtime/Shader/UnityToolkit.hlsl.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6c168304201441b2a51f4111c9e3be59 3 | timeCreated: 1725028367 -------------------------------------------------------------------------------- /Runtime/System/SceneSystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8b8821511daa4e6387a996036d1dbdb1 3 | timeCreated: 1732172489 -------------------------------------------------------------------------------- /Runtime/UIFramework/UILayer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a3d0c33f91be4ae0aa5c4c10568a4927 3 | timeCreated: 1735279627 -------------------------------------------------------------------------------- /Capabilities/Capabilities.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Capabilities", 3 | "references":[ "GUID:9baea0ba6357e4d09ba61789a936bcc7" ] 4 | } -------------------------------------------------------------------------------- /Capabilities/CapabilityHolderBase.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fa8b91af7bc145d5bd5775012c382d47 3 | timeCreated: 1762398541 -------------------------------------------------------------------------------- /Capabilities/Runtime/ConfigAsset.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bbd33b4148654c1b8629ef0cf1809958 3 | timeCreated: 1762756266 -------------------------------------------------------------------------------- /Capabilities/Runtime/Extensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 940522809cc4404aa074c5ed4cc4d02d 3 | timeCreated: 1763106634 -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Lerp/Ema/ExponentialMovingAverage.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2b41e31a5b9374e0cad8fc6d0a9d6195 -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Lerp/SnapshotInterpolationSettings.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 44de3178681ea4e5d852ff56c9bf7c81 -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Messages/Messages/NetworkMessages.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 93c78c2b411c74e2d9a771f0f75e9919 -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/telepathy/ConnectionState.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0a1fd542c9a814ceaa20920220caac39 -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/telepathy/TelepathyClient.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4fc2827e16bbf474bb4cea416c37c907 -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/telepathy/TelepathyListener.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8e7775e260ba04462aedcac04031f49f -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/telepathy/TelepathyServer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5310c791a1e3e4ebaa1924325e7796c2 -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/telepathy/ThreadFunctions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f905868df03f348699769e31aca7dcac -------------------------------------------------------------------------------- /Editor/ShaderTemplate/DOTS.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 645a06df740d4b8ba03002566ce68994 3 | timeCreated: 1756439706 -------------------------------------------------------------------------------- /Editor/ShaderTemplate/Unlit.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 09b1fd4d61a64381b638c4121f05d123 3 | timeCreated: 1731638696 -------------------------------------------------------------------------------- /Runtime/PathFind/PathFindSystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f88670b25f7f4e388689dcdd1c3253d1 3 | timeCreated: 1725971557 -------------------------------------------------------------------------------- /Runtime/Physics/Physics3DHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ec6df770e2d448af92cd06439bbf6720 3 | timeCreated: 1732173150 -------------------------------------------------------------------------------- /Runtime/Renderer/VolumeExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e02f6ac28fce421f82d434599c0c6db3 3 | timeCreated: 1730972118 -------------------------------------------------------------------------------- /Runtime/Shader/StencilBuffer.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a1022e73b3a24cdcbefadce7d5a6ef5c 3 | timeCreated: 1731639133 -------------------------------------------------------------------------------- /Capabilities/Runtime/CapabilityAsset.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3f93f3ff79b947aaaa5f3ebcec3251c7 3 | timeCreated: 1762756638 -------------------------------------------------------------------------------- /Capabilities/Runtime/ComponentAsset.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 80efc377d13b4037b3fb62fbe3b13598 3 | timeCreated: 1760432207 -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Lerp/Ema/ExponentialMovingAverageVector3.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 920b1f047a2244412bf2ea5fc667a19b -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Math/Vector4.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f3fa3832a8344d2ab42f80e71909473f 3 | timeCreated: 1764853467 -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/telepathy/MagnificentReceivePipe.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c456c0434d5874a379d631cb215f8237 -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/telepathy/MagnificentSendPipe.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 78d6bf66eb1934af9b581c1ddf94abd1 -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/telepathy/NetworkStreamExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bedf8cc92b7d542e78bc5daa4257b6bb -------------------------------------------------------------------------------- /Editor/ShaderTemplate/FullScreen.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2dc30ca7a79f48b0ab686696cb1c2b78 3 | timeCreated: 1731638674 -------------------------------------------------------------------------------- /Editor/ShaderTemplate/URPShaderCreater.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 42df51284d534f7e883e3d2f0da78d27 3 | timeCreated: 1731638823 -------------------------------------------------------------------------------- /Runtime/System/ScreenRotationSystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8cd8097d92d244d8b29690c555c7a501 3 | timeCreated: 1732172498 -------------------------------------------------------------------------------- /Capabilities/Runtime/MonoBehaviorCapability.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 06a888b3b4d64dc09b39ab792eafba7c 3 | timeCreated: 1760942062 -------------------------------------------------------------------------------- /Capabilities/Runtime/ScriptableCapability.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f82f0635f6734d56be0b573c90898636 3 | timeCreated: 1760432985 -------------------------------------------------------------------------------- /Core/Network/Components/NetworkTransform.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: acc237a59db94111a7d1f3bab6bec5ab 3 | timeCreated: 1763114287 -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Lerp/Ema/ExponentialMovingAverageQuaternion.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4c86a2bf04a1f469f99a9cf981d52fab -------------------------------------------------------------------------------- /Runtime/Components/Trigger2DEventEmitter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 03e81a6f184a4e18a546c5542d398442 3 | timeCreated: 1732173141 -------------------------------------------------------------------------------- /Runtime/Components/Trigger3DEventEmitter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b71eff41e21b4dc9a6bf4f18e0137211 3 | timeCreated: 1732173141 -------------------------------------------------------------------------------- /Runtime/Renderer/ScriptableRendererExtension.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5d60896c0f2143398e884adbbac586f4 3 | timeCreated: 1730972091 -------------------------------------------------------------------------------- /Runtime/UIFramework/AddressablesUILoader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: de49663bd1884dd0b5a8e96f1bc52b67 3 | timeCreated: 1757058628 -------------------------------------------------------------------------------- /Runtime/UIFramework/UIComponents/PolygonUI.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c91ff0382a384ddf8a4a8abfcabec4c6 3 | timeCreated: 1744080694 -------------------------------------------------------------------------------- /Capabilities/Runtime/MonoBehaviorCapabilityHolder.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8190de2b0592423f8374bd527360c3de 3 | timeCreated: 1760431147 -------------------------------------------------------------------------------- /Runtime/Config/AnimationCurveScriptableObject.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6d48bb6420784108bbffcc74ceb21817 3 | timeCreated: 1732173162 -------------------------------------------------------------------------------- /Runtime/Renderer/2D/DitherEffectRendererFeature.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 79a7e1a8287e4278a20c894c1d3913e4 3 | timeCreated: 1744182523 -------------------------------------------------------------------------------- /Runtime/Components/ParticleSystemAnimationEventTrigger.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 49450e4a3e2441f7bd46628bb1c954e1 3 | timeCreated: 1732173269 -------------------------------------------------------------------------------- /Runtime/Debugger/Sprites/Resources/IconClear.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NicoIer/UnityToolkit/HEAD/Runtime/Debugger/Sprites/Resources/IconClear.psd -------------------------------------------------------------------------------- /Runtime/Debugger/Sprites/Resources/IconError.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NicoIer/UnityToolkit/HEAD/Runtime/Debugger/Sprites/Resources/IconError.psd -------------------------------------------------------------------------------- /Runtime/Debugger/Sprites/Resources/IconHide.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NicoIer/UnityToolkit/HEAD/Runtime/Debugger/Sprites/Resources/IconHide.psd -------------------------------------------------------------------------------- /Runtime/Debugger/Sprites/Resources/IconInfo.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NicoIer/UnityToolkit/HEAD/Runtime/Debugger/Sprites/Resources/IconInfo.psd -------------------------------------------------------------------------------- /Runtime/Debugger/Sprites/Resources/IconCollapse.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NicoIer/UnityToolkit/HEAD/Runtime/Debugger/Sprites/Resources/IconCollapse.psd -------------------------------------------------------------------------------- /Runtime/Debugger/Sprites/Resources/IconWarning.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NicoIer/UnityToolkit/HEAD/Runtime/Debugger/Sprites/Resources/IconWarning.psd -------------------------------------------------------------------------------- /Runtime/Debugger/Sprites/Resources/SearchIcon.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NicoIer/UnityToolkit/HEAD/Runtime/Debugger/Sprites/Resources/SearchIcon.psd -------------------------------------------------------------------------------- /Runtime/Debugger/Sprites/Resources/IconSnapToBottom.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NicoIer/UnityToolkit/HEAD/Runtime/Debugger/Sprites/Resources/IconSnapToBottom.psd -------------------------------------------------------------------------------- /Runtime/Debugger/Sprites/Resources/SlicedBackground.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NicoIer/UnityToolkit/HEAD/Runtime/Debugger/Sprites/Resources/SlicedBackground.psd -------------------------------------------------------------------------------- /Runtime/Debugger/Sprites/Resources/SlicedBackground2.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NicoIer/UnityToolkit/HEAD/Runtime/Debugger/Sprites/Resources/SlicedBackground2.psd -------------------------------------------------------------------------------- /Runtime/Debugger/Sprites/Resources/SlicedBackground3.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NicoIer/UnityToolkit/HEAD/Runtime/Debugger/Sprites/Resources/SlicedBackground3.psd -------------------------------------------------------------------------------- /Runtime/Debugger/Sprites/Resources/IconSnapToBottomBg.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NicoIer/UnityToolkit/HEAD/Runtime/Debugger/Sprites/Resources/IconSnapToBottomBg.psd -------------------------------------------------------------------------------- /Runtime/Debugger/Sprites/Resources/IconResizeVertialOnly.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NicoIer/UnityToolkit/HEAD/Runtime/Debugger/Sprites/Resources/IconResizeVertialOnly.psd -------------------------------------------------------------------------------- /Runtime/Debugger/Sprites/Resources/IconResizeAllDirections.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NicoIer/UnityToolkit/HEAD/Runtime/Debugger/Sprites/Resources/IconResizeAllDirections.psd -------------------------------------------------------------------------------- /Core/Network/README.md: -------------------------------------------------------------------------------- 1 | # Network 2 | 3 | 4 | https://zhuanlan.zhihu.com/p/336195014 5 | 6 | - 网络通信核心模块 7 | - 通信协议 8 | - 消息编解码 9 | 10 | 11 | ## Server 12 | 服务器不需要插值,永远保持最新状态,客户端根据情况进行插值 -------------------------------------------------------------------------------- /CHANGELOG.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9f9dcefe85ece42dc8da572823d751ce 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Core/Octree/LICENSE.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ba3b5cf3e835043e2b765a4b940f3846 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Core/READNE.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 01a12a460e84a4afb9b00bf843c0c668 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /package.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7303733228d0d46b2bc374ee73475692 3 | PackageManifestImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Core.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6d093323d726a402f8c557b00f1f6289 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Core/Network/README.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8877f67ebb27d4c169b5a3cbfb2337a6 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /THIRD PARTY NOTICES.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e003781a6f83c46acb92f1d4601bd09b 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Tool/add_copyright.py.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bb02612fb25c3483da597eec814f1ac9 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Core/Game.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8990a0df01dd94803aab34bb9c554200 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Core/QuadTree/README.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5bc068baa17b14e1dbd9c6afbd6d9603 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 85bb7b5cc1cc14bcf81712194174878d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Network.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d50d9a0b39c94a54bbd76ab24519d567 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a5f18fe93bb104d00a1bb501222348b7 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Shader/README.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0da7f4fd2b35b4fcf9a7decf143bee11 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1dba941436c84c84b26849acf29e1e6b 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Capabilities.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ab6a64561f9d34ba0a732f891113e81f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Core/Buffer.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3f0955586af534798ad9ca2cdb176aa9 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Core/FibonacciHeap/README.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0e187aa02f0c34689aea17165b2d0dff 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Core/FibonacciHeap/version.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3c38a58e1d26b4651a211dfb626424c5 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Core/KDTree.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4e4be7a6947940b6b58ea50ffb475eb2 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Core/Network.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b2d37f35dc7b74f44b39f7e64cc4c466 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Core/Network/Local/README.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 44e1cefd0163c4b2796b7105ed41667a 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Core/Octree.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 22c513d492d2d490a8bf197f0b90a7c2 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Core/QuadTree.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 36856a6d382ec4e738f800e6de8339bf 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Network/Core.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ef65493cd2d953d478f656d5c7241d20 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Network/Local.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 85842ad0631348147a8d2e900f79bb31 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Helper.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e4215fd2e991c4ef89fbd6bf65867dcd 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Math.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6c1fdfd4a9f6b48b3974a59caec67ac8 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: de67003ff2e1c4385b3d5b593d3358e2 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Thread.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2cec2bdbfeeb54871b0467ac854fc01f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Timer.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d311cafce8aa54bc9846b6589c78e5c3 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Core/Collections.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d52ab3cb798564930a00942f8b07d031 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Core/FibonacciHeap.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 037edb2cc526048c4bcb8f4d9371df8a 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Core/Network/Core.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7ee84014023ff4816a04f81b81595575 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Core/Network/Empty.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5c04db5177695467199d57cb895181d2 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Core/Network/Entity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9dbb2cbc9138644e8a0b6c5d195f893c 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Core/Network/Local.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0be45ce5c91ba43c6adebeef7f475131 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Core/Network/Time.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3b83262952e234853a28d588c898400e 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Core/Octree/Data.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2f36ffdde80e24d9c94f706e834e964c 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Core/PriorityQueue.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c34d293b8fea149d1b0319e75e8ea86c 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Editor/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 49e74700fffa44c1f81af16101eeec96 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Network/Core/Shared.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c6279f46199090e4d9427acfd657e46f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Components.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2ad9eb6c7d6ea4cf694b20e544ec723c 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Debugger.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 390b6792b768a4a0bbc84e521c3eb4e1 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Extensions.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6c8e3fc575a294ea3bd4069fcd010f02 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/ObjectPool.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 23877e5edc1e340cc8aa6ac398f0e1d6 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Physics.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 639fb6c05b27c4ba6a4f29924aad3faa 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Renderer.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9c67b51e6496c4555b5c0a429f9c8815 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Singleton.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c4d24902f784445e991347c8e01e1977 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/UIFramework.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6c0d338aa97114ebf90494c7156eac36 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/UnityToolkit.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9baea0ba6357e4d09ba61789a936bcc7 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Core/Network/Broadcast.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 15cc5114235fb47f8846355bbfd32a8c 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Core/Network/Components.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1cc07f665219b43fc98a525a423ddf3f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Core/Network/Core/Client.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 820b4beecda574ed4924cbe9100d874b 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Core/Network/Core/Server.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9502533a2dfeb4f5392c562d138d9b30 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Core/Network/Core/Shared.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b52c227e6a58743119e2312598eca2de 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Editor/LoopScrollRect.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6de01829521bb426f9f8edce7c7149b6 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Editor/Resources/UnityToolkit/PolygonUI.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 06162ecc98a8e4633aea476c01b781e6 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Editor/Resources/UnityToolkit/UIRoot.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9c80a70a01b634f869075cf845026945 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Editor/UnityToolkit.Editor.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 15161b5be00354fcdbf77533f52733f5 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Runtime/Debugger/Base.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4500c9ae2f2a54ed0966dd33e8b8994e 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Debugger/Sprites.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d5244aad8d9e040148404cbd34f054f8 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Shader/MotionBlurFunction.hlsl.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 56e5f3eb6f156604db79265bd6440e88 3 | ShaderIncludeImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Runtime/UIFramework/LoopScrollRect/LICENSE.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4e7dff4f42c9b4723be4c008facf1818 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Compress/README.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: be3fb36beaa1f4a928b34d73a0a69c48 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Lerp.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e04eaaa227d1f4df8b2dc48b8529b7d2 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Math.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e1d4a9a05735b4c89993c60b1adc2730 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Core/UnityToolkit.Core.asmref.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 13afe08fab8254db990b7d2be2fef1d2 3 | AssemblyDefinitionReferenceImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Editor/Resources/UnityToolkit.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d0b37647d6ccb45488901f361813ebe4 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Editor/Resources/UnityToolkit/PanelPrefab.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 07d148c0f07c947caa9e949bb739fca7 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Editor/Resources/UnityToolkit/ProgressBar.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 76d1cf9193a7a46cf85486f3a51d926f 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Network/Core/Shared/Compress.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 99928504bf9c805449bc369a2f26a085 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Network/Core/Shared/Protocol.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 47e6e4ebd185d0a479a446a26d503277 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Debugger/Base/Utility.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4d1e236fb751f49f7bf4cb96075ac676 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Debugger/Component.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 44ff70624c5d4467e96a892a481d6a7a 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/UIFramework/LoopScrollRect/README.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e9389bc1f2b3b4437885d09c77c11969 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Compress.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a9d3d9948b02e49f9a13ccc279405fab 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Lerp/Ema.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 295faeb1eaf2f412aaf6e938be940991 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Messages.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d8f9c36ed14f446558d1c4c383c1c0ff 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cc0e6c2d42bb34f6e9b31a4f3b6c8600 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/kcp/VERSION.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bf645b1461b4f41e7a64d1b28569b905 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/telepathy/LICENSE.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9449b70d4a9cd4937b65d3b1b07b29e7 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/telepathy/VERSION.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 156b3ca3663734406b75241f42e7554b 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f32c5e39339214ad6bec2c86a38b8ea1 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Debugger/Sprites/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3aff78da3c3344b85a9ae351ac16deaa 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/UIFramework/LoopScrollRect.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8d3c730cca4714c6cbe3fc8831ca97d6 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/UIFramework/UIComponents.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ed5e979b4f18742a8a0c94beff8f91ba 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | #*.meta 2 | .DS_Store 3 | 4 | .idea/ 5 | 6 | # 忽略Network下所有的.meta文件 7 | 8 | obj/ 9 | bin/ 10 | 11 | # README相关也不需要.meta 12 | /README.md.meta 13 | /README-En.md.meta 14 | 15 | # LICENSE相关也不需要.meta 16 | /LICENSE.meta 17 | -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/kcp.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 68eb7bd1d3c1c4f2c96ac6ca5a86ff80 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Core/Network/UnityToolkit.Network.asmref.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 993af1ecf8dd744789786238a837203a 3 | AssemblyDefinitionReferenceImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Network/Core/Shared/Protocol/telepathy.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 06f8bf8e2a343044c9d85d5fdeeb5059 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Debugger/Base/ReferencePool.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5396c5cc6ea1d44e98955e2b8a641ce7 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Renderer/UnityToolkit.asmref.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 20df2a53baef74cf292360e180b7e5cb 3 | AssemblyDefinitionReferenceImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Messages/Messages.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 11a5bdea6a879439fa699004d5ae3709 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/Ignorance.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cc98cd95e3fb22b4eb88082706967357 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/telepathy.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 90568a6070dc6453995698d67e05074e 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Shader/DitherPass.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1176580104e2440f4ac603e64b2a8aac 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Shader/MotionBlur.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0c17700eeec896943a8d753c4a13fe45 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /THIRD PARTY NOTICES.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | mirror networking : https://github.com/MirrorNetworking 4 | 5 | kcp : https://github.com/MirrorNetworking/kcp2k 6 | 7 | telepathy : https://github.com/MirrorNetworking/Telepathy 8 | 9 | KDTree : https://github.com/viliwonka/KDTree 10 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # top-most EditorConfig file 2 | root = true 3 | 4 | # Default settings: 5 | [*.cs] 6 | # License header 7 | file_header_template = Copyright (c) 2023 NicoIer and Contributors.\nLicensed under the MIT License (MIT). See LICENSE in the repository root for more information. -------------------------------------------------------------------------------- /Core/FibonacciHeap/version.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "2.0", 3 | "publicReleaseRefSpec": [ 4 | "^refs/heads/master$", 5 | "^refs/heads/v\\d+(?:\\.\\d+)?$" 6 | ], 7 | "cloudBuild": { 8 | "buildNumber": { 9 | "enabled": true 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Runtime/Shader/StencilOnly.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 84045286128cd488dac63dce25627cc0 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/kcp/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | using System.Runtime.CompilerServices; 4 | 5 | [assembly: InternalsVisibleTo("kcp2k.Tests")] -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/kcp/KcpState.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | namespace kcp2k 4 | { 5 | public enum KcpState { Connected, Authenticated, Disconnected } 6 | } 7 | -------------------------------------------------------------------------------- /Runtime/UIFramework/LoopScrollRect/README.md: -------------------------------------------------------------------------------- 1 | # 无限循环列表 2 | 3 | fork from [LoopScrollRect1.1.2](https://github.com/qiankanglai/LoopScrollRect) 4 | url:https://github.com/qiankanglai/LoopScrollRect 5 | 6 | 7 | 做了一些修改以适配UnityToolkit,主要是参考FGUI的GList做了修改 8 | 9 | 需要注意的是,Item上必须挂有LayoutElement组件,并且设置最佳长度和宽度,否则会出现显示异常 -------------------------------------------------------------------------------- /AssemblyInfo.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bfc3b14d62add482c9c45ae3bec51788 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Editor/UIElementUtil.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1d6e504c2b2f74f288e04a34f47b153d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Timer/Timer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a55bf9e7c35b247acbbbbbc61e1b29bd 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Editor/EditorReflection.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 074b3d28b53f74e1ea981acc07306453 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Editor/HierarchyEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0e62466d851c54364a9fdd4afd73c2fa 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Math/PoisionCircle.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 584631cce957b4602ba0fd296cb95256 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Physics/RayCaster.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3f8975b7e290b469893c0ed66893b89d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/UIFramework/UIRoot.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 82c85ef06e7494fc5b9699ca0a79cffc 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Interfaces.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | namespace Network 4 | { 5 | public interface INetworkMessage 6 | { 7 | public const int IdSize = sizeof(ushort); 8 | } 9 | } -------------------------------------------------------------------------------- /Editor/UIDataBaseAssetHandler.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 126bd052337ed4021a628ab9fad0f815 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Debugger/DebugDrawer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6ed657b00b5874257bbd3c47dbe90f5c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Helper/EngineHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4d2366e23d0cd4d30a2d4601fbba2e8f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Helper/PlayerLoopHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 32da8cce941c14294b1fdd5f5aa291ef 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Math/BulletGeometry.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 657049fc4f8d646f6ad2d2cb4f16f245 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/ObjectPool/StackPool.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b896c150ca7ca47bba882c21c349d5af 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Singleton/MonoSingleton.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 33543bc29fa1a47d2a85dd8b2bca1cc1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/UIFramework/UIDatabase.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5eeec4eba95854c9884f978b21c83ddd 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/UIFramework/UIPanel.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 72afa16af1cfb4d2d867d01c268f73e8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Extensions/EngineExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 37945d57733f54176a2efa70795d1cac 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Renderer/MotionBlurActivator.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 16d8c8e81c85b8f48b2350f948eec1f4 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/UIFramework/IUIComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: af81a602011324b5695b85c90651d5a9 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/UIFramework/UIPanelState.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3f1f8557dc059400e9dbe0856c33b6ce 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Components/CharacterController2D.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 04ea84239b68e4b5b87d27f082b84bfb 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Debugger/Base/DebuggerException.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: daa271163892143a89c13e6439a00d68 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Debugger/Base/DebuggerManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1a489039f6b2442ea8ea1f0ffc81c920 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Debugger/Base/IDebuggerManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c184ff8a170594f94bd3f1380eed2e15 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Debugger/Base/IDebuggerWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c51fd3d1e561341abbbbf9eeeb2ed19f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Debugger/Base/Utility/Utility.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 22f12b971514243798023dbb7f296e53 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/ObjectPool/EasyGameObjectPool.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 21532917fc3554ebb905eaaa781cf31a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/ObjectPool/GameObjectPoolManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 52899203086bf4e2da5a6fbab0066b04 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Thread/UnityMainThreadDispatcher.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d3f54d256ca1b4771b1108c0b718dd12 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Editor/LoopScrollRect/LoopScrollRectInspector.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c8549bb86ad2440999788ef43dcb2927 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Editor/LoopScrollRect/ScrollListMenuOptions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b8774cfacce9f4a8eaf95691b73d1479 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Collections/SerializableDictionary.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d293a831e5d7b4157a1d94749e2f5869 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Debugger/Base/IDebuggerWindowGroup.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fcaaf018e7ee1465bbcacfe4d325b423 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Debugger/Base/ReferencePool/IReference.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 88a52986a2f6a4c07a5ab8406ec561f0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Debugger/Base/Utility/Utility.Assembly.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 36b74abcb26b948be8dfa4327311ab5e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Debugger/Base/Utility/Utility.Text.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8b9aa0cb15bf147df87fa9a4aeec25f2 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Debugger/Component/DebuggerComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eca3e9ae7e3f54db1acc90d1bb809326 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Renderer/StencilBufferRenderFeature.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d098ee0ca287a4017937ea95745875dd 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/UIFramework/UIComponents/HealthBar.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fd300871e33ff40a1a36b97c54b6f469 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/UIFramework/UIComponents/ProgressBar.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5651f49904d634ec78bb5fb296b43da6 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Editor/LoopScrollRect/ScrollListDefaultControls.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9e38d0c05d2864e22a4e65231258807e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Debugger/Base/ReferencePool/ReferencePool.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d1034f19110e3417982834472972dc9d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Debugger/Base/Utility/Utility.Converter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5330e5a4d27ee4a379164fa8bdfc9bb3 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Debugger/Component/DebuggerActiveWindowType.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ff98e96b7f3cd451880f10fe06fa027b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/UIFramework/LoopScrollRect/LoopScrollRect.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d02a2156980db42c79bc10e4dadc554f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/UIFramework/UIComponents/NonDrawGraphic.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ebcd7e9cd19db4c1baab7a4a97f15c1a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Core/Network/Core/Server/IServerSystem.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | using UnityToolkit; 4 | 5 | namespace Network.Server 6 | { 7 | public interface IServerSystem : ISystem, IOnInit 8 | { 9 | } 10 | } -------------------------------------------------------------------------------- /Runtime/Debugger/Base/ReferencePool/ReferencePoolInfo.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 141c6f5587f57437889ddc6e08994653 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Debugger/Base/Utility/Utility.Text.ITextHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b4f4589ee8b134c07a63f51e7d2eb8ce 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Debugger/Component/DebuggerComponent.FpsCounter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cc08fbc5682da4edb8d487db8d454057 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Debugger/Component/DebuggerComponent.LogNode.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b6a8d1b085ec944ab813cb2c10123f65 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/UIFramework/LoopScrollRect/LoopScrollRectBase.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4d92588a39bd7426e99ea97be75d10b7 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/UIFramework/LoopScrollRect/LoopScrollRectMulti.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2b84d3ceb3b444e79af1f5564fd7a55e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Debugger/Base/DebuggerManager.DebuggerWindowGroup.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b05cbae9ad45c4893a2f7e7a4769ba4e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Debugger/Component/DebuggerComponent.ConsoleWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4f38063008a6140489fe65b96eaca8e2 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/UIFramework/LoopScrollRect/LoopHorizontalScrollRect.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c641b66f55b01473e907f7febaa37079 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/UIFramework/LoopScrollRect/LoopVerticalScrollRect.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 62eee3c6222524dafab64c84e478f2a8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Debugger/Component/DebuggerComponent.TimeInformationWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 274c36c268537402d89f9eb675125354 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/UIFramework/LoopScrollRect/LoopHorizontalScrollRectMulti.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 10cde10b268c8411ab2ffb4bdc4586f0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/UIFramework/LoopScrollRect/LoopVerticalScrollRectMulti.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a5ecfe668f35245309a6378ac47c07e7 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Core/Network/Core/Client/IClientSystem.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | using UnityToolkit; 4 | 5 | namespace Network.Client 6 | { 7 | public interface IClientSystem: ISystem,IOnInit 8 | { 9 | 10 | } 11 | } -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/kcp/AckItem.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | namespace kcp2k 4 | { 5 | internal struct AckItem 6 | { 7 | internal uint serialNumber; 8 | internal uint timestamp; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Runtime/Debugger/Base/ReferencePool/ReferencePool.ReferenceCollection.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aac4739e4ac554fb3adfc4ce3acaa7d0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Debugger/Component/DebuggerComponent.GraphicsInformationWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b1aa2757106d9447cafe9f719b786a66 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Debugger/Component/DebuggerComponent.ProfilerInformationWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: df1c9721d07a84c4da40b318a5814b03 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Debugger/Component/DebuggerComponent.QualityInformationWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b9feb9448d0c64078af10b39a69fdabf 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Debugger/Component/DebuggerComponent.RuntimeMemorySummaryWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7191537817c284bfdbc77507df5a0a23 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Debugger/Component/DebuggerComponent.SceneInformationWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 190787c215f7f4da487c92d29ba77891 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Debugger/Component/DebuggerComponent.ScreenInformationWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c128c5517d3a249049da4b1231f610a4 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Debugger/Component/DebuggerComponent.SystemInformationWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 574fbac34ca7c42fcb255c85f46ddad6 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Debugger/Component/DebuggerComponent.WebPlayerInformationWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e0976237f309846619044764c4f0da7a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Shader/DitherPass.shadergraph.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 614bdae6e9cea4f54ba14e86312b06b0 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3} 11 | -------------------------------------------------------------------------------- /Runtime/Shader/MotionBlur.shadergraph.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b4dfdb4dface4e1459a4f88b83a480af 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3} 11 | -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/telepathy/EventType.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | namespace Network.Telepathy 4 | { 5 | public enum EventType 6 | { 7 | Connected, 8 | Data, 9 | Disconnected 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Runtime/Debugger/Base/Utility/Utility.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | namespace UnityToolkit.Debugger 4 | { 5 | /// 6 | /// 实用函数集。 7 | /// 8 | public static partial class Utility 9 | { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Runtime/Debugger/Component/DebuggerComponent.InputCompassInformationWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1937e0b6be55b45b6a6b4bce80fb4aee 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Debugger/Component/DebuggerComponent.InputGyroscopeInformationWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 655646fbf46a54aafbb07ca8b7e90b4f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Debugger/Component/DebuggerComponent.InputLocationInformationWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 46103fde56942407a81f7303ea155140 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Debugger/Component/DebuggerComponent.InputSummaryInformationWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 609f02ee4320d4d629570149f1fd176c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Debugger/Component/DebuggerComponent.InputTouchInformationWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9c6e500bac8a641d190a6833ec356576 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Debugger/Component/DebuggerComponent.ReferencePoolInformationWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4f520e6afbc354dd8ae92d2b4db308b8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Debugger/Component/DebuggerComponent.RuntimeMemoryInformationWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ddbcffa74651241aaa77b0cdbc70ca17 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Debugger/Component/DebuggerComponent.ScrollableDebuggerWindowBase.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 30648248f51ee45c9b3d94a913d21de2 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Debugger/Component/DebuggerComponent.InputAccelerationInformationWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d3aaf5366d8774c54bec315529ab424a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Debugger/Component/DebuggerComponent.RuntimeMemorySummaryWindow.Record.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 71997b982566946588a6dd697e876661 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Debugger/Component/DebuggerComponent.RuntimeMemoryInformationWindow.Sample.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f90d85ba2d03f4757b63db9272f15d83 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Capabilities/ETickGroup.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | using System; 4 | 5 | namespace Capabilities 6 | { 7 | public enum ETickGroup : int 8 | { 9 | NetworkEarly, 10 | Input, 11 | Gameplay, 12 | AfterGameplay, 13 | NetworkLate, 14 | } 15 | } -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "com.nicoier.unitytoolkit", 3 | "version": "1.0.0", 4 | "displayName": "Unity Toolkit", 5 | "description": "Toolkit for Unity", 6 | "unity": "2021.3", 7 | "dependencies": { 8 | }, 9 | "keywords": [ 10 | "Toolkit", 11 | "UIFramework" 12 | ], 13 | "author": { 14 | "name": "nicoier", 15 | "email": "nicoier@163.com", 16 | "url": "https://nicoier.github.io/" 17 | } 18 | } -------------------------------------------------------------------------------- /Core/Network/Core/Shared/NetworkQuality.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | namespace Network 4 | { 5 | public enum NetworkQuality : byte 6 | { 7 | Excellent, // 1-30ms 8 | Good, // 31-60ms 9 | Normal, // 61-100ms 10 | Poor, // 101-200ms 11 | Bad, // >200ms 12 | } 13 | } -------------------------------------------------------------------------------- /Capabilities/Runtime/CapabilityAsset.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | #if UNITY_2017_1_OR_NEWER 4 | using UnityEngine; 5 | 6 | namespace Capabilities 7 | { 8 | public abstract class CapabilityAsset : ScriptableObject 9 | { 10 | public abstract ICapability[] GetDependencies(); 11 | } 12 | } 13 | #endif -------------------------------------------------------------------------------- /Capabilities/Runtime/ConfigAsset.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | #if UNITY_2017_1_OR_NEWER 4 | using System.Collections.Generic; 5 | using UnityEngine; 6 | 7 | namespace Capabilities 8 | { 9 | public abstract class ConfigAsset : ScriptableObject 10 | { 11 | public abstract IConfig[] GetDependencies(); 12 | } 13 | } 14 | #endif -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/kcp/KcpChannel.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | namespace kcp2k 4 | { 5 | // channel type and header for raw messages 6 | public enum KcpChannel : byte 7 | { 8 | // don't react on 0x00. might help to filter out random noise. 9 | Reliable = 1, 10 | Unreliable = 2 11 | } 12 | } -------------------------------------------------------------------------------- /Runtime/Debugger/Base/ReferencePool/IReference.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | namespace UnityToolkit.Debugger 4 | { 5 | /// 6 | /// 引用接口。 7 | /// 8 | public interface IReference 9 | { 10 | /// 11 | /// 清理引用。 12 | /// 13 | void Clear(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Editor/UnityToolkit.Editor.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "UnityToolkit.Editor", 3 | "rootNamespace": "UnityToolkit.Editor", 4 | "references": [ 5 | "UnityToolkit" 6 | ], 7 | "includePlatforms": [ 8 | "Editor" 9 | ], 10 | "excludePlatforms": [], 11 | "allowUnsafeCode": false, 12 | "overrideReferences": false, 13 | "precompiledReferences": [], 14 | "autoReferenced": true, 15 | "defineConstraints": [], 16 | "versionDefines": [], 17 | "noEngineReferences": false 18 | } -------------------------------------------------------------------------------- /Core/PriorityQueue/StablePriorityQueueNode.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | namespace UnityToolkit 4 | { 5 | public class StablePriorityQueueNode : FastPriorityQueueNode 6 | { 7 | /// 8 | /// Represents the order the node was inserted in 9 | /// 10 | public long InsertionIndex { get; internal set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Core/FibonacciHeap/README.md: -------------------------------------------------------------------------------- 1 | # Fibonacci Heap 2 | 3 | A [Fibonacci Heap](https://en.wikipedia.org/wiki/Fibonacci_heap) is a data structure modelling a priority queue. The implemenation is generic like System.Collection.Generic types. 4 | 5 | ## Example 6 | 7 | ```csharp 8 | // a heap with objects for data and int as sorting key. 9 | var heap = new FibonacciHeap(0); 10 | 11 | var nodeToInsert = new FibonacciHeapNoe(new object(), -42); 12 | 13 | heap.Insert(nodeToInsert); 14 | ``` -------------------------------------------------------------------------------- /Runtime/UIFramework/UIPanelState.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | namespace UnityToolkit 4 | { 5 | /// 6 | /// UI面板状态 7 | /// 8 | public enum UIPanelState 9 | { 10 | None, 11 | Loaded, // 已加载 12 | Opening, // 打开中 13 | Opened, // 已打开 14 | Closing, // 关闭中 15 | Closed, // 已关闭 16 | Disposing // 销毁中 17 | } 18 | 19 | } -------------------------------------------------------------------------------- /Capabilities/Runtime/ComponentAsset.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | #if UNITY_2017_1_OR_NEWER 4 | using System.Collections.Generic; 5 | using UnityEngine; 6 | 7 | namespace Capabilities 8 | { 9 | public abstract class ComponentAsset : ScriptableObject 10 | { 11 | public abstract IEnumerable GetDependencies(); 12 | public abstract int GetDependencyCount(); 13 | } 14 | } 15 | #endif -------------------------------------------------------------------------------- /Runtime/Config/AnimationCurveScriptableObject.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | #if UNITY_2021_3_OR_NEWER 4 | 5 | using UnityEngine; 6 | 7 | namespace UnityToolkit 8 | { 9 | [CreateAssetMenu(fileName = "AnimationCurve", menuName = "Toolkit/AnimationCurve")] 10 | public class AnimationCurveScriptableObject : ScriptableObject 11 | { 12 | public AnimationCurve curve; 13 | } 14 | } 15 | #endif 16 | -------------------------------------------------------------------------------- /Core/Network/Core/Client/IClientHandler.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | using System; 4 | 5 | namespace Network.Client 6 | { 7 | public interface IClientHandler 8 | { 9 | void OnConnected(); 10 | void OnDataReceived(ArraySegment data); 11 | void OnDisconnected(); 12 | void OnDataSent(ArraySegment data); 13 | 14 | void OnUpdate(in float deltaTime); 15 | } 16 | } -------------------------------------------------------------------------------- /Runtime/UnityToolkit.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "UnityToolkit", 3 | "rootNamespace": "UnityToolkit", 4 | "references": [ 5 | "Unity.TextMeshPro", 6 | "Unity.RenderPipelines.Universal.Runtime", 7 | "Unity.RenderPipelines.Core.Runtime" 8 | ], 9 | "includePlatforms": [], 10 | "excludePlatforms": [], 11 | "allowUnsafeCode": true, 12 | "overrideReferences": false, 13 | "precompiledReferences": [], 14 | "autoReferenced": false, 15 | "defineConstraints": [], 16 | "versionDefines": [], 17 | "noEngineReferences": false 18 | } -------------------------------------------------------------------------------- /Core/Network/Core/Shared/NetworkAuthority.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | namespace Network 4 | { 5 | // public enum NetworkAuthority : byte 6 | // { 7 | // ServerOnly, 8 | // ClientOnly, 9 | // Both 10 | // } 11 | 12 | public enum SyncMode 13 | { 14 | Observers, 15 | Owner 16 | } 17 | 18 | public enum SyncDirection 19 | { 20 | ServerToClient, 21 | ClientToServer 22 | } 23 | } -------------------------------------------------------------------------------- /Core/Network/Core/Server/IServerHandler.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | using System; 4 | 5 | namespace Network.Server 6 | { 7 | public interface IServerHandler 8 | { 9 | void OnConnected(int connectionId); 10 | void OnDataReceived(int connectionId, ArraySegment data); 11 | void OnDisconnected(int connectionId); 12 | void OnDataSent(int connectionId, ArraySegment data); 13 | 14 | void OnUpdate(float deltaTime); 15 | } 16 | } -------------------------------------------------------------------------------- /Runtime/Shader/StencilOnly.shader: -------------------------------------------------------------------------------- 1 | Shader "Hidden/CustomRP/StencilOnly" 2 | { 3 | Properties 4 | { 5 | [IntRange] _StencilID ("Stencil ID", Range(0, 255)) = 2 6 | } 7 | 8 | SubShader 9 | { 10 | // Tags { "RenderType"="Opaque" "Queue"="Geometry-1" "RenderPipeline" = "UniversalPipeline"} 11 | 12 | Pass 13 | { 14 | Blend Zero One 15 | ZWrite Off 16 | 17 | Stencil 18 | { 19 | Ref [_StencilID] 20 | Comp Always 21 | Pass Replace 22 | } 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | using System.Reflection; 4 | using System.Runtime.CompilerServices; 5 | 6 | [assembly: AssemblyDescription("A collection of useful classes and functions for Unity.")] 7 | [assembly: AssemblyCopyright("Copyright © NicoIer@163.com 2022")] 8 | [assembly: AssemblyTrademark("")] 9 | [assembly: AssemblyCulture("")] 10 | 11 | [assembly: InternalsVisibleTo("UnityToolkit.Editor")] 12 | [assembly: InternalsVisibleTo("ToolkitTest")] 13 | [assembly: InternalsVisibleTo("Character")] -------------------------------------------------------------------------------- /Runtime/Components/ParticleSystemAnimationEventTrigger.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | #if UNITY_2021_3_OR_NEWER 4 | using UnityEngine; 5 | 6 | namespace UnityToolkit 7 | { 8 | internal class ParticleSystemAnimationEventTrigger : MonoBehaviour 9 | { 10 | [field: SerializeField] public ParticleSystem particleSystem { get; private set; } 11 | 12 | public void Play() 13 | { 14 | if (particleSystem != null) 15 | { 16 | particleSystem.Play(); 17 | } 18 | } 19 | } 20 | } 21 | #endif -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Math/Vector4.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | 4 | using System; 5 | using MemoryPack; 6 | 7 | namespace UnityToolkit.MathTypes 8 | { 9 | [MemoryPackable] 10 | [Serializable] 11 | public partial struct Vector4 12 | { 13 | public float x; 14 | public float y; 15 | public float z; 16 | public float w; 17 | 18 | public Vector4(float x, float y, float z, float w) 19 | { 20 | this.x = x; 21 | this.y = y; 22 | this.z = z; 23 | this.w = w; 24 | } 25 | } 26 | } -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/kcp/Log.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | // A simple logger class that uses Console.WriteLine by default. 4 | // Can also do Logger.LogMethod = Debug.Log for Unity etc. 5 | // (this way we don't have to depend on UnityEngine) 6 | using System; 7 | using Network; 8 | 9 | namespace kcp2k 10 | { 11 | internal static class Log 12 | { 13 | public static Action Info = NetworkLogger.Info; 14 | public static Action Warning = NetworkLogger.Warning; 15 | public static Action Error = NetworkLogger.Error; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Runtime/Shader/MotionBlurFunction.hlsl: -------------------------------------------------------------------------------- 1 | #include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Common.hlsl" 2 | #include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Texture.hlsl" 3 | 4 | void DoMotionBlur_float(UnityTexture2D colorTex,float maxSamples, float2 UV,float2 velocity, out float4 result) 5 | { 6 | float nSamples = maxSamples; 7 | result = SAMPLE_TEXTURE2D(colorTex.tex , sampler_LinearClamp ,UV); 8 | 9 | [unroll(100)] for (int i = 1; i < nSamples; ++i) { 10 | float2 offset = velocity * (float(i) / float(nSamples - 1) - 0.5); 11 | result += SAMPLE_TEXTURE2D(colorTex.tex , sampler_LinearClamp,UV + offset); 12 | 13 | } 14 | result /= float(nSamples); 15 | } -------------------------------------------------------------------------------- /Runtime/Extensions/GameObjectExtensions.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | #if UNITY_5_6_OR_NEWER 4 | using UnityEngine; 5 | 6 | namespace UnityToolkit 7 | { 8 | public static class GameObjectExtensions 9 | { 10 | public static string FullPath(this GameObject gameObject) 11 | { 12 | string path = gameObject.name; 13 | Transform parent = gameObject.transform.parent; 14 | while (parent != null) 15 | { 16 | path = parent.name + "/" + path; 17 | parent = parent.parent; 18 | } 19 | 20 | return path; 21 | } 22 | } 23 | } 24 | #endif -------------------------------------------------------------------------------- /Runtime/ObjectPool/StackPool.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | #if UNITY_5_6_OR_NEWER 4 | using System.Collections.Generic; 5 | using UnityEngine.Pool; 6 | 7 | namespace UnityToolkit 8 | { 9 | public static class StackPool 10 | { 11 | private static readonly ObjectPool> s_pool = 12 | new ObjectPool>(() => new Stack(), null, s => s.Clear()); 13 | 14 | public static Stack Get() 15 | { 16 | return s_pool.Get(); 17 | } 18 | 19 | public static void Release(Stack stack) 20 | { 21 | s_pool.Release(stack); 22 | } 23 | } 24 | } 25 | #endif -------------------------------------------------------------------------------- /Runtime/UIFramework/UILayer.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | #if UNITY_5_6_OR_NEWER 4 | using System; 5 | using UnityEngine; 6 | using UnityEngine.Serialization; 7 | 8 | namespace UnityToolkit 9 | { 10 | [RequireComponent(typeof(CanvasGroup))] 11 | public partial class UILayer : MonoBehaviour 12 | { 13 | public RectTransform rectTransform { get; private set; } 14 | public CanvasGroup canvasGroup { get; private set; } 15 | 16 | private void Awake() 17 | { 18 | canvasGroup = GetComponent(); 19 | rectTransform = GetComponent(); 20 | } 21 | } 22 | } 23 | #endif 24 | -------------------------------------------------------------------------------- /Core/Network/Core/Shared/NetworkLogger.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | // A simple logger class that uses Console.WriteLine by default. 4 | // Can also do Logger.LogMethod = Debug.Log for Unity etc. 5 | // (this way we don't have to depend on UnityEngine) 6 | 7 | using System; 8 | using UnityToolkit; 9 | 10 | namespace Network 11 | { 12 | internal static class NetworkLogger 13 | { 14 | internal static Action Debug = ToolkitLog.Debug; 15 | internal static Action Info = ToolkitLog.Info; 16 | internal static Action Warning = ToolkitLog.Warning; 17 | internal static Action Error = ToolkitLog.Error; 18 | } 19 | } -------------------------------------------------------------------------------- /Runtime/UIFramework/UIComponents/ProgressText.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | #if UNITY_5_6_OR_NEWER 4 | using System; 5 | using TMPro; 6 | using UnityEngine; 7 | 8 | namespace UnityToolkit 9 | { 10 | [ExecuteAlways] 11 | public class ProgressText : MonoBehaviour, IUIComponent 12 | { 13 | [SerializeField] private TextMeshProUGUI value; 14 | [SerializeField] private TextMeshProUGUI maxValue; 15 | 16 | [SerializeField] private ProgressBar _progressBar; 17 | 18 | private void Update() 19 | { 20 | value.text = _progressBar.Value.ToString("F0"); 21 | maxValue.text = _progressBar.Max.ToString("F0"); 22 | } 23 | } 24 | } 25 | #endif -------------------------------------------------------------------------------- /Core/Toolkit.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | using System; 4 | using System.Threading; 5 | 6 | namespace UnityToolkit 7 | { 8 | public static class Toolkit 9 | { 10 | public static uint IncreaseId(uint current) 11 | { 12 | #if NET8_0 13 | Interlocked.Increment(ref current); 14 | #else 15 | long cur = current; // uint 转long 不会丢失精度 16 | Interlocked.Increment(ref cur); // 如果是NetStandard2.0 则用long进行增加 17 | current = (uint)cur; // 然后再转回uint 18 | #endif 19 | return current; 20 | } 21 | } 22 | 23 | public static class EnumHelper 24 | { 25 | public static readonly T[] keys = (T[])Enum.GetValues(typeof(T)); 26 | } 27 | } -------------------------------------------------------------------------------- /Runtime/Debugger/Component/DebuggerActiveWindowType.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | namespace UnityToolkit.Debugger 4 | { 5 | /// 6 | /// 调试器激活窗口类型。 7 | /// 8 | public enum DebuggerActiveWindowType : byte 9 | { 10 | /// 11 | /// 总是打开。 12 | /// 13 | AlwaysOpen = 0, 14 | 15 | /// 16 | /// 仅在开发模式时打开。 17 | /// 18 | OnlyOpenWhenDevelopment, 19 | 20 | /// 21 | /// 仅在编辑器中打开。 22 | /// 23 | OnlyOpenInEditor, 24 | 25 | /// 26 | /// 总是关闭。 27 | /// 28 | AlwaysClose, 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Core/Network/Core/Client/IClientSocket.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | using System; 4 | 5 | namespace Network.Client 6 | { 7 | public interface IClientSocket 8 | { 9 | public bool connecting { get; } 10 | public bool connected { get; } 11 | public event Action OnConnected; 12 | public event Action> OnDataReceived; 13 | public event Action OnDisconnected; 14 | public event Action> OnDataSent; 15 | 16 | public void TickIncoming(); 17 | public void TickOutgoing(); 18 | 19 | public void Connect(Uri uri); 20 | 21 | public void Send(ArraySegment data); 22 | public void Disconnect(); 23 | } 24 | } -------------------------------------------------------------------------------- /Core/LazySingleton.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | using System; 4 | 5 | namespace UnityToolkit 6 | { 7 | public class LazySingleton : IDisposable where T : new() 8 | { 9 | private static readonly Lazy s_instance = new Lazy(() => 10 | { 11 | T t = new T(); 12 | if (t is IOnInit init) 13 | { 14 | init.OnInit(); 15 | } 16 | 17 | return t; 18 | }); 19 | 20 | public static T Singleton => s_instance.Value; 21 | 22 | public virtual void Dispose() 23 | { 24 | if (Singleton is IDisposable disposable) 25 | { 26 | disposable.Dispose(); 27 | } 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Messages/NetworkPacket.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | using System; 4 | using MemoryPack; 5 | 6 | namespace Network 7 | { 8 | /// 9 | /// 网络数据包 10 | /// 11 | [MemoryPackable] 12 | internal partial struct NetworkPacket : INetworkMessage 13 | { 14 | /// 15 | /// 携带数据的类型id 16 | /// 17 | public readonly ushort id; 18 | 19 | /// 20 | /// 携带数据的对应的二进制数据 21 | /// 22 | public ArraySegment payload; 23 | 24 | public NetworkPacket(ushort id, ArraySegment payload) 25 | { 26 | this.id = id; 27 | this.payload = payload; 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /Runtime/UIFramework/UIComponents/NonDrawGraphic.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | #if UNITY_5_6_OR_NEWER 4 | 5 | using UnityEngine; 6 | using UnityEngine.UI; 7 | 8 | namespace UnityToolkit 9 | { 10 | [RequireComponent(typeof(CanvasRenderer))] 11 | [AddComponentMenu("Layout/Extensions/NonDrawingGraphic")] 12 | public class NonDrawGraphic : MaskableGraphic, IUIComponent 13 | { 14 | public override void SetMaterialDirty() 15 | { 16 | return; 17 | } 18 | 19 | public override void SetVerticesDirty() 20 | { 21 | return; 22 | } 23 | 24 | protected override void OnPopulateMesh(VertexHelper vh) 25 | { 26 | vh.Clear(); 27 | } 28 | } 29 | } 30 | 31 | #endif -------------------------------------------------------------------------------- /Editor/UIDataBaseAssetHandler.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | #if UNITY_EDITOR 4 | using System; 5 | using UnityEditor; 6 | using UnityEditor.Callbacks; 7 | using UnityEngine; 8 | 9 | namespace UnityToolkit.Editor 10 | { 11 | public static class UIDataBaseAssetHandler 12 | { 13 | [OnOpenAsset] 14 | public static bool OnOpenAsset(int instanceId, int line) 15 | { 16 | if (EditorUtility.InstanceIDToObject(instanceId) is UIDatabase asset) 17 | { 18 | Debug.LogWarning("Open UIPanelDatabase not implemented yet."); 19 | // UIDataBaseEditorWindow.ShowWindow(asset); 20 | // return true; 21 | } 22 | 23 | return false; 24 | } 25 | } 26 | } 27 | #endif -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/kcp/ErrorCode.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | // kcp specific error codes to allow for error switching, localization, 4 | // translation to Mirror errors, etc. 5 | namespace kcp2k 6 | { 7 | public enum ErrorCode : byte 8 | { 9 | DnsResolve, // failed to resolve a host name 10 | Timeout, // ping timeout or dead link 11 | Congestion, // more messages than transport / network can process 12 | InvalidReceive, // recv invalid packet (possibly intentional attack) 13 | InvalidSend, // user tried to send invalid data 14 | ConnectionClosed, // connection closed voluntarily or lost involuntarily 15 | Unexpected // unexpected error / exception, requires fix. 16 | } 17 | } -------------------------------------------------------------------------------- /Core/SystemUtil.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | using System; 4 | using System.Net.NetworkInformation; 5 | 6 | namespace UnityToolkit 7 | { 8 | public static class SystemUtil 9 | { 10 | public static string MacAddress() 11 | { 12 | NetworkInterface[] interfaces = NetworkInterface.GetAllNetworkInterfaces(); 13 | foreach (NetworkInterface adapter in interfaces) 14 | { 15 | if (adapter.NetworkInterfaceType == NetworkInterfaceType.Ethernet || adapter.NetworkInterfaceType == NetworkInterfaceType.Wireless80211) 16 | { 17 | return adapter.GetPhysicalAddress().ToString(); 18 | } 19 | } 20 | return string.Empty; 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Runtime/PathFind/Path.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | using System; 4 | using System.Collections; 5 | using System.Collections.Generic; 6 | 7 | namespace UnityToolkit 8 | { 9 | [Serializable] 10 | public class Path 11 | { 12 | private IReadOnlyList internalList; 13 | 14 | public Path(IReadOnlyList content) 15 | { 16 | internalList = content; 17 | } 18 | 19 | public int this[int index] => internalList[index]; 20 | 21 | public int Count 22 | { 23 | get 24 | { 25 | if(internalList == null) 26 | { 27 | return 0; 28 | } 29 | return internalList.Count; 30 | } 31 | } 32 | } 33 | } -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Messages/NetworkId.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | using System; 4 | using System.Runtime.CompilerServices; 5 | 6 | namespace Network 7 | { 8 | /// 9 | /// 比dict更快 10 | /// 11 | /// 12 | public static class NetworkId 13 | { 14 | public static readonly ushort Value = NetworkId.CalculateId(); 15 | } 16 | 17 | public static class NetworkId 18 | { 19 | [MethodImpl(MethodImplOptions.AggressiveInlining)] 20 | public static ushort CalculateId() => typeof(T).FullName.GetStableHashCode16(); 21 | [MethodImpl(MethodImplOptions.AggressiveInlining)] 22 | public static ushort CalculateId(Type type) => type.FullName.GetStableHashCode16(); 23 | } 24 | } -------------------------------------------------------------------------------- /Core/Network/Broadcast/Messages.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | using System; 4 | using MemoryPack; 5 | 6 | namespace Network.Broadcast 7 | { 8 | [MemoryPackable] 9 | public partial struct BroadcastMessage : INetworkMessage 10 | { 11 | public int senderId; 12 | public ArraySegment payload; 13 | } 14 | 15 | [MemoryPackable] 16 | public partial struct BroadcastTargetedMessage : INetworkMessage 17 | { 18 | public int senderId; 19 | public ArraySegment targetIds; 20 | public ArraySegment payload; 21 | } 22 | 23 | 24 | [MemoryPackable] 25 | public partial struct BroadcastNearbyMessage : INetworkMessage 26 | { 27 | public int senderId; 28 | public ArraySegment payload; 29 | } 30 | } -------------------------------------------------------------------------------- /Core/PriorityQueue/FastPriorityQueueNode.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | using System; 4 | 5 | namespace UnityToolkit 6 | { 7 | public class FastPriorityQueueNode 8 | { 9 | /// 10 | /// The Priority to insert this node at. 11 | /// Cannot be manually edited - see queue.Enqueue() and queue.UpdatePriority() instead 12 | /// 13 | public float Priority { get; protected internal set; } 14 | 15 | /// 16 | /// Represents the current position in the queue 17 | /// 18 | public int QueueIndex { get; internal set; } 19 | 20 | #if DEBUG 21 | /// 22 | /// The queue this node is tied to. Used only for debug builds. 23 | /// 24 | public object Queue { get; internal set; } 25 | #endif 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Runtime/Physics/Physics3DHelper.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | #if UNITY_5_6_OR_NEWER 4 | using UnityEngine; 5 | 6 | namespace UnityToolkit 7 | { 8 | public static class Physics3DHelper 9 | { 10 | /// 11 | /// Check if the point is inside the box collider. 12 | /// 13 | /// 14 | /// 15 | /// 16 | public static bool Contains(this BoxCollider collider,Vector3 point) 17 | { 18 | Vector3 localPoint = collider.transform.InverseTransformPoint(point); 19 | Vector3 halfSize = collider.size * 0.5f; 20 | return Mathf.Abs(localPoint.x) <= halfSize.x && Mathf.Abs(localPoint.y) <= halfSize.y && Mathf.Abs(localPoint.z) <= halfSize.z; 21 | } 22 | } 23 | } 24 | #endif -------------------------------------------------------------------------------- /Core/Network/Empty/NetworkEntityMgr.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | // using System.Collections.Generic; 4 | // 5 | // namespace Network 6 | // { 7 | // public class NetworkEntityMgr 8 | // { 9 | // public readonly Dictionary ownedEntities; 10 | // public NetworkEntityMgr() 11 | // { 12 | // ownedEntities = new Dictionary(); 13 | // } 14 | // 15 | // public void Add(NetworkEntity entity) 16 | // { 17 | // ownedEntities.Add(entity.id,entity); 18 | // } 19 | // 20 | // public void Remove(NetworkEntity entity) 21 | // { 22 | // ownedEntities.Remove(entity.id); 23 | // } 24 | // 25 | // public void Clear() 26 | // { 27 | // ownedEntities.Clear(); 28 | // } 29 | // } 30 | // } -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Math/MathToolkit.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | #if UNITY_5_6_OR_NEWER 4 | namespace UnityToolkit 5 | { 6 | public static class MathToolkit 7 | { 8 | public static UnityEngine.Quaternion T(this System.Numerics.Quaternion q) 9 | { 10 | return new UnityEngine.Quaternion(q.X, q.Y, q.Z, q.W); 11 | } 12 | 13 | public static UnityEngine.Vector3 T(this System.Numerics.Vector3 v) 14 | { 15 | return new UnityEngine.Vector3(v.X, v.Y, v.Z); 16 | } 17 | 18 | public static System.Numerics.Quaternion T(this UnityEngine.Quaternion q) 19 | { 20 | return new System.Numerics.Quaternion(q.x, q.y, q.z, q.w); 21 | } 22 | 23 | public static System.Numerics.Vector3 T(this UnityEngine.Vector3 v) 24 | { 25 | return new System.Numerics.Vector3(v.x, v.y, v.z); 26 | } 27 | } 28 | } 29 | #endif -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 NicoIer 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Runtime/System/ScreenRotationSystem.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | #if UNITY_2021_3_OR_NEWER 4 | 5 | using UnityEngine; 6 | using UnityToolkit; 7 | using Screen = UnityEngine.Device.Screen; 8 | 9 | namespace UnityToolkit 10 | { 11 | [System.Serializable] 12 | public struct ScreenRotationSystem : ISystem, IOnUpdate 13 | { 14 | public void OnUpdate(float deltaTime) 15 | { 16 | if (Screen.orientation == ScreenOrientation.Portrait || 17 | Screen.orientation == ScreenOrientation.PortraitUpsideDown) 18 | { 19 | Screen.orientation = ScreenOrientation.AutoRotation; 20 | Screen.autorotateToLandscapeRight = true; 21 | Screen.autorotateToLandscapeLeft = true; 22 | Screen.autorotateToPortraitUpsideDown = false; 23 | Screen.autorotateToPortrait = false; 24 | } 25 | } 26 | 27 | public void Dispose() 28 | { 29 | } 30 | } 31 | } 32 | #endif 33 | -------------------------------------------------------------------------------- /Runtime/Shader/UnityToolkit.hlsl: -------------------------------------------------------------------------------- 1 | 2 | // URP下的环境光颜色 3 | // half3 AambientColor() 4 | // { 5 | // return _GlossyEnvironmentColor.rgb; 6 | // // return half3(unity_SHAr.w, unity_SHAg.w, unity_SHAb.w); 7 | // } 8 | 9 | half luminance(float3 color) 10 | { 11 | // 计算颜色灰度值 12 | // 0.2125,0.7154,0.0721 13 | return color.r * 0.2125 + color.g * 0.7154 + color.b * 0.0721; 14 | } 15 | 16 | // 兰伯特漫反射光照模型 17 | half LambertDiffuse(float3 normal, float3 lightDir) 18 | { 19 | // 点乘的意义是计算光线和法线的夹角 20 | // dot(A, B) = |A| * |B| * cosθ 21 | // saturate函数的作用是将值限制在0-1之间 22 | // cosθ的值域是[-1, 1],所以需要使用saturate函数将值限制在[0, 1]之间 23 | // 负数不满足光照模型,所以需要将负数转换为0 24 | return saturate(dot(normal, lightDir)); 25 | } 26 | 27 | half HalfLambdaDiffuse(float3 normal, float3 lightDir) 28 | { 29 | return saturate(dot(normal, lightDir) * 0.5 + 0.5); 30 | } 31 | 32 | // // 讲一个物体空间的法线转换为世界空间的法线 33 | // half3 ObjectToWorldNormal(float3 normalOS) 34 | // { 35 | // // unity_WorldToObject是一个float4x4矩阵,表示从世界坐标系到物体坐标系的转换矩阵 36 | // // 为什么是右乘? 1*3 * 3*3 = 1*3 只有右乘才能保证矩阵乘法的正确性 37 | // return normalize(mul(normalOS, (float3x3)unity_WorldToObject)); 38 | // } -------------------------------------------------------------------------------- /Core/IOCContainer.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | using System; 4 | using System.Collections.Generic; 5 | 6 | namespace UnityToolkit 7 | { 8 | /// 9 | /// 类型注册容器 10 | /// 11 | public sealed class IOCContainer 12 | { 13 | private readonly Dictionary _mInstances = new Dictionary(); 14 | 15 | public void Set(T instance) 16 | { 17 | var key = typeof(T); 18 | _mInstances[key] = instance; 19 | } 20 | 21 | public bool Get(out T t) 22 | { 23 | var key = typeof(T); 24 | 25 | if (_mInstances.TryGetValue(key, out var retInstance)) 26 | { 27 | t = (T)retInstance; 28 | return true; 29 | } 30 | 31 | t = default(T); 32 | return false; 33 | } 34 | 35 | public void Remove() 36 | { 37 | var key = typeof(T); 38 | _mInstances.Remove(key); 39 | } 40 | } 41 | } -------------------------------------------------------------------------------- /Core/PriorityQueue/GenericPriorityQueueNode.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | namespace UnityToolkit 4 | { 5 | public class GenericPriorityQueueNode 6 | { 7 | /// 8 | /// The Priority to insert this node at. 9 | /// Cannot be manually edited - see queue.Enqueue() and queue.UpdatePriority() instead 10 | /// 11 | public TPriority Priority { get; protected internal set; } 12 | 13 | /// 14 | /// Represents the current position in the queue 15 | /// 16 | public int QueueIndex { get; internal set; } 17 | 18 | /// 19 | /// Represents the order the node was inserted in 20 | /// 21 | public long InsertionIndex { get; internal set; } 22 | 23 | 24 | #if DEBUG 25 | /// 26 | /// The queue this node is tied to. Used only for debug builds. 27 | /// 28 | public object Queue { get; internal set; } 29 | #endif 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Capabilities/Runtime/MonoBehaviorCapability.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | #if UNITY_2017_1_OR_NEWER 4 | using UnityEngine; 5 | 6 | namespace Capabilities 7 | { 8 | public abstract class MonoBehaviorCapability : MonoBehaviour, ICapability 9 | { 10 | // public List tags { get; protected set; } 11 | public ETickGroup tickGroup { get; protected set; } 12 | public uint tickGroupOrder { get; protected set; } 13 | public TOwner Owner { get; set; } 14 | public ICapabilityHolder capabilityComp { get; protected set; } 15 | public bool active { get; set; } 16 | public float activeDuration { get; set; } 17 | public float deActiveDuration { get; set; } 18 | public abstract bool ShouldActivate(); 19 | 20 | public abstract bool ShouldDeactivate(); 21 | 22 | public abstract void OnActivated(); 23 | 24 | public abstract void OnDeactivated(); 25 | 26 | public abstract void TickActive(in float deltaTime); 27 | } 28 | } 29 | #endif -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/telepathy/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2018, vis2k 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /Core/Network/Empty/NetworkComponent.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | // using System; 4 | // using MemoryPack; 5 | // using UnityToolkit; 6 | // 7 | // namespace Network 8 | // { 9 | // public interface INetworkComponent 10 | // { 11 | // void UpdateFromPacket(in NetworkComponentPacket packet); 12 | // 13 | // NetworkComponentPacket ToDummyPacket(NetworkBuffer buffer); 14 | // } 15 | // 16 | // 17 | // /// 18 | // /// NetworkComponent对应的网络包 19 | // /// 通过type找到原始类型进行反序列化 20 | // /// 21 | // [MemoryPackable] 22 | // public partial struct NetworkComponentPacket : INetworkMessage 23 | // { 24 | // [Flags] 25 | // public enum Mask : byte 26 | // { 27 | // EntityId = 1 << 0, 28 | // Idx = 1 << 1, 29 | // Type = 1 << 2, 30 | // } 31 | // 32 | // public Mask mask; 33 | // public uint entityId; 34 | // public int idx; 35 | // public ushort type; 36 | // public ArraySegment data; 37 | // } 38 | // } -------------------------------------------------------------------------------- /Core/Network/Time/Messages.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | using System; 4 | using MemoryPack; 5 | 6 | namespace Network.Time 7 | { 8 | [MemoryPackable] 9 | internal partial struct ClientSyncTimeMessage : INetworkMessage 10 | { 11 | public long sendMs; 12 | 13 | public static ClientSyncTimeMessage Now() 14 | { 15 | return new ClientSyncTimeMessage() 16 | { 17 | sendMs = DateTimeOffset.Now.ToUnixTimeMilliseconds() 18 | }; 19 | } 20 | } 21 | 22 | [MemoryPackable] 23 | internal partial struct ServerSyncTimeMessage : INetworkMessage 24 | { 25 | public long clientSendMs; 26 | public long serverReceiveMs; 27 | 28 | public static ServerSyncTimeMessage From(ref ClientSyncTimeMessage msg) 29 | { 30 | return new ServerSyncTimeMessage() 31 | { 32 | clientSendMs = msg.sendMs, 33 | serverReceiveMs = DateTimeOffset.Now.ToUnixTimeMilliseconds() 34 | }; 35 | } 36 | } 37 | } -------------------------------------------------------------------------------- /Runtime/UIFramework/LoopScrollRect/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Kanglai Qian 4 | CopyRight (c) 2023 NicoIer 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE. 23 | -------------------------------------------------------------------------------- /Capabilities/Runtime/ScriptableCapability.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | #if UNITY_2017_1_OR_NEWER 4 | using System.Collections.Generic; 5 | using UnityEngine; 6 | 7 | namespace Capabilities 8 | { 9 | public abstract class ScriptableCapability : ScriptableObject, ICapability 10 | { 11 | public abstract bool ShouldActivate(); 12 | 13 | public abstract bool ShouldDeactivate(); 14 | 15 | public abstract void OnActivated(); 16 | 17 | public abstract void OnDeactivated(); 18 | 19 | public abstract void TickActive(in float deltaTime); 20 | 21 | 22 | // public List tags { get; protected set; } 23 | public ETickGroup tickGroup { get; protected set; } 24 | public uint tickGroupOrder { get; protected set; } 25 | public TOwner Owner { get; set; } 26 | public ICapabilityHolder capabilityComp { get; protected set; } 27 | public bool active { get; set; } 28 | public float activeDuration { get; set; } 29 | public float deActiveDuration { get; set; } 30 | } 31 | } 32 | #endif -------------------------------------------------------------------------------- /Core/Octree/Data/MathExtensions.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | // 4 | // Distributed under the BSD Licence (see LICENCE file). 5 | // 6 | // Copyright (c) 2014, Nition, http://www.momentstudio.co.nz/ 7 | // Copyright (c) 2017, Máté Cserép, http://codenet.hu 8 | // All rights reserved. 9 | // 10 | namespace Octree 11 | { 12 | /// 13 | /// Auxiliary mathematical functions. 14 | /// 15 | internal static class MathExtensions 16 | { 17 | /// 18 | /// Clamps a value between a minimum and maximum value. 19 | /// 20 | /// The value. 21 | /// The minimum. 22 | /// The maximum. 23 | /// The clamped value. 24 | public static float Clamp(float value, float min, float max) 25 | { 26 | if (value < min) 27 | return min; 28 | if (value > max) 29 | return max; 30 | return value; 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Runtime/Math/PoisionCircle.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | #if UNITY_5_6_OR_NEWER 4 | using System; 5 | using UnityEngine; 6 | using UnityEngine.Assertions; 7 | 8 | namespace UnityToolkit 9 | { 10 | public struct Circle2D 11 | { 12 | public Vector2 center; 13 | public float radius; 14 | 15 | public Circle2D(Vector2 center, float radius) 16 | { 17 | this.center = center; 18 | this.radius = radius; 19 | } 20 | } 21 | 22 | /// 23 | /// 大逃杀游戏中的毒圈缩圈算法 24 | /// 25 | public static class PoisionCircle 26 | { 27 | public static Circle2D Step(Vector3 center, float radius, Vector3 destination, float percent) 28 | { 29 | Assert.IsTrue(percent is >= 0 and <= 1); 30 | var direction = (destination - center).normalized; 31 | var distance = Vector3.Distance(destination, center); 32 | var newRadius = radius * (1 - percent); 33 | var newCenter = center + direction * (distance - newRadius); 34 | return new Circle2D(newCenter, newRadius); 35 | } 36 | } 37 | } 38 | #endif -------------------------------------------------------------------------------- /Runtime/Debugger/Base/IDebuggerWindow.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | namespace UnityToolkit.Debugger 4 | { 5 | /// 6 | /// 调试器窗口接口。 7 | /// 8 | public interface IDebuggerWindow 9 | { 10 | /// 11 | /// 初始化调试器窗口。 12 | /// 13 | /// 初始化调试器窗口参数。 14 | void Initialize(params object[] args); 15 | 16 | /// 17 | /// 关闭调试器窗口。 18 | /// 19 | void Shutdown(); 20 | 21 | /// 22 | /// 进入调试器窗口。 23 | /// 24 | void OnEnter(); 25 | 26 | /// 27 | /// 离开调试器窗口。 28 | /// 29 | void OnLeave(); 30 | 31 | /// 32 | /// 调试器窗口轮询。 33 | /// 34 | /// 逻辑流逝时间,以秒为单位。 35 | /// 真实流逝时间,以秒为单位。 36 | void OnUpdate(float elapseSeconds, float realElapseSeconds); 37 | 38 | /// 39 | /// 调试器窗口绘制。 40 | /// 41 | void OnDraw(); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /Core/Network/Core/Server/IServerSocket.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | using System; 4 | using System.Collections.Generic; 5 | 6 | namespace Network.Server 7 | { 8 | public interface IServerSocket 9 | { 10 | public event Action OnStarted; 11 | public event Action OnStopped; 12 | public event Action OnConnected; 13 | public event Action> OnDataReceived; 14 | public event Action OnDisconnected; 15 | public event Action> OnDataSent; 16 | 17 | public event Action> OnDataSentToAll; 18 | public ushort Port { get; } 19 | public int ConnectionsCount { get; } 20 | public IEnumerable GetConnections(); 21 | 22 | public void Start(); 23 | public void Send(int connectionId, ArraySegment segment); 24 | void SendToAll(ArraySegment segment); 25 | public void Disconnect(int connectionId); 26 | public string GetClientAddress(int connectionId); 27 | public void Stop(); 28 | public Uri Uri(); 29 | 30 | public void TickIncoming(); 31 | public void TickOutgoing(); 32 | } 33 | } -------------------------------------------------------------------------------- /Runtime/UIFramework/IUIComponent.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | #if UNITY_5_6_OR_NEWER 4 | using UnityEngine; 5 | 6 | namespace UnityToolkit 7 | { 8 | //用于标记的接口 表示UI组件 9 | public interface IUIComponent 10 | { 11 | } 12 | 13 | public interface IUIView : IUIComponent 14 | { 15 | bool IsOpen(); 16 | void Open(); 17 | void Close(); 18 | } 19 | 20 | public interface IUIPanel : IUIComponent 21 | { 22 | internal GameObject GetGameObject(); 23 | internal RectTransform GetRectTransform(); 24 | internal void SetState(UIPanelState state); 25 | 26 | /// 27 | /// 获得面板的排序顺序 越大越优先显示 28 | /// 在Hierarchy中的顺序越末尾(因为末尾后画 所以越优先显示) 29 | /// 30 | /// 31 | public int GetSortingOrder(); 32 | public void OnLoaded(); //加载面板时调用 33 | public void OnOpened(); //打开面板时调用 34 | public void OnClosed(); //关闭面板时调用 35 | public void OnDispose(); //销毁面板时调用 36 | 37 | /// 38 | /// 获得面板所在的层级 39 | /// 40 | /// 41 | public sbyte GetLayer(); 42 | } 43 | } 44 | #endif -------------------------------------------------------------------------------- /Runtime/Shader/MotionBlur.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 8 6 | m_ObjectHideFlags: 0 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInstance: {fileID: 0} 9 | m_PrefabAsset: {fileID: 0} 10 | m_Name: MotionBlur 11 | m_Shader: {fileID: -6465566751694194690, guid: b4dfdb4dface4e1459a4f88b83a480af, 12 | type: 3} 13 | m_Parent: {fileID: 0} 14 | m_ModifiedSerializedProperties: 0 15 | m_ValidKeywords: [] 16 | m_InvalidKeywords: [] 17 | m_LightmapFlags: 4 18 | m_EnableInstancingVariants: 0 19 | m_DoubleSidedGI: 0 20 | m_CustomRenderQueue: -1 21 | stringTagMap: {} 22 | disabledShaderPasses: [] 23 | m_LockedProperties: 24 | m_SavedProperties: 25 | serializedVersion: 3 26 | m_TexEnvs: 27 | - unity_Lightmaps: 28 | m_Texture: {fileID: 0} 29 | m_Scale: {x: 1, y: 1} 30 | m_Offset: {x: 0, y: 0} 31 | - unity_LightmapsInd: 32 | m_Texture: {fileID: 0} 33 | m_Scale: {x: 1, y: 1} 34 | m_Offset: {x: 0, y: 0} 35 | - unity_ShadowMasks: 36 | m_Texture: {fileID: 0} 37 | m_Scale: {x: 1, y: 1} 38 | m_Offset: {x: 0, y: 0} 39 | m_Ints: [] 40 | m_Floats: 41 | - _Samples: 32 42 | - _Velocity_scale: 1 43 | m_Colors: [] 44 | m_BuildTextureStacks: [] 45 | -------------------------------------------------------------------------------- /Runtime/Shader/DitherPass.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 8 6 | m_ObjectHideFlags: 0 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInstance: {fileID: 0} 9 | m_PrefabAsset: {fileID: 0} 10 | m_Name: DitherPass 11 | m_Shader: {fileID: -6465566751694194690, guid: 614bdae6e9cea4f54ba14e86312b06b0, type: 3} 12 | m_Parent: {fileID: 0} 13 | m_ModifiedSerializedProperties: 0 14 | m_ValidKeywords: [] 15 | m_InvalidKeywords: [] 16 | m_LightmapFlags: 4 17 | m_EnableInstancingVariants: 0 18 | m_DoubleSidedGI: 0 19 | m_CustomRenderQueue: -1 20 | stringTagMap: {} 21 | disabledShaderPasses: [] 22 | m_LockedProperties: 23 | m_SavedProperties: 24 | serializedVersion: 3 25 | m_TexEnvs: 26 | - unity_Lightmaps: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | - unity_LightmapsInd: 31 | m_Texture: {fileID: 0} 32 | m_Scale: {x: 1, y: 1} 33 | m_Offset: {x: 0, y: 0} 34 | - unity_ShadowMasks: 35 | m_Texture: {fileID: 0} 36 | m_Scale: {x: 1, y: 1} 37 | m_Offset: {x: 0, y: 0} 38 | m_Ints: [] 39 | m_Floats: 40 | - _Scale: 1 41 | - _StepThreshold: 0.1 42 | m_Colors: 43 | - _ColorA: {r: 0, g: 0, b: 0, a: 0} 44 | - _ColorB: {r: 1, g: 1, b: 1, a: 1} 45 | m_BuildTextureStacks: [] 46 | m_AllowLocking: 1 47 | -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Lerp/Ema/ExponentialMovingAverageVector3.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | using Vector3 = UnityToolkit.MathTypes.Vector3; 4 | 5 | namespace Network 6 | { 7 | public struct ExponentialMovingAverageVector3 8 | { 9 | readonly float alpha; 10 | bool initialized; 11 | 12 | public Vector3 Value { get; private set; } 13 | 14 | public ExponentialMovingAverageVector3(int n) 15 | { 16 | // standard N-day EMA alpha calculation 17 | alpha = 2.0f / (n + 1); 18 | initialized = false; 19 | Value = new Vector3(0, 0, 0); 20 | } 21 | 22 | public void Add(Vector3 newValue) 23 | { 24 | // simple algorithm for EMA described here: 25 | // https://en.wikipedia.org/wiki/Moving_average#Exponentially_weighted_moving_variance_and_standard_deviation 26 | if (initialized) 27 | { 28 | Vector3 delta = newValue - Value; 29 | Value += (Vector3)(alpha * delta); 30 | } 31 | else 32 | { 33 | Value = newValue; 34 | initialized = true; 35 | } 36 | } 37 | 38 | public void Reset() 39 | { 40 | initialized = false; 41 | Value = new Vector3(0, 0, 0); 42 | } 43 | } 44 | } -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Math/Vector2Int.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | using System; 4 | 5 | namespace UnityToolkit.MathTypes 6 | { 7 | [Serializable] 8 | public struct Vector2Int : IEquatable 9 | #if UNITY_5_6_OR_NEWER 10 | , IEquatable 11 | #endif 12 | 13 | { 14 | public int x; 15 | public int y; 16 | 17 | public Vector2Int(int x, int y) 18 | { 19 | this.x = x; 20 | this.y = y; 21 | } 22 | 23 | public bool Equals(Vector2Int other) 24 | { 25 | return x == other.x && y == other.y; 26 | } 27 | 28 | #if UNITY_5_6_OR_NEWER 29 | public bool Equals(UnityEngine.Vector2Int obj) 30 | { 31 | return x == obj.x && y == obj.y; 32 | } 33 | 34 | public static implicit operator UnityEngine.Vector2Int(Vector2Int v) 35 | { 36 | return new UnityEngine.Vector2Int(v.x, v.y); 37 | } 38 | 39 | public static implicit operator Vector2Int(UnityEngine.Vector2Int v) 40 | { 41 | return new Vector2Int(v.x, v.y); 42 | } 43 | 44 | #endif 45 | 46 | public override int GetHashCode() 47 | { 48 | unchecked 49 | { 50 | return (x * 397) ^ y; 51 | } 52 | } 53 | } 54 | } -------------------------------------------------------------------------------- /Core/Octree/LICENSE: -------------------------------------------------------------------------------- 1 | BSD 2-Clause License 2 | 3 | Copyright (c) 2014, Nition, http://www.momentstudio.co.nz/ 4 | Copyright (c) 2017, Máté Cserép, http://codenet.hu 5 | All rights reserved. 6 | 7 | Redistribution and use in source and binary forms, with or without 8 | modification, are permitted provided that the following conditions are met: 9 | 10 | * Redistributions of source code must retain the above copyright notice, this 11 | list of conditions and the following disclaimer. 12 | 13 | * Redistributions in binary form must reproduce the above copyright notice, 14 | this list of conditions and the following disclaimer in the documentation 15 | and/or other materials provided with the distribution. 16 | 17 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 21 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 23 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 24 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 25 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | -------------------------------------------------------------------------------- /Runtime/Debugger/Component/DebuggerComponent.WebPlayerInformationWindow.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | #if UNITY_5_6_OR_NEWER 4 | using UnityEngine; 5 | 6 | namespace UnityToolkit.Debugger 7 | { 8 | public sealed partial class DebuggerComponent 9 | { 10 | private sealed class WebPlayerInformationWindow : ScrollableDebuggerWindowBase 11 | { 12 | protected override void OnDrawScrollableWindow() 13 | { 14 | GUILayout.Label("Web Player Information"); 15 | GUILayout.BeginVertical("box"); 16 | { 17 | #if !UNITY_2017_2_OR_NEWER 18 | DrawItem("Is Web Player", Application.isWebPlayer.ToString()); 19 | #endif 20 | DrawItem("Absolute URL", Application.absoluteURL); 21 | #if !UNITY_2017_2_OR_NEWER 22 | DrawItem("Source Value", Application.srcValue); 23 | #endif 24 | #if !UNITY_2018_2_OR_NEWER 25 | DrawItem("Streamed Bytes", Application.streamedBytes.ToString()); 26 | #endif 27 | #if UNITY_5_3 || UNITY_5_4 28 | DrawItem("Web Security Enabled", Application.webSecurityEnabled.ToString()); 29 | DrawItem("Web Security Host URL", Application.webSecurityHostUrl.ToString()); 30 | #endif 31 | } 32 | GUILayout.EndVertical(); 33 | } 34 | } 35 | } 36 | } 37 | 38 | #endif -------------------------------------------------------------------------------- /Editor/ShaderTemplate/FullScreen.shader: -------------------------------------------------------------------------------- 1 | Shader "#NAME#" 2 | { 3 | Properties 4 | { 5 | _BaseColor("Color", Color) = (1,1,1,1) 6 | } 7 | SubShader 8 | { 9 | Tags 10 | { 11 | "RenderPipeline"="UniversalPipeline" 12 | } 13 | Pass 14 | { 15 | HLSLPROGRAM 16 | #pragma target 3.0 17 | #pragma vertex vert 18 | #pragma fragment frag 19 | 20 | 21 | #include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Common.hlsl" 22 | 23 | 24 | struct Attributes 25 | { 26 | uint vertexID : SV_VertexID; 27 | }; 28 | 29 | 30 | struct Varyings 31 | { 32 | float4 positionCS : SV_POSITION; 33 | }; 34 | 35 | 36 | CBUFFER_START(UnityPerMaterial) 37 | half4 _BaseColor; 38 | CBUFFER_END 39 | 40 | 41 | Varyings vert(Attributes input) 42 | { 43 | Varyings output; 44 | float2 uv = float2((input.vertexID << 1) & 2, input.vertexID & 2); 45 | output.positionCS = float4(uv * 2.0 - 1.0, UNITY_NEAR_CLIP_VALUE, 1.0); 46 | return output; 47 | } 48 | 49 | half4 frag(Varyings packedInput) : SV_Target 50 | { 51 | return _BaseColor; 52 | } 53 | ENDHLSL 54 | } 55 | } 56 | FallBack "Hidden/Shader Graph/FallbackError" 57 | } -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Lerp/Ema/ExponentialMovingAverageQuaternion.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | using Quaternion = UnityToolkit.MathTypes.Quaternion; 4 | 5 | namespace Network 6 | { 7 | public struct ExponentialMovingAverageQuaternion 8 | { 9 | readonly float alpha; 10 | bool initialized; 11 | public Quaternion Value; 12 | 13 | public ExponentialMovingAverageQuaternion(int n) 14 | { 15 | // standard N-day EMA alpha calculation 16 | alpha = 2.0f / (n + 1); 17 | initialized = false; 18 | Value = default; 19 | } 20 | 21 | public void Add(Quaternion newValue) 22 | { 23 | // simple algorithm for EMA described here: 24 | // https://en.wikipedia.org/wiki/Moving_average#Exponentially_weighted_moving_variance_and_standard_deviation 25 | if (initialized) 26 | { 27 | Quaternion delta = newValue * Quaternion.Inverse(Value); 28 | Value = Value * Quaternion.Slerp(Quaternion.identity, delta, alpha); 29 | } 30 | else 31 | { 32 | Value = newValue; 33 | initialized = true; 34 | } 35 | } 36 | 37 | public void Reset() 38 | { 39 | initialized = false; 40 | Value = Quaternion.identity; 41 | } 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /Capabilities/Instigator.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | using System; 4 | 5 | namespace Capabilities 6 | { 7 | /// 8 | /// 发起者 9 | /// 10 | public struct Instigator : IEquatable 11 | { 12 | public object reference; 13 | 14 | public Instigator(object reference) 15 | { 16 | this.reference = reference; 17 | } 18 | 19 | public bool Equals(Instigator other) 20 | { 21 | return Equals(reference, other.reference); 22 | } 23 | 24 | public override bool Equals(object obj) 25 | { 26 | return obj is Instigator other && Equals(other); 27 | } 28 | 29 | public override int GetHashCode() 30 | { 31 | return (reference != null ? reference.GetHashCode() : 0); 32 | } 33 | // 34 | // // == 和 != 运算符重载 35 | // public static bool operator ==(Instigator left, Instigator right) 36 | // { 37 | // return left.Equals(right); 38 | // } 39 | // 40 | // public static bool operator !=(Instigator left, Instigator right) 41 | // { 42 | // return !left.Equals(right); 43 | // } 44 | 45 | 46 | // 隐式转换 从object -> Instigator 47 | 48 | public static Instigator FromObject(object reference) 49 | { 50 | return new Instigator(reference); 51 | } 52 | } 53 | } -------------------------------------------------------------------------------- /Core/PriorityQueue/IFixedSizePriorityQueue.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Text; 6 | 7 | namespace UnityToolkit 8 | { 9 | /// 10 | /// A helper-interface only needed to make writing unit tests a bit easier (hence the 'internal' access modifier) 11 | /// 12 | internal interface IFixedSizePriorityQueue : IPriorityQueue 13 | { 14 | /// 15 | /// Resize the queue so it can accept more nodes. All currently enqueued nodes are remain. 16 | /// Attempting to decrease the queue size to a size too small to hold the existing nodes results in undefined behavior 17 | /// 18 | void Resize(int maxNodes); 19 | 20 | /// 21 | /// Returns the maximum number of items that can be enqueued at once in this queue. Once you hit this number (ie. once Count == MaxSize), 22 | /// attempting to enqueue another item will cause undefined behavior. 23 | /// 24 | int MaxSize { get; } 25 | 26 | /// 27 | /// By default, nodes that have been previously added to one queue cannot be added to another queue. 28 | /// If you need to do this, please call originalQueue.ResetNode(node) before attempting to add it in the new queue 29 | /// 30 | void ResetNode(TItem node); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Core/ConcurrentPool.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | using System; 4 | using System.Collections.Concurrent; 5 | using System.Runtime.CompilerServices; 6 | 7 | namespace UnityToolkit 8 | { 9 | public class ConcurrentPool 10 | { 11 | readonly ConcurrentBag objects = new ConcurrentBag(); 12 | 13 | readonly Func objectGenerator; 14 | readonly int maxCapacity; 15 | 16 | public ConcurrentPool(Func objectGenerator, int initialCapacity,int maxCapacity=0) 17 | { 18 | this.maxCapacity = maxCapacity; 19 | this.objectGenerator = objectGenerator; 20 | 21 | // allocate an initial pool so we have fewer (if any) 22 | // allocations in the first few frames (or seconds). 23 | for (int i = 0; i < initialCapacity; ++i) 24 | objects.Add(objectGenerator()); 25 | } 26 | 27 | [MethodImpl(MethodImplOptions.AggressiveInlining)] 28 | public T Get() => objects.TryTake(out T obj) ? obj : objectGenerator(); 29 | 30 | [MethodImpl(MethodImplOptions.AggressiveInlining)] 31 | public void Return(T item) 32 | { 33 | if (maxCapacity > 0 && objects.Count >= maxCapacity) return; 34 | objects.Add(item); 35 | } 36 | 37 | public int Count => objects.Count; 38 | 39 | [MethodImpl(MethodImplOptions.AggressiveInlining)] 40 | public void Release(T item) => objects.Add(item); 41 | } 42 | } -------------------------------------------------------------------------------- /Runtime/Debugger/Base/IDebuggerWindowGroup.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | namespace UnityToolkit.Debugger 4 | { 5 | /// 6 | /// 调试器窗口组接口。 7 | /// 8 | public interface IDebuggerWindowGroup : IDebuggerWindow 9 | { 10 | /// 11 | /// 获取调试器窗口数量。 12 | /// 13 | int DebuggerWindowCount 14 | { 15 | get; 16 | } 17 | 18 | /// 19 | /// 获取或设置当前选中的调试器窗口索引。 20 | /// 21 | int SelectedIndex 22 | { 23 | get; 24 | set; 25 | } 26 | 27 | /// 28 | /// 获取当前选中的调试器窗口。 29 | /// 30 | IDebuggerWindow SelectedWindow 31 | { 32 | get; 33 | } 34 | 35 | /// 36 | /// 获取调试组的调试器窗口名称集合。 37 | /// 38 | string[] GetDebuggerWindowNames(); 39 | 40 | /// 41 | /// 获取调试器窗口。 42 | /// 43 | /// 调试器窗口路径。 44 | /// 要获取的调试器窗口。 45 | IDebuggerWindow GetDebuggerWindow(string path); 46 | 47 | /// 48 | /// 注册调试器窗口。 49 | /// 50 | /// 调试器窗口路径。 51 | /// 要注册的调试器窗口。 52 | void RegisterDebuggerWindow(string path, IDebuggerWindow debuggerWindow); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Protocol/telepathy/ConnectionState.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | // both server and client need a connection state object. 4 | // -> server needs it to keep track of multiple connections 5 | // -> client needs it to safely create a new connection state on every new 6 | // connect in order to avoid data races where a dieing thread might still 7 | // modify the current state. can't happen if we create a new state each time! 8 | // (fixes all the flaky tests) 9 | // 10 | // ... besides, it also allows us to share code! 11 | using System.Net.Sockets; 12 | using System.Threading; 13 | 14 | namespace Network.Telepathy 15 | { 16 | public class ConnectionState 17 | { 18 | public TcpClient client; 19 | 20 | // thread safe pipe to send messages from main thread to send thread 21 | public readonly MagnificentSendPipe sendPipe; 22 | 23 | // ManualResetEvent to wake up the send thread. better than Thread.Sleep 24 | // -> call Set() if everything was sent 25 | // -> call Reset() if there is something to send again 26 | // -> call WaitOne() to block until Reset was called 27 | public ManualResetEvent sendPending = new ManualResetEvent(false); 28 | 29 | public ConnectionState(TcpClient client, int MaxMessageSize) 30 | { 31 | this.client = client; 32 | 33 | // create send pipe with max message size for pooling 34 | sendPipe = new MagnificentSendPipe(MaxMessageSize); 35 | } 36 | } 37 | } -------------------------------------------------------------------------------- /Runtime/Components/Trigger3DEventEmitter.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | #if UNITY_2021_3_OR_NEWER 4 | 5 | using System; 6 | using UnityEngine; 7 | using UnityEngine.Assertions; 8 | 9 | namespace UnityToolkit 10 | { 11 | [RequireComponent(typeof(Collider))] 12 | public class Trigger3DEventEmitter : MonoBehaviour 13 | { 14 | public event Action TriggerEnter = delegate { }; 15 | public event Action TriggerExit = delegate { }; 16 | public event Action TriggerStay = delegate { }; 17 | public Collider collider3D { get; private set; } 18 | public LayerMask layerMask; 19 | 20 | private void Awake() 21 | { 22 | collider3D = GetComponent(); 23 | Assert.IsNotNull(collider3D); 24 | } 25 | 26 | private void OnTriggerEnter(Collider other) 27 | { 28 | if (layerMask == (layerMask | (1 << other.gameObject.layer))) 29 | { 30 | TriggerEnter(other); 31 | } 32 | } 33 | 34 | private void OnTriggerExit(Collider other) 35 | { 36 | if (layerMask == (layerMask | (1 << other.gameObject.layer))) 37 | { 38 | TriggerExit(other); 39 | } 40 | } 41 | 42 | private void OnTriggerStay(Collider other) 43 | { 44 | if (layerMask == (layerMask | (1 << other.gameObject.layer))) 45 | { 46 | TriggerStay(other); 47 | } 48 | } 49 | } 50 | } 51 | #endif -------------------------------------------------------------------------------- /Core/Network/Core/Shared/Messages/Messages/NetworkMessages.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | using MemoryPack; 4 | 5 | namespace Network 6 | { 7 | 8 | [MemoryPackable] 9 | public partial struct HeartBeat : INetworkMessage 10 | { 11 | public static readonly HeartBeat Default = new HeartBeat(); 12 | } 13 | // /// 14 | // /// 服务器为客户端分配的连接ID 15 | // /// 16 | // [MemoryPackable] 17 | // public partial struct AssignConnectionIdMessage : INetworkMessage 18 | // { 19 | // public readonly int id; 20 | // 21 | // public AssignConnectionIdMessage(int id) 22 | // { 23 | // this.id = id; 24 | // } 25 | // } 26 | // 27 | // /// 28 | // /// Ping消息 29 | // /// 30 | // [MemoryPackable] 31 | // public partial struct PingMessage : INetworkMessage 32 | // { 33 | // public readonly long sendTimeMs; 34 | // 35 | // public PingMessage(long sendTimeMs) 36 | // { 37 | // this.sendTimeMs = sendTimeMs; 38 | // } 39 | // } 40 | // 41 | // [MemoryPackable] 42 | // public partial struct PongMessage : INetworkMessage 43 | // { 44 | // /// 45 | // /// Ping方发送Ping的时间 46 | // /// Pinger -> Ponger -> Pinger 47 | // /// 48 | // public readonly long sendTimeMs; 49 | // 50 | // public PongMessage(ref PingMessage pingMessage) 51 | // { 52 | // sendTimeMs = pingMessage.sendTimeMs; 53 | // } 54 | // } 55 | } -------------------------------------------------------------------------------- /Runtime/Helper/EngineHelper.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | #if UNITY_5_6_OR_NEWER 4 | using System; 5 | using System.Runtime.CompilerServices; 6 | using UnityEngine; 7 | using UnityEngine.SceneManagement; 8 | 9 | namespace UnityToolkit 10 | { 11 | public static class EngineUtils 12 | { 13 | public static Color RandomColor() 14 | { 15 | float r = UnityEngine.Random.value; 16 | float g = UnityEngine.Random.value; 17 | float b = UnityEngine.Random.value; 18 | //随机生成颜色 19 | return new Color(r, g, b); 20 | } 21 | 22 | public static bool IsSceneActive(string scene) 23 | { 24 | Scene activeScene = SceneManager.GetActiveScene(); 25 | return activeScene.path == scene || 26 | activeScene.name == scene; 27 | } 28 | 29 | [MethodImpl(MethodImplOptions.AggressiveInlining)] 30 | public static bool IsPointInScreen(Vector2 point) 31 | { 32 | return 0 <= point.x && point.x < Screen.width && 33 | 0 <= point.y && point.y < Screen.height; 34 | } 35 | 36 | 37 | public static Rect KeepInScreen(Rect rect) 38 | { 39 | // ensure min 40 | rect.x = Math.Max(rect.x, 0); 41 | rect.y = Math.Max(rect.y, 0); 42 | 43 | // ensure max 44 | rect.x = Math.Min(rect.x, Screen.width - rect.width); 45 | rect.y = Math.Min(rect.y, Screen.width - rect.height); 46 | 47 | return rect; 48 | } 49 | } 50 | } 51 | #endif -------------------------------------------------------------------------------- /Runtime/Components/Trigger2DEventEmitter.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | #if UNITY_2021_3_OR_NEWER 4 | 5 | using System; 6 | using UnityEngine; 7 | using UnityEngine.Assertions; 8 | 9 | namespace UnityToolkit 10 | { 11 | [RequireComponent(typeof(Collider2D))] 12 | public class Trigger2DEventEmitter : MonoBehaviour 13 | { 14 | public event Action TriggerEnter = delegate { }; 15 | public event Action TriggerExit = delegate { }; 16 | public event Action TriggerStay = delegate { }; 17 | public new Collider2D collider2D { get; private set; } 18 | public LayerMask layerMask; 19 | 20 | private void Awake() 21 | { 22 | collider2D = GetComponent(); 23 | Assert.IsNotNull(collider2D); 24 | } 25 | 26 | private void OnTriggerEnter2D(Collider2D other) 27 | { 28 | if (layerMask == (layerMask | (1 << other.gameObject.layer))) 29 | { 30 | TriggerEnter(other); 31 | } 32 | } 33 | 34 | private void OnTriggerExit2D(Collider2D other) 35 | { 36 | if (layerMask == (layerMask | (1 << other.gameObject.layer))) 37 | { 38 | TriggerExit(other); 39 | } 40 | } 41 | 42 | private void OnTriggerStay2D(Collider2D other) 43 | { 44 | if (layerMask == (layerMask | (1 << other.gameObject.layer))) 45 | { 46 | TriggerStay(other); 47 | } 48 | } 49 | } 50 | } 51 | #endif 52 | -------------------------------------------------------------------------------- /Runtime/System/SceneSystem.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | #if UNITY_2021_3_OR_NEWER 4 | 5 | using System; 6 | using System.Collections.Generic; 7 | using UnityEngine; 8 | using UnityEngine.SceneManagement; 9 | using UnityEngine.Serialization; 10 | 11 | namespace UnityToolkit 12 | { 13 | 14 | 15 | public abstract class SceneContext : ScriptableObject,IOnInit,IDisposable 16 | { 17 | public abstract void OnActiveSceneChanged(Scene prev, Scene now); 18 | public abstract void OnInit(); 19 | public abstract void Dispose(); 20 | } 21 | 22 | public class SceneSystem : MonoBehaviour, IOnInit, ISystem 23 | { 24 | [SerializeField] 25 | private List sceneContexts = new List(); 26 | public void OnInit() 27 | { 28 | SceneManager.activeSceneChanged += OnActiveSceneChanged; 29 | foreach (var context in sceneContexts) 30 | { 31 | context.OnInit(); 32 | } 33 | } 34 | 35 | 36 | public void Dispose() 37 | { 38 | SceneManager.activeSceneChanged -= OnActiveSceneChanged; 39 | foreach (var context in sceneContexts) 40 | { 41 | context.Dispose(); 42 | } 43 | } 44 | 45 | private void OnActiveSceneChanged(Scene prev, Scene now) 46 | { 47 | foreach (var context in sceneContexts) 48 | { 49 | context.OnActiveSceneChanged(prev, now); 50 | } 51 | } 52 | } 53 | } 54 | #endif 55 | -------------------------------------------------------------------------------- /Runtime/Debugger/Base/DebuggerException.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | 4 | using System; 5 | using System.Runtime.Serialization; 6 | 7 | namespace UnityToolkit.Debugger 8 | { 9 | /// 10 | /// 游戏框架异常类。 11 | /// 12 | [Serializable] 13 | public class DebuggerException: Exception 14 | { 15 | /// 16 | /// 初始化游戏框架异常类的新实例。 17 | /// 18 | public DebuggerException() 19 | { 20 | } 21 | 22 | /// 23 | /// 使用指定错误消息初始化游戏框架异常类的新实例。 24 | /// 25 | /// 描述错误的消息。 26 | public DebuggerException(string message) 27 | : base(message) 28 | { 29 | } 30 | 31 | /// 32 | /// 使用指定错误消息和对作为此异常原因的内部异常的引用来初始化游戏框架异常类的新实例。 33 | /// 34 | /// 解释异常原因的错误消息。 35 | /// 导致当前异常的异常。如果 innerException 参数不为空引用,则在处理内部异常的 catch 块中引发当前异常。 36 | public DebuggerException(string message, Exception innerException) 37 | : base(message, innerException) 38 | { 39 | } 40 | #if NETFRAMEWORK || NETSTANDARD2_0 41 | /// 42 | /// 用序列化数据初始化游戏框架异常类的新实例。 43 | /// 44 | /// 存有有关所引发异常的序列化的对象数据。 45 | /// 包含有关源或目标的上下文信息。 46 | protected DebuggerException(SerializationInfo info, StreamingContext context) 47 | : base(info, context) 48 | { 49 | } 50 | #endif 51 | } 52 | } -------------------------------------------------------------------------------- /Runtime/Debugger/Component/DebuggerComponent.RuntimeMemorySummaryWindow.Record.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | #if UNITY_5_6_OR_NEWER 4 | namespace UnityToolkit.Debugger 5 | { 6 | public sealed partial class DebuggerComponent 7 | { 8 | private sealed partial class RuntimeMemorySummaryWindow : ScrollableDebuggerWindowBase 9 | { 10 | private sealed class Record 11 | { 12 | private readonly string m_Name; 13 | private int m_Count; 14 | private long m_Size; 15 | 16 | public Record(string name) 17 | { 18 | m_Name = name; 19 | m_Count = 0; 20 | m_Size = 0L; 21 | } 22 | 23 | public string Name 24 | { 25 | get 26 | { 27 | return m_Name; 28 | } 29 | } 30 | 31 | public int Count 32 | { 33 | get 34 | { 35 | return m_Count; 36 | } 37 | set 38 | { 39 | m_Count = value; 40 | } 41 | } 42 | 43 | public long Size 44 | { 45 | get 46 | { 47 | return m_Size; 48 | } 49 | set 50 | { 51 | m_Size = value; 52 | } 53 | } 54 | } 55 | } 56 | } 57 | } 58 | #endif -------------------------------------------------------------------------------- /Runtime/Debugger/Base/IDebuggerManager.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2023 NicoIer and Contributors. 2 | // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. 3 | namespace UnityToolkit.Debugger 4 | { 5 | /// 6 | /// 调试器管理器接口。 7 | /// 8 | public interface IDebuggerManager 9 | { 10 | /// 11 | /// 获取或设置调试器窗口是否激活。 12 | /// 13 | bool ActiveWindow 14 | { 15 | get; 16 | set; 17 | } 18 | 19 | /// 20 | /// 调试器窗口根结点。 21 | /// 22 | IDebuggerWindowGroup DebuggerWindowRoot 23 | { 24 | get; 25 | } 26 | 27 | /// 28 | /// 注册调试器窗口。 29 | /// 30 | /// 调试器窗口路径。 31 | /// 要注册的调试器窗口。 32 | /// 初始化调试器窗口参数。 33 | void RegisterDebuggerWindow(string path, IDebuggerWindow debuggerWindow, params object[] args); 34 | 35 | /// 36 | /// 解除注册调试器窗口。 37 | /// 38 | /// 调试器窗口路径。 39 | /// 是否解除注册调试器窗口成功。 40 | bool UnregisterDebuggerWindow(string path); 41 | 42 | /// 43 | /// 获取调试器窗口。 44 | /// 45 | /// 调试器窗口路径。 46 | /// 要获取的调试器窗口。 47 | IDebuggerWindow GetDebuggerWindow(string path); 48 | 49 | /// 50 | /// 选中调试器窗口。 51 | /// 52 | /// 调试器窗口路径。 53 | /// 是否成功选中调试器窗口。 54 | bool SelectDebuggerWindow(string path); 55 | } 56 | } 57 | --------------------------------------------------------------------------------