├── .gitattributes
├── .gitignore
├── .vsconfig
├── Assets
├── Security Camera Toolkit.meta
├── Security Camera Toolkit
│ ├── Editor.meta
│ ├── Editor
│ │ ├── AssetsPostProcessor.cs
│ │ ├── AssetsPostProcessor.cs.meta
│ │ ├── Localization.meta
│ │ ├── Localization
│ │ │ ├── GUIContentEx.cs
│ │ │ ├── GUIContentEx.cs.meta
│ │ │ ├── Generated.meta
│ │ │ ├── Generated
│ │ │ │ ├── WordMappings.asset
│ │ │ │ └── WordMappings.asset.meta
│ │ │ ├── Map.cs
│ │ │ ├── Map.cs.meta
│ │ │ ├── MapCollection.cs
│ │ │ ├── MapCollection.cs.meta
│ │ │ ├── StringEx.cs
│ │ │ ├── StringEx.cs.meta
│ │ │ ├── WordMappings.cs
│ │ │ └── WordMappings.cs.meta
│ │ ├── NVRConfigurationEditor.cs
│ │ ├── NVRConfigurationEditor.cs.meta
│ │ ├── NVRManagerEditor.cs
│ │ ├── NVRManagerEditor.cs.meta
│ │ ├── PropertyDrawer.meta
│ │ ├── PropertyDrawer
│ │ │ ├── BackgroundColorScope.cs
│ │ │ ├── BackgroundColorScope.cs.meta
│ │ │ ├── MonoScriptPropertyDrawer.cs
│ │ │ ├── MonoScriptPropertyDrawer.cs.meta
│ │ │ ├── NVRInformationPropertyDrawer.cs
│ │ │ ├── NVRInformationPropertyDrawer.cs.meta
│ │ │ ├── PopupPropertyDrawer.cs
│ │ │ └── PopupPropertyDrawer.cs.meta
│ │ ├── SecurityCameraEditor.cs
│ │ ├── SecurityCameraEditor.cs.meta
│ │ ├── VideoRendererEditor.cs
│ │ ├── VideoRendererEditor.cs.meta
│ │ ├── zFramework.Media.Editor.asmdef
│ │ └── zFramework.Media.Editor.asmdef.meta
│ ├── Examples.meta
│ ├── Examples
│ │ ├── NVRController.cs
│ │ ├── NVRController.cs.meta
│ │ ├── SceneMonitorTest.unity
│ │ ├── SceneMonitorTest.unity.meta
│ │ ├── StatisticsHandler.cs
│ │ ├── StatisticsHandler.cs.meta
│ │ ├── zFramework.Media.Examples.asmdef
│ │ └── zFramework.Media.Examples.asmdef.meta
│ ├── Generated.meta
│ ├── Generated
│ │ ├── NVRConfiguration.asset
│ │ └── NVRConfiguration.asset.meta
│ ├── Plugins.meta
│ ├── Plugins
│ │ ├── HIKVISION.meta
│ │ ├── HIKVISION
│ │ │ ├── AudioRender.dll
│ │ │ ├── AudioRender.dll.meta
│ │ │ ├── GdiPlus.dll
│ │ │ ├── GdiPlus.dll.meta
│ │ │ ├── HCCore.dll
│ │ │ ├── HCCore.dll.meta
│ │ │ ├── HCNetSDK.dll
│ │ │ ├── HCNetSDK.dll.meta
│ │ │ ├── HCNetSDKCom.meta
│ │ │ ├── HCNetSDKCom
│ │ │ │ ├── AnalyzeData.dll
│ │ │ │ ├── AnalyzeData.dll.meta
│ │ │ │ ├── AudioIntercom.dll
│ │ │ │ ├── AudioIntercom.dll.meta
│ │ │ │ ├── HCAlarm.dll
│ │ │ │ ├── HCAlarm.dll.meta
│ │ │ │ ├── HCCoreDevCfg.dll
│ │ │ │ ├── HCCoreDevCfg.dll.meta
│ │ │ │ ├── HCDisplay.dll
│ │ │ │ ├── HCDisplay.dll.meta
│ │ │ │ ├── HCGeneralCfgMgr.dll
│ │ │ │ ├── HCGeneralCfgMgr.dll.meta
│ │ │ │ ├── HCIndustry.dll
│ │ │ │ ├── HCIndustry.dll.meta
│ │ │ │ ├── HCPlayBack.dll
│ │ │ │ ├── HCPlayBack.dll.meta
│ │ │ │ ├── HCPreview.dll
│ │ │ │ ├── HCPreview.dll.meta
│ │ │ │ ├── HCVoiceTalk.dll
│ │ │ │ ├── HCVoiceTalk.dll.meta
│ │ │ │ ├── OpenAL32.dll
│ │ │ │ ├── OpenAL32.dll.meta
│ │ │ │ ├── StreamTransClient.dll
│ │ │ │ ├── StreamTransClient.dll.meta
│ │ │ │ ├── SystemTransform.dll
│ │ │ │ ├── SystemTransform.dll.meta
│ │ │ │ ├── libiconv2.dll
│ │ │ │ └── libiconv2.dll.meta
│ │ │ ├── HXVA.dll
│ │ │ ├── HXVA.dll.meta
│ │ │ ├── HmMerge.dll
│ │ │ ├── HmMerge.dll.meta
│ │ │ ├── MP_Render.dll
│ │ │ ├── MP_Render.dll.meta
│ │ │ ├── NPQos.dll
│ │ │ ├── NPQos.dll.meta
│ │ │ ├── PlayCtrl.dll
│ │ │ ├── PlayCtrl.dll.meta
│ │ │ ├── SuperRender.dll
│ │ │ ├── SuperRender.dll.meta
│ │ │ ├── YUVProcess.dll
│ │ │ ├── YUVProcess.dll.meta
│ │ │ ├── dhplay.dll
│ │ │ ├── dhplay.dll.meta
│ │ │ ├── hlog.dll
│ │ │ ├── hlog.dll.meta
│ │ │ ├── hpr.dll
│ │ │ ├── hpr.dll.meta
│ │ │ ├── libeay32.dll
│ │ │ ├── libeay32.dll.meta
│ │ │ ├── libmmd.dll
│ │ │ ├── libmmd.dll.meta
│ │ │ ├── ssleay32.dll
│ │ │ ├── ssleay32.dll.meta
│ │ │ ├── zlib1.dll
│ │ │ └── zlib1.dll.meta
│ │ ├── Uniview.meta
│ │ └── Uniview
│ │ │ ├── Microsoft.VC90.CRT.manifest
│ │ │ ├── Microsoft.VC90.CRT.manifest.meta
│ │ │ ├── Microsoft.VC90.MFC.manifest
│ │ │ ├── Microsoft.VC90.MFC.manifest.meta
│ │ │ ├── NDAO.dll
│ │ │ ├── NDAO.dll.meta
│ │ │ ├── NDFace.dll
│ │ │ ├── NDFace.dll.meta
│ │ │ ├── NDPlayer.dll
│ │ │ ├── NDPlayer.dll.meta
│ │ │ ├── NDRM_Module.dll
│ │ │ ├── NDRM_Module.dll.meta
│ │ │ ├── NDRSA.dll
│ │ │ ├── NDRSA.dll.meta
│ │ │ ├── NDRtmp.dll
│ │ │ ├── NDRtmp.dll.meta
│ │ │ ├── NV12ToARGB_drvapi.ptx
│ │ │ ├── NV12ToARGB_drvapi.ptx.meta
│ │ │ ├── NetCloudSDK.dll
│ │ │ ├── NetCloudSDK.dll.meta
│ │ │ ├── NetDEVDiscovery.dll
│ │ │ ├── NetDEVDiscovery.dll.meta
│ │ │ ├── NetDEVSDK.dll
│ │ │ ├── NetDEVSDK.dll.meta
│ │ │ ├── RSA.dll
│ │ │ ├── RSA.dll.meta
│ │ │ ├── avutil_audio_aac.dll
│ │ │ ├── avutil_audio_aac.dll.meta
│ │ │ ├── dsp_audio_aac.dll
│ │ │ ├── dsp_audio_aac.dll.meta
│ │ │ ├── dsp_audio_aac_enc.dll
│ │ │ ├── dsp_audio_aac_enc.dll.meta
│ │ │ ├── dsp_audio_g711.dll
│ │ │ ├── dsp_audio_g711.dll.meta
│ │ │ ├── dsp_video_h264_1.dll
│ │ │ ├── dsp_video_h264_1.dll.meta
│ │ │ ├── dsp_video_mjpeg.dll
│ │ │ ├── dsp_video_mjpeg.dll.meta
│ │ │ ├── fisheye_rectify.dll
│ │ │ ├── fisheye_rectify.dll.meta
│ │ │ ├── intel_gpu_dec.dll
│ │ │ ├── intel_gpu_dec.dll.meta
│ │ │ ├── libcrypto-3-x64.dll
│ │ │ ├── libcrypto-3-x64.dll.meta
│ │ │ ├── libcurl.dll
│ │ │ ├── libcurl.dll.meta
│ │ │ ├── libssl-3-x64.dll
│ │ │ ├── libssl-3-x64.dll.meta
│ │ │ ├── libtunnel.dll
│ │ │ ├── libtunnel.dll.meta
│ │ │ ├── libwinpthread-1.dll
│ │ │ ├── libwinpthread-1.dll.meta
│ │ │ ├── mfc90.dll
│ │ │ ├── mfc90.dll.meta
│ │ │ ├── mfc90u.dll
│ │ │ ├── mfc90u.dll.meta
│ │ │ ├── mfcm90.dll
│ │ │ ├── mfcm90.dll.meta
│ │ │ ├── mfcm90u.dll
│ │ │ ├── mfcm90u.dll.meta
│ │ │ ├── msvcm90.dll
│ │ │ ├── msvcm90.dll.meta
│ │ │ ├── msvcp120.dll
│ │ │ ├── msvcp120.dll.meta
│ │ │ ├── msvcp90.dll
│ │ │ ├── msvcp90.dll.meta
│ │ │ ├── msvcr120.dll
│ │ │ ├── msvcr120.dll.meta
│ │ │ ├── msvcr90.dll
│ │ │ ├── msvcr90.dll.meta
│ │ │ ├── mxml1.dll
│ │ │ ├── mxml1.dll.meta
│ │ │ ├── nvidia_gpu_dec.dll
│ │ │ ├── nvidia_gpu_dec.dll.meta
│ │ │ ├── pthreadVC2.dll
│ │ │ └── pthreadVC2.dll.meta
│ ├── Runtime.meta
│ ├── Runtime
│ │ ├── Attribute.meta
│ │ ├── Attribute
│ │ │ ├── MonoScriptAttribute.cs
│ │ │ ├── MonoScriptAttribute.cs.meta
│ │ │ ├── StringPopupAttribute.cs
│ │ │ └── StringPopupAttribute.cs.meta
│ │ ├── Core.meta
│ │ ├── Core
│ │ │ ├── CameraService.cs
│ │ │ ├── CameraService.cs.meta
│ │ │ ├── NVR.cs
│ │ │ ├── NVR.cs.meta
│ │ │ ├── NVRManager.cs
│ │ │ ├── NVRManager.cs.meta
│ │ │ ├── SecurityCamera.cs
│ │ │ └── SecurityCamera.cs.meta
│ │ ├── Data.meta
│ │ ├── Data
│ │ │ ├── NVRConfiguration.cs
│ │ │ ├── NVRConfiguration.cs.meta
│ │ │ ├── NVRInformation.cs
│ │ │ ├── NVRInformation.cs.meta
│ │ │ ├── SDKTYPE.cs
│ │ │ ├── SDKTYPE.cs.meta
│ │ │ ├── STREAM.cs
│ │ │ └── STREAM.cs.meta
│ │ ├── Internal.meta
│ │ ├── Internal
│ │ │ ├── INVRStateHandler.cs
│ │ │ ├── INVRStateHandler.cs.meta
│ │ │ ├── IVideoSource.cs
│ │ │ ├── IVideoSource.cs.meta
│ │ │ ├── VideoFrame.cs
│ │ │ ├── VideoFrame.cs.meta
│ │ │ ├── VideoFrameQueue.cs
│ │ │ ├── VideoFrameQueue.cs.meta
│ │ │ ├── VideoRenderer.cs
│ │ │ └── VideoRenderer.cs.meta
│ │ ├── Player.meta
│ │ ├── Player
│ │ │ ├── Hikvision.meta
│ │ │ ├── Hikvision
│ │ │ │ ├── HKService.cs
│ │ │ │ ├── HKService.cs.meta
│ │ │ │ ├── HikvisonNVR.cs
│ │ │ │ ├── HikvisonNVR.cs.meta
│ │ │ │ ├── Wrapper.meta
│ │ │ │ └── Wrapper
│ │ │ │ │ ├── CHCNetSDK.cs
│ │ │ │ │ ├── CHCNetSDK.cs.meta
│ │ │ │ │ ├── DHPlaySDK.cs
│ │ │ │ │ ├── DHPlaySDK.cs.meta
│ │ │ │ │ ├── PlayCtrl.cs
│ │ │ │ │ └── PlayCtrl.cs.meta
│ │ │ ├── Uniview.meta
│ │ │ └── Uniview
│ │ │ │ ├── UVService.cs
│ │ │ │ ├── UVService.cs.meta
│ │ │ │ ├── UniviewNVR.cs
│ │ │ │ ├── UniviewNVR.cs.meta
│ │ │ │ ├── Wrapper.meta
│ │ │ │ └── Wrapper
│ │ │ │ ├── GeneralDef.cs
│ │ │ │ ├── GeneralDef.cs.meta
│ │ │ │ ├── NETSDKHelper.cs
│ │ │ │ └── NETSDKHelper.cs.meta
│ │ ├── Utility.meta
│ │ ├── Utility
│ │ │ ├── DynamicAverage.cs
│ │ │ ├── DynamicAverage.cs.meta
│ │ │ ├── Loom.cs
│ │ │ └── Loom.cs.meta
│ │ ├── zFramework.Media.Runtime.asmdef
│ │ └── zFramework.Media.Runtime.asmdef.meta
│ ├── Shader.meta
│ └── Shader
│ │ ├── YUV.mat
│ │ ├── YUV.mat.meta
│ │ ├── YUVsUnlitShader.shader
│ │ └── YUVsUnlitShader.shader.meta
├── StreamingAssets.meta
└── StreamingAssets
│ ├── Configurations.meta
│ └── Configurations
│ ├── NvrConfiguration.json
│ └── NvrConfiguration.json.meta
├── LICENSE
├── Packages
├── manifest.json
└── packages-lock.json
├── ProjectSettings
├── AudioManager.asset
├── ClusterInputManager.asset
├── DynamicsManager.asset
├── EditorBuildSettings.asset
├── EditorSettings.asset
├── GraphicsSettings.asset
├── InputManager.asset
├── NavMeshAreas.asset
├── PackageManagerSettings.asset
├── Physics2DSettings.asset
├── PresetManager.asset
├── ProjectSettings.asset
├── ProjectVersion.txt
├── QualitySettings.asset
├── TagManager.asset
├── TimeManager.asset
├── UnityConnectSettings.asset
├── VFXManager.asset
└── VersionControlSettings.asset
├── README.md
├── UIElementsSchema
├── UIElements.xsd
├── Unity.Cloud.Collaborate.Components.ChangeListEntries.xsd
├── Unity.Cloud.Collaborate.Components.xsd
├── Unity.Cloud.Collaborate.Views.xsd
├── UnityEditor.PackageManager.UI.xsd
├── UnityEditor.UIElements.Debugger.xsd
├── UnityEditor.UIElements.xsd
└── UnityEngine.UIElements.xsd
├── UserSettings
└── EditorUserSettings.asset
└── docs
├── Localization.png
├── NVRConfiguration.png
├── NVRManager.png
├── NVRManager_Failure.png
├── PictureFlip.png
├── SecurityCamera_noconfig.png
├── SecurityCamera_nohost.png
├── SecurityCamera_normal.png
├── VideoRenderer.png
├── framerate.png
├── securityCamera.gif
└── workflow.gif
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | [Ll]ibrary/
2 | [Tt]emp/
3 | [Oo]bj/
4 | [Ll]ogs/
5 | [Bb]uild/
6 | [Bb]uilds/
7 | Assets/AssetStoreTools*
8 |
9 | # Visual Studio cache directory
10 | .vs/
11 |
12 | # Autogenerated VS/MD/Consulo solution and project files
13 | ExportedObj/
14 | .consulo/
15 | *.csproj
16 | *.unityproj
17 | *.sln
18 | *.suo
19 | *.tmp
20 | *.user
21 | *.userprefs
22 | *.pidb
23 | *.booproj
24 | *.svd
25 | *.pdb
26 | *.opendb
27 |
28 | # Unity3D generated meta files
29 | *.pidb.meta
30 | *.pdb.meta
31 |
32 | # Unity3D Generated File On Crash Reports
33 | sysinfo.txt
34 |
35 | # Builds
36 | *.apk
37 | *.unitypackage
38 |
--------------------------------------------------------------------------------
/.vsconfig:
--------------------------------------------------------------------------------
1 | {
2 | "version": "1.0",
3 | "components": [
4 | "Microsoft.VisualStudio.Workload.ManagedGame"
5 | ]
6 | }
7 |
--------------------------------------------------------------------------------
/Assets/Security Camera Toolkit.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 097c64d38acc63a449f87eca54128191
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Security Camera Toolkit/Editor.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 59db6b153ec9c0d4fa64ecf099ae2138
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Security Camera Toolkit/Editor/AssetsPostProcessor.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) https://github.com/Bian-Sh
2 | // Licensed under the MIT License.
3 | using System.IO;
4 | using UnityEditor;
5 | using UnityEditor.Callbacks;
6 | using UnityEngine;
7 |
8 | //仅处理打包完成后的文件夹海康 SDK 相关动态链文件转移工作
9 | // This script
10 | namespace zFramework.Media.Editor
11 | {
12 | static class AssetsPostProcessing
13 | {
14 | [PostProcessBuild(1)]
15 | public static void Processing(BuildTarget target, string pathToBuiltProject)
16 | {
17 | var paths = AssetDatabase.FindAssets("HCNetSDKCom t:Folder");
18 | if (paths.Length == 0) return;
19 | if (paths.Length > 1) // 只允许存在一个 HCNetSDKCom 文件夹
20 | {
21 | Debug.LogError($"{nameof(AssetsPostProcessing)}: Please make sure there has only one SDK Directory \''HCNetSDKCom\" in the project");
22 | return;
23 | }
24 |
25 | //Step 1 Collect all the dll file under ther hikvision folder 获取海康威视所有 Dll 文件列表
26 | var HC_SDK_DIR = new DirectoryInfo(AssetDatabase.GUIDToAssetPath(paths[0]));
27 | FileInfo[] core_dll = HC_SDK_DIR.GetFiles("*.dll", SearchOption.AllDirectories);
28 |
29 | //Step 2 Collect and put the dll files back into the "HCNetSDKCom" folder; 将 Unity 打包时弄混的Hikvision的dll文件再捋出来放回 “HCNetSDKCom”文件夹.
30 | string app_path = pathToBuiltProject.Substring(0, pathToBuiltProject.LastIndexOf("/"));
31 | string pluginPath = "Plugins" +
32 | #if UNITY_2019_4_OR_NEWER
33 | "/x86_64/";
34 | #endif
35 | string dstpath = Path.Combine(app_path, $"{Application.productName}_Data", pluginPath, "HCNetSDKCom");//拼接并创建 HCNetSDKCom 文件夹;
36 | if (!Directory.Exists(dstpath))
37 | {
38 | Directory.CreateDirectory(dstpath);
39 | }
40 | var dst_Dir_Info = new DirectoryInfo(dstpath);
41 | for (int i = 0; i < core_dll.Length; i++)
42 | {
43 | string srcfile = Path.Combine(dst_Dir_Info.Parent.FullName, core_dll[i].Name); //拼接Unity dll 文件混着放的路径
44 | string dstfile = Path.Combine(dstpath, core_dll[i].Name); // 拼接 dll 新路径 ;
45 | Directory.Move(srcfile, dstfile);//5. 转移文件
46 | }
47 | }
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/Assets/Security Camera Toolkit/Editor/AssetsPostProcessor.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: daa27197d086ec646aafb08d3eecfa21
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/Security Camera Toolkit/Editor/Localization.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 15dc4c8a1497c6841ab308d31db2e8ab
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Security Camera Toolkit/Editor/Localization/GUIContentEx.cs:
--------------------------------------------------------------------------------
1 | using UnityEngine;
2 | namespace zFramework.Localization
3 | {
4 | public class GUIContentEx : GUIContent
5 | {
6 | ///
7 | ///
8 | ///
9 | /// 用于查询的前置索引
10 | ///
11 | ///
12 | public GUIContentEx(string prefix,string label_key, string tooltip_key)
13 | {
14 | if (!string.IsNullOrEmpty(label_key))
15 | {
16 | this.text = WordMappings.GetSentence(prefix, label_key);
17 | }
18 | if (!string.IsNullOrEmpty(tooltip_key))
19 | {
20 | this.tooltip = WordMappings.GetSentence(prefix, tooltip_key);
21 | }
22 | }
23 | }
24 | }
--------------------------------------------------------------------------------
/Assets/Security Camera Toolkit/Editor/Localization/GUIContentEx.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 24bc2a195a24a0a45977907ee9a5694f
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/Security Camera Toolkit/Editor/Localization/Generated.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 61864d96ace166f40a547a073fb51c4b
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Security Camera Toolkit/Editor/Localization/Generated/WordMappings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!114 &11400000
4 | MonoBehaviour:
5 | m_ObjectHideFlags: 0
6 | m_CorrespondingSourceObject: {fileID: 0}
7 | m_PrefabInstance: {fileID: 0}
8 | m_PrefabAsset: {fileID: 0}
9 | m_GameObject: {fileID: 0}
10 | m_Enabled: 1
11 | m_EditorHideFlags: 0
12 | m_Script: {fileID: 11500000, guid: 9f0fc2a2d46ab204ea4962ccf95558f8, type: 3}
13 | m_Name: WordMappings
14 | m_EditorClassIdentifier:
15 | reverse: 0
16 | mapCollections:
17 | - {fileID: 5470622131655373211}
18 | - {fileID: 1778837946094705063}
19 | --- !u!114 &1778837946094705063
20 | MonoBehaviour:
21 | m_ObjectHideFlags: 0
22 | m_CorrespondingSourceObject: {fileID: 0}
23 | m_PrefabInstance: {fileID: 0}
24 | m_PrefabAsset: {fileID: 0}
25 | m_GameObject: {fileID: 0}
26 | m_Enabled: 1
27 | m_EditorHideFlags: 0
28 | m_Script: {fileID: 11500000, guid: 8c7a1cee5358fbe419b192cf1a8d2f39, type: 3}
29 | m_Name: 01-ForNVRConfiguration
30 | m_EditorClassIdentifier:
31 | maps:
32 | - key: nvr_arr_tootip
33 | english: Type in your nvr info here,so we can load it automatically
34 | chinese: "\u5728\u6B64\u5904\u8F93\u5165\u60A8\u7684 nvr \u4FE1\u606F\uFF0C\u4EE5\u4FBF\u6211\u4EEC\u81EA\u52A8\u52A0\u8F7D"
35 | - key: nvr_arr_label
36 | english: NVR Collection
37 | chinese: "NVR \u5217\u8868"
38 | - key: nvr_config_title
39 | english: NVR Configuration
40 | chinese: "NVR \u914D\u7F6E\u9762\u677F"
41 | --- !u!114 &5470622131655373211
42 | MonoBehaviour:
43 | m_ObjectHideFlags: 0
44 | m_CorrespondingSourceObject: {fileID: 0}
45 | m_PrefabInstance: {fileID: 0}
46 | m_PrefabAsset: {fileID: 0}
47 | m_GameObject: {fileID: 0}
48 | m_Enabled: 1
49 | m_EditorHideFlags: 0
50 | m_Script: {fileID: 11500000, guid: 8c7a1cee5358fbe419b192cf1a8d2f39, type: 3}
51 | m_Name: 00-ForNVRInofDrawer
52 | m_EditorClassIdentifier:
53 | maps:
54 | - key: host
55 | english: Host
56 | chinese: "\u4E3B\u673A"
57 | - key: mapping
58 | english: Mapping
59 | chinese: "\u6620\u5C04"
60 | - key: enable
61 | english: Enable
62 | chinese: "\u542F\u7528"
63 | - key: disable
64 | english: Disable
65 | chinese: "\u542F\u7528"
66 | - key: user
67 | english: 'User '
68 | chinese: "\u8D26\u53F7"
69 | - key: password
70 | english: Password
71 | chinese: "\u5BC6\u7801"
72 | - key: desc
73 | english: Remarks
74 | chinese: "\u63CF\u8FF0"
75 | - key: label_tooltip_desc
76 | english: Keyin some description as what your like
77 | chinese: "\u8F93\u5165\u5907\u5FD8\u4FE1\u606F"
78 | - key: tooltip_host_error
79 | english: Please use host in ip:port format
80 | chinese: "\u8BF7\u4F7F\u7528 ip:port \u683C\u5F0F\u7684\u4E3B\u673A"
81 | - key: helpbox_host_error
82 | english: The host format is wrong, please correct it!
83 | chinese: "\u4E3B\u673A\u683C\u5F0F\u4E0D\u5BF9,\u8BF7\u4FEE\u6B63!"
84 | - key: host_enable_tip
85 | english: -Host Enable-
86 | chinese: "-\u4E3B\u673A\u5DF2\u542F\u7528-"
87 | - key: mapping_enable_tip
88 | english: -Mapping Enable-
89 | chinese: "-\u6620\u5C04\u4E3B\u673A\u5DF2\u542F\u7528-"
90 | - key: label_tooltip_user
91 | english: NVR Login Account
92 | chinese: "NVR \u767B\u5F55\u8D26\u53F7"
93 | - key: label_tooltip_psw
94 | english: "NVR Login Password\uFF0Cshow psw by click"
95 | chinese: "NVR \u767B\u5F55\u5BC6\u7801,\u70B9\u51FB\u5C55\u793A\u5BC6\u7801"
96 | - key: default_title_host
97 | english: Please assign a NVR host
98 | chinese: "\u8BF7\u5206\u914D NVR \u4E3B\u673A"
99 |
--------------------------------------------------------------------------------
/Assets/Security Camera Toolkit/Editor/Localization/Generated/WordMappings.asset.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 9b51048736d89734d8a3851b5bfe2c39
3 | NativeFormatImporter:
4 | externalObjects: {}
5 | mainObjectFileID: 11400000
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Security Camera Toolkit/Editor/Localization/Map.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace zFramework.Localization
4 | {
5 | [Serializable]
6 | public class Map
7 | {
8 | public string key;
9 | public string english;
10 | public string chinese;
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/Assets/Security Camera Toolkit/Editor/Localization/Map.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: fe145ec547aa663498a8ee8457f99a57
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/Security Camera Toolkit/Editor/Localization/MapCollection.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 | using UnityEditor;
3 | using UnityEngine;
4 |
5 | namespace zFramework.Localization
6 | {
7 | public class MapCollection : ScriptableObject
8 | {
9 | public List