├── Assets ├── ColorPicker.meta ├── ColorPicker │ ├── Prefabs.meta │ ├── Prefabs │ │ ├── ColorPicker.prefab │ │ └── ColorPicker.prefab.meta │ ├── Scripts.meta │ ├── Scripts │ │ ├── ColorPicker.cs │ │ ├── ColorPicker.cs.meta │ │ ├── HSVColor.cs │ │ ├── HSVColor.cs.meta │ │ ├── UIEvent.cs │ │ └── UIEvent.cs.meta │ ├── Textures.meta │ └── Textures │ │ ├── Blank.png │ │ ├── Blank.png.meta │ │ ├── PlaceHolder.png │ │ ├── PlaceHolder.png.meta │ │ ├── Selector.png │ │ ├── Selector.png.meta │ │ ├── pixel.png │ │ ├── pixel.png.meta │ │ ├── spectrum.png │ │ └── spectrum.png.meta ├── Framework.meta ├── Framework │ ├── Editor.meta │ ├── Editor │ │ ├── AssetBundleBuild.cs │ │ ├── AssetBundleBuild.cs.meta │ │ ├── Build.cs │ │ ├── Build.cs.meta │ │ ├── ChangeFont.cs │ │ ├── ChangeFont.cs.meta │ │ ├── ObjectModify.cs │ │ └── ObjectModify.cs.meta │ ├── Scripts.meta │ └── Scripts │ │ ├── Camera.meta │ │ ├── Camera │ │ ├── CameraMove.cs │ │ ├── CameraMove.cs.meta │ │ ├── CameraRotate.cs │ │ ├── CameraRotate.cs.meta │ │ ├── CameraZoom.cs │ │ ├── CameraZoom.cs.meta │ │ ├── ModelShowController.cs │ │ └── ModelShowController.cs.meta │ │ ├── Config.cs │ │ ├── Config.cs.meta │ │ ├── Controller.meta │ │ ├── Controller │ │ ├── FirstPersonController.cs │ │ └── FirstPersonController.cs.meta │ │ ├── Core.meta │ │ ├── Core │ │ ├── NotificationCenter.cs │ │ ├── NotificationCenter.cs.meta │ │ ├── ObjectPool.cs │ │ ├── ObjectPool.cs.meta │ │ ├── PoolObject.cs │ │ ├── PoolObject.cs.meta │ │ ├── PriorityQueue.cs │ │ ├── PriorityQueue.cs.meta │ │ ├── Singleton.cs │ │ └── Singleton.cs.meta │ │ ├── DataManager.cs │ │ ├── DataManager.cs.meta │ │ ├── IO.meta │ │ ├── IO │ │ ├── AssetBundleLoader.cs │ │ ├── AssetBundleLoader.cs.meta │ │ ├── AssetBundleManager.cs │ │ ├── AssetBundleManager.cs.meta │ │ ├── ResourceManager.cs │ │ └── ResourceManager.cs.meta │ │ ├── Network.meta │ │ ├── Network │ │ ├── ByteBuffer.cs │ │ ├── ByteBuffer.cs.meta │ │ ├── Converter.cs │ │ ├── Converter.cs.meta │ │ ├── HttpManager.cs │ │ ├── HttpManager.cs.meta │ │ ├── NetworkManager.cs │ │ ├── NetworkManager.cs.meta │ │ ├── Protocol.cs │ │ ├── Protocol.cs.meta │ │ ├── SocketClient.cs │ │ └── SocketClient.cs.meta │ │ ├── NotificationType.cs │ │ ├── NotificationType.cs.meta │ │ ├── UI.meta │ │ ├── UI │ │ ├── Base.meta │ │ ├── Base │ │ │ ├── Crosshair.cs │ │ │ ├── Crosshair.cs.meta │ │ │ ├── DragMe.cs │ │ │ ├── DragMe.cs.meta │ │ │ ├── DropMe.cs │ │ │ ├── DropMe.cs.meta │ │ │ ├── ListView.cs │ │ │ ├── ListView.cs.meta │ │ │ ├── PageView.cs │ │ │ ├── PageView.cs.meta │ │ │ ├── TextDeformer.cs │ │ │ ├── TextDeformer.cs.meta │ │ │ ├── TextVertical.cs │ │ │ └── TextVertical.cs.meta │ │ ├── BaseWindow.cs │ │ ├── BaseWindow.cs.meta │ │ ├── GUIManager.cs │ │ └── GUIManager.cs.meta │ │ ├── Utils.meta │ │ ├── Utils │ │ ├── AES.cs │ │ ├── AES.cs.meta │ │ ├── AutoRotate.cs │ │ ├── AutoRotate.cs.meta │ │ ├── CombineChildren.cs │ │ ├── CombineChildren.cs.meta │ │ ├── CombineMeshes.cs │ │ ├── CombineMeshes.cs.meta │ │ ├── DebugConsole.cs │ │ ├── DebugConsole.cs.meta │ │ ├── MeshCombineUtility.cs │ │ ├── MeshCombineUtility.cs.meta │ │ ├── NonConvexMeshCollider.cs │ │ ├── NonConvexMeshCollider.cs.meta │ │ ├── Utils.cs │ │ ├── Utils.cs.meta │ │ ├── XXTEA.cs │ │ └── XXTEA.cs.meta │ │ ├── WindowSystem.meta │ │ └── WindowSystem │ │ ├── OpenFileName.cs │ │ ├── OpenFileName.cs.meta │ │ ├── WindowHandle.cs │ │ └── WindowHandle.cs.meta ├── Plugins.meta ├── Plugins │ ├── Demigiant.meta │ ├── Demigiant │ │ ├── DOTween.meta │ │ └── DOTween │ │ │ ├── DOTween.XML │ │ │ ├── DOTween.XML.meta │ │ │ ├── DOTween.dll │ │ │ ├── DOTween.dll.mdb │ │ │ ├── DOTween.dll.mdb.meta │ │ │ ├── DOTween.dll.meta │ │ │ ├── DOTween43.dll │ │ │ ├── DOTween43.dll.mdb │ │ │ ├── DOTween43.dll.mdb.meta │ │ │ ├── DOTween43.dll.meta │ │ │ ├── DOTween43.xml │ │ │ ├── DOTween43.xml.meta │ │ │ ├── DOTween46.dll │ │ │ ├── DOTween46.dll.mdb │ │ │ ├── DOTween46.dll.mdb.meta │ │ │ ├── DOTween46.dll.meta │ │ │ ├── DOTween46.xml │ │ │ ├── DOTween46.xml.meta │ │ │ ├── DOTween50.dll │ │ │ ├── DOTween50.dll.mdb │ │ │ ├── DOTween50.dll.mdb.meta │ │ │ ├── DOTween50.dll.meta │ │ │ ├── DOTween50.xml │ │ │ ├── DOTween50.xml.meta │ │ │ ├── Editor.meta │ │ │ ├── Editor │ │ │ ├── DOTweenEditor.XML │ │ │ ├── DOTweenEditor.XML.meta │ │ │ ├── DOTweenEditor.dll │ │ │ ├── DOTweenEditor.dll.mdb │ │ │ ├── DOTweenEditor.dll.mdb.meta │ │ │ ├── DOTweenEditor.dll.meta │ │ │ ├── Imgs.meta │ │ │ └── Imgs │ │ │ │ ├── DOTweenIcon.png │ │ │ │ ├── DOTweenIcon.png.meta │ │ │ │ ├── Footer.png │ │ │ │ ├── Footer.png.meta │ │ │ │ ├── Footer_dark.png │ │ │ │ ├── Footer_dark.png.meta │ │ │ │ ├── Header.jpg │ │ │ │ └── Header.jpg.meta │ │ │ ├── readme.txt │ │ │ └── readme.txt.meta │ ├── MiniJSON.cs │ └── MiniJSON.cs.meta ├── Resources.meta ├── Resources │ ├── UI.meta │ └── UI │ │ ├── PanelAlert.prefab │ │ ├── PanelAlert.prefab.meta │ │ ├── PanelColorPicker.prefab │ │ ├── PanelColorPicker.prefab.meta │ │ ├── PanelDataset.prefab │ │ ├── PanelDataset.prefab.meta │ │ ├── PanelLoading.prefab │ │ ├── PanelLoading.prefab.meta │ │ ├── PanelMain.prefab │ │ ├── PanelMain.prefab.meta │ │ ├── PanelRender.prefab │ │ └── PanelRender.prefab.meta ├── Scenes.meta ├── Scenes │ ├── main.unity │ └── main.unity.meta ├── Scripts.meta ├── Scripts │ ├── ColorMapManager.cs │ ├── ColorMapManager.cs.meta │ ├── ControlPoint.cs │ ├── ControlPoint.cs.meta │ ├── ControlPointManager.cs │ ├── ControlPointManager.cs.meta │ ├── GLRenderer.cs │ ├── GLRenderer.cs.meta │ ├── UI.meta │ └── UI │ │ ├── PanelAlert.cs │ │ ├── PanelAlert.cs.meta │ │ ├── PanelDataset.cs │ │ ├── PanelDataset.cs.meta │ │ ├── PanelLoading.cs │ │ ├── PanelLoading.cs.meta │ │ ├── PanelMain.cs │ │ ├── PanelMain.cs.meta │ │ ├── PanelPickColor.cs │ │ ├── PanelPickColor.cs.meta │ │ ├── PanelRender.cs │ │ └── PanelRender.cs.meta ├── Shaders.meta ├── Shaders │ ├── StandardNoDepth.shader │ ├── StandardNoDepth.shader.meta │ ├── VertexColor.shader │ ├── VertexColor.shader.meta │ ├── VertexColorClip.shader │ └── VertexColorClip.shader.meta ├── StreamingAssets.meta ├── StreamingAssets │ ├── presets.json │ └── presets.json.meta ├── Textures.meta ├── Textures │ ├── Blank.png │ ├── Blank.png.meta │ ├── Close.png │ ├── Close.png.meta │ ├── Slice Plane - CutsSlicePlane_Ribbon - Modeling - 32.png │ ├── Slice Plane - CutsSlicePlane_Ribbon - Modeling - 32.png.meta │ ├── arrow.png │ ├── arrow.png.meta │ ├── disc.png │ ├── disc.png.meta │ ├── load.png │ ├── load.png.meta │ ├── settings@2x.png │ └── settings@2x.png.meta ├── VolumeRenderer.meta ├── VolumeRenderer │ ├── Resources.meta │ ├── Resources │ │ ├── SlicingBorderMaterial.mat │ │ ├── SlicingBorderMaterial.mat.meta │ │ ├── SlicingMaterial.mat │ │ ├── SlicingMaterial.mat.meta │ │ ├── SlicingPlane.prefab │ │ ├── SlicingPlane.prefab.meta │ │ ├── VolumeRenderer.prefab │ │ ├── VolumeRenderer.prefab.meta │ │ ├── VolumeRendererMaterial.mat │ │ └── VolumeRendererMaterial.mat.meta │ ├── Scripts.meta │ ├── Scripts │ │ ├── Importer.meta │ │ ├── Importer │ │ │ ├── DICOMImporter.cs │ │ │ ├── DICOMImporter.cs.meta │ │ │ ├── DatasetImporterBase.cs │ │ │ ├── DatasetImporterBase.cs.meta │ │ │ ├── RawDatasetImporter.cs │ │ │ └── RawDatasetImporter.cs.meta │ │ ├── SlicingPlane.cs │ │ ├── SlicingPlane.cs.meta │ │ ├── TransferFunction.meta │ │ ├── TransferFunction │ │ │ ├── TFControlPoints.cs │ │ │ ├── TFControlPoints.cs.meta │ │ │ ├── TransferFunction.cs │ │ │ └── TransferFunction.cs.meta │ │ ├── Utils.meta │ │ ├── Utils │ │ │ ├── HistogramTextureGenerator.cs │ │ │ ├── HistogramTextureGenerator.cs.meta │ │ │ ├── NoiseTextureGenerator.cs │ │ │ ├── NoiseTextureGenerator.cs.meta │ │ │ ├── Utils.cs │ │ │ └── Utils.cs.meta │ │ ├── VolumeDataset.cs │ │ ├── VolumeDataset.cs.meta │ │ ├── VolumeRenderer.cs │ │ └── VolumeRenderer.cs.meta │ ├── Shaders.meta │ └── Shaders │ │ ├── DirectVolumeRendering.cginc │ │ ├── DirectVolumeRendering.cginc.meta │ │ ├── SlicingPlaneRendering.shader │ │ ├── SlicingPlaneRendering.shader.meta │ │ ├── SurfaceVolumeRendering.cginc │ │ ├── SurfaceVolumeRendering.cginc.meta │ │ ├── VolumeRendering.shader │ │ ├── VolumeRendering.shader.meta │ │ ├── VolumeRenderingUtil.cginc │ │ └── VolumeRenderingUtil.cginc.meta ├── fo-dicom.meta └── fo-dicom │ ├── Assets.meta │ ├── Assets │ ├── Plugins.meta │ ├── Plugins │ │ ├── BitMiracle.LibJpeg.Portable.dll │ │ ├── BitMiracle.LibJpeg.Portable.dll.meta │ │ ├── CSJ2K.dll │ │ ├── CSJ2K.dll.meta │ │ ├── Dicom.Core.dll │ │ ├── Dicom.Core.dll.meta │ │ ├── WSA.meta │ │ ├── WSA │ │ │ ├── BitMiracle.LibJpeg.NetCore.dll │ │ │ ├── BitMiracle.LibJpeg.NetCore.dll.meta │ │ │ ├── CSJ2K.dll │ │ │ ├── CSJ2K.dll.meta │ │ │ ├── Dicom.Core.dll │ │ │ ├── Dicom.Core.dll.meta │ │ │ ├── cscharls.dll │ │ │ └── cscharls.dll.meta │ │ ├── cscharls.dll │ │ └── cscharls.dll.meta │ ├── Resources.meta │ └── Resources │ │ ├── DICOM Dictionary.xml │ │ ├── DICOM Dictionary.xml.meta │ │ ├── Private Dictionary.xml │ │ └── Private Dictionary.xml.meta │ ├── Demo.meta │ ├── Demo │ ├── Images.meta │ └── Images │ │ ├── US-RGB-8-epicard.bytes │ │ ├── US-RGB-8-epicard.bytes.meta │ │ ├── VL3_J2KI.bytes │ │ ├── VL3_J2KI.bytes.meta │ │ ├── image_dfl.bytes │ │ └── image_dfl.bytes.meta │ ├── Documentation.meta │ └── Documentation │ ├── License.txt │ ├── License.txt.meta │ ├── README.txt │ └── README.txt.meta ├── Packages └── manifest.json ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── NetworkManager.asset ├── Physics2DSettings.asset ├── PresetManager.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset ├── UPRSettings.asset ├── UnityConnectSettings.asset └── VFXManager.asset ├── README.md └── images ├── colormap1.png ├── colormap2.png ├── colormap3.png ├── raycast.gif ├── screenshoot1.png └── screenshoot2.png /Assets/ColorPicker.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b163fe7f8ba71da499ae0bd4a67cb32d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ColorPicker/Prefabs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aaf816a08f4e04c40a25b28957cb4b14 3 | folderAsset: yes 4 | timeCreated: 1558168981 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ColorPicker/Prefabs/ColorPicker.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eba77c9ffb6340644a4475478f80dc78 3 | timeCreated: 1558168988 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: -1 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ColorPicker/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bf167a8811b30d142acf38e031c82e5e 3 | folderAsset: yes 4 | timeCreated: 1558168981 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ColorPicker/Scripts/ColorPicker.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 329dd32b14e61584492efb4b4468c279 3 | timeCreated: 1558168981 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/ColorPicker/Scripts/HSVColor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 146f67da685f7084d9f640d8a7a36820 3 | timeCreated: 1558168981 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/ColorPicker/Scripts/UIEvent.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using UnityEngine.EventSystems; 5 | using UnityEngine.UI; 6 | 7 | public class UIEvent : MonoBehaviour, IBeginDragHandler, IDragHandler, IEndDragHandler, IPointerDownHandler 8 | { 9 | public Action OnPointerDownCallback; 10 | 11 | public Action OnBeginDragCallback; 12 | public Action OnDragCallback; 13 | public Action OnEndDragCallback; 14 | 15 | public void OnPointerDown(PointerEventData eventData) 16 | { 17 | if (OnPointerDownCallback != null) 18 | OnPointerDownCallback(eventData); 19 | } 20 | 21 | public void OnBeginDrag(PointerEventData eventData) 22 | { 23 | if (OnBeginDragCallback != null) 24 | OnBeginDragCallback(eventData); 25 | } 26 | 27 | public void OnDrag(PointerEventData eventData) 28 | { 29 | if (OnDragCallback != null) 30 | OnDragCallback(eventData); 31 | } 32 | 33 | 34 | public void OnEndDrag(PointerEventData eventData) 35 | { 36 | if (OnEndDragCallback != null) 37 | OnEndDragCallback(eventData); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Assets/ColorPicker/Scripts/UIEvent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 82192fed8025ab344a10c2acf2199fcf 3 | timeCreated: 1558168981 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/ColorPicker/Textures.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4959c425bd32537458b606b2895c06d8 3 | folderAsset: yes 4 | timeCreated: 1448372165 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ColorPicker/Textures/Blank.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdamWu/UnityVolumeRender/20f00593b04a77debb75ba3098ca55cb23478ce9/Assets/ColorPicker/Textures/Blank.png -------------------------------------------------------------------------------- /Assets/ColorPicker/Textures/Blank.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a1dc31cdcb9eb304a84f213a251b0543 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | externalObjects: {} 6 | serializedVersion: 9 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: -1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: -1 35 | aniso: 16 36 | mipBias: -100 37 | wrapU: 1 38 | wrapV: 1 39 | wrapW: 1 40 | nPOTScale: 0 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 1 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 1 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 10 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 1 52 | alphaIsTransparency: 1 53 | spriteTessellationDetail: -1 54 | textureType: 8 55 | textureShape: 1 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | platformSettings: 61 | - serializedVersion: 2 62 | buildTarget: DefaultTexturePlatform 63 | maxTextureSize: 2048 64 | resizeAlgorithm: 0 65 | textureFormat: -1 66 | textureCompression: 1 67 | compressionQuality: 50 68 | crunchedCompression: 0 69 | allowsAlphaSplitting: 0 70 | overridden: 0 71 | androidETC2FallbackOverride: 0 72 | spriteSheet: 73 | serializedVersion: 2 74 | sprites: [] 75 | outline: [] 76 | physicsShape: [] 77 | bones: [] 78 | spriteID: f97b8c8a0b60a644eb86f85429b43bdd 79 | vertices: [] 80 | indices: 81 | edges: [] 82 | weights: [] 83 | spritePackingTag: 84 | pSDRemoveMatte: 0 85 | pSDShowRemoveMatteOption: 0 86 | userData: 87 | assetBundleName: 88 | assetBundleVariant: 89 | -------------------------------------------------------------------------------- /Assets/ColorPicker/Textures/PlaceHolder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdamWu/UnityVolumeRender/20f00593b04a77debb75ba3098ca55cb23478ce9/Assets/ColorPicker/Textures/PlaceHolder.png -------------------------------------------------------------------------------- /Assets/ColorPicker/Textures/Selector.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdamWu/UnityVolumeRender/20f00593b04a77debb75ba3098ca55cb23478ce9/Assets/ColorPicker/Textures/Selector.png -------------------------------------------------------------------------------- /Assets/ColorPicker/Textures/Selector.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2e523b5eecbac2444a2ede854f837152 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | externalObjects: {} 6 | serializedVersion: 9 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: -1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: 1 35 | aniso: 16 36 | mipBias: -100 37 | wrapU: 1 38 | wrapV: 1 39 | wrapW: 1 40 | nPOTScale: 0 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 1 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 450 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 1 52 | alphaIsTransparency: 1 53 | spriteTessellationDetail: -1 54 | textureType: 8 55 | textureShape: 1 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | platformSettings: 61 | - serializedVersion: 2 62 | buildTarget: DefaultTexturePlatform 63 | maxTextureSize: 2048 64 | resizeAlgorithm: 0 65 | textureFormat: -1 66 | textureCompression: 1 67 | compressionQuality: 50 68 | crunchedCompression: 0 69 | allowsAlphaSplitting: 0 70 | overridden: 0 71 | androidETC2FallbackOverride: 0 72 | spriteSheet: 73 | serializedVersion: 2 74 | sprites: [] 75 | outline: [] 76 | physicsShape: [] 77 | bones: [] 78 | spriteID: 3fb5ece680403844da9484499bbf1057 79 | vertices: [] 80 | indices: 81 | edges: [] 82 | weights: [] 83 | spritePackingTag: 84 | pSDRemoveMatte: 0 85 | pSDShowRemoveMatteOption: 0 86 | userData: 87 | assetBundleName: 88 | assetBundleVariant: 89 | -------------------------------------------------------------------------------- /Assets/ColorPicker/Textures/pixel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdamWu/UnityVolumeRender/20f00593b04a77debb75ba3098ca55cb23478ce9/Assets/ColorPicker/Textures/pixel.png -------------------------------------------------------------------------------- /Assets/ColorPicker/Textures/pixel.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c2f4e0fbf69410a4185cc97319286b81 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | externalObjects: {} 6 | serializedVersion: 9 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 0 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: -1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: 0 35 | aniso: 16 36 | mipBias: -100 37 | wrapU: 1 38 | wrapV: 1 39 | wrapW: 1 40 | nPOTScale: 0 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 1 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 1 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 1 52 | alphaIsTransparency: 1 53 | spriteTessellationDetail: -1 54 | textureType: 8 55 | textureShape: 1 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | platformSettings: 61 | - serializedVersion: 2 62 | buildTarget: DefaultTexturePlatform 63 | maxTextureSize: 2048 64 | resizeAlgorithm: 0 65 | textureFormat: -1 66 | textureCompression: 1 67 | compressionQuality: 50 68 | crunchedCompression: 0 69 | allowsAlphaSplitting: 0 70 | overridden: 0 71 | androidETC2FallbackOverride: 0 72 | spriteSheet: 73 | serializedVersion: 2 74 | sprites: [] 75 | outline: [] 76 | physicsShape: [] 77 | bones: [] 78 | spriteID: 8cd71f2e256ebac4b9fde76fe4dd9ca0 79 | vertices: [] 80 | indices: 81 | edges: [] 82 | weights: [] 83 | spritePackingTag: 84 | pSDRemoveMatte: 0 85 | pSDShowRemoveMatteOption: 0 86 | userData: 87 | assetBundleName: 88 | assetBundleVariant: 89 | -------------------------------------------------------------------------------- /Assets/ColorPicker/Textures/spectrum.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdamWu/UnityVolumeRender/20f00593b04a77debb75ba3098ca55cb23478ce9/Assets/ColorPicker/Textures/spectrum.png -------------------------------------------------------------------------------- /Assets/ColorPicker/Textures/spectrum.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1098247f80181fd488f1afa5df9da045 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | externalObjects: {} 6 | serializedVersion: 9 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: -1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: -1 35 | aniso: 16 36 | mipBias: -100 37 | wrapU: 1 38 | wrapV: 1 39 | wrapW: 1 40 | nPOTScale: 0 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 1 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 100 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 1 52 | alphaIsTransparency: 1 53 | spriteTessellationDetail: -1 54 | textureType: 8 55 | textureShape: 1 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | platformSettings: 61 | - serializedVersion: 2 62 | buildTarget: DefaultTexturePlatform 63 | maxTextureSize: 2048 64 | resizeAlgorithm: 0 65 | textureFormat: -1 66 | textureCompression: 1 67 | compressionQuality: 50 68 | crunchedCompression: 0 69 | allowsAlphaSplitting: 0 70 | overridden: 0 71 | androidETC2FallbackOverride: 0 72 | spriteSheet: 73 | serializedVersion: 2 74 | sprites: [] 75 | outline: [] 76 | physicsShape: [] 77 | bones: [] 78 | spriteID: 9d3f159ace836194abc57538b0142341 79 | vertices: [] 80 | indices: 81 | edges: [] 82 | weights: [] 83 | spritePackingTag: 84 | pSDRemoveMatte: 0 85 | pSDShowRemoveMatteOption: 0 86 | userData: 87 | assetBundleName: 88 | assetBundleVariant: 89 | -------------------------------------------------------------------------------- /Assets/Framework.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ab385309162fe854ba2ae9777e78fa79 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Framework/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 38b1a4922441af340b6209f76d7bc241 3 | folderAsset: yes 4 | timeCreated: 1511750083 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Framework/Editor/AssetBundleBuild.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9f355c7bff100de4fa9d9383b7116a34 3 | timeCreated: 1504593047 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Framework/Editor/Build.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fb11d75bf45bf7545afa2a768cb2832a 3 | timeCreated: 1513040863 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Framework/Editor/ChangeFont.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.UI; 3 | using UnityEditor; 4 | 5 | /// 6 | /// 批量修改UI字体脚本,脚本位于Endit文件夹 7 | /// 8 | public class ChangeFontWindow : EditorWindow 9 | { 10 | 11 | 12 | //window菜单下 13 | [MenuItem("Window/Change Font")] 14 | private static void ShowWindow() 15 | { 16 | ChangeFontWindow cw = EditorWindow.GetWindow(true, "Window/Change Font"); 17 | } 18 | 19 | //默认字体 20 | Font toFont;//= new Font("Arial"); 21 | //切换到的字体 22 | static Font toChangeFont; 23 | 24 | 25 | private void OnGUI() 26 | { 27 | GUILayout.Space(10); 28 | GUILayout.Label("目标字体:"); 29 | toFont = (Font) EditorGUILayout.ObjectField(toFont, typeof (Font), true, GUILayout.MinWidth(100f)); 30 | toChangeFont = toFont; 31 | GUILayout.Space(10); 32 | 33 | if (GUILayout.Button("确认修改")) 34 | { 35 | Change(); 36 | } 37 | } 38 | 39 | public static void Change() 40 | { 41 | //获取所有UILabel组件 42 | if (Selection.objects == null || Selection.objects.Length == 0) { 43 | Debug.Log ("not selceted"); 44 | return; 45 | } 46 | Object[] labels = Selection.GetFiltered(typeof (Text), SelectionMode.Deep); 47 | foreach (Object item in labels) 48 | { 49 | Text label = (Text) item; 50 | label.font = toChangeFont; 51 | //label.fontStyle = toChangeFontStyle; 52 | // 如果是NGUI将Text换成UILabel就可以 53 | // UILabel label = (UILabel)item; 54 | // label.trueTypeFont = toChangeFont; 55 | 56 | EditorUtility.SetDirty(item); //重要 57 | } 58 | 59 | Debug.Log ("change ok!"); 60 | } 61 | } -------------------------------------------------------------------------------- /Assets/Framework/Editor/ChangeFont.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7dd3bc1ab7f4e2e40b42b7ffc862c5c9 3 | timeCreated: 1540457980 4 | licenseType: Pro 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/Framework/Editor/ObjectModify.cs: -------------------------------------------------------------------------------- 1 | //using System; 2 | using System.IO; 3 | //using System.Collections; 4 | //using System.Collections.Generic; 5 | using UnityEditor; 6 | using UnityEngine; 7 | using System.Collections.Generic; 8 | 9 | namespace Framework 10 | { 11 | [ExecuteInEditMode] 12 | public class ObjectModify : Editor 13 | { 14 | [MenuItem("Tools/Reset Center Position")] 15 | public static void ResetCenterPosition() 16 | { 17 | Transform parent = Selection.activeGameObject.transform; 18 | Vector3 postion = parent.position; 19 | Quaternion rotation = parent.rotation; 20 | Vector3 scale = parent.localScale; 21 | parent.position = Vector3.zero; 22 | parent.rotation = Quaternion.identity; 23 | parent.localScale = Vector3.one; 24 | 25 | Renderer[] renders = parent.GetComponentsInChildren(); 26 | 27 | for (int i = 0; i < 5; i++) { 28 | // 1次不成功? 29 | Bounds bounds = new Bounds (Vector3.zero, Vector3.zero); 30 | foreach (Renderer child in renders) { 31 | bounds.Encapsulate (child.bounds); 32 | } 33 | 34 | parent.position = postion; 35 | parent.rotation = rotation; 36 | parent.localScale = scale; 37 | 38 | foreach (Transform t in parent) { 39 | t.position = t.position - bounds.center; 40 | } 41 | } 42 | //parent.transform.position = bounds.center + parent.position; 43 | } 44 | } 45 | } -------------------------------------------------------------------------------- /Assets/Framework/Editor/ObjectModify.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f9af89fd5fca84d4db203ad83044613f 3 | timeCreated: 1512965998 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6d3575b5795748d498841f0654a2fef7 3 | folderAsset: yes 4 | timeCreated: 1511750141 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Camera.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c785be7105d982e449c06210f1b82cc9 3 | folderAsset: yes 4 | timeCreated: 1509700587 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Camera/CameraMove.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using UnityEngine.EventSystems; 4 | 5 | namespace Framework 6 | { 7 | // move 8 | public class CameraMove : MonoBehaviour 9 | { 10 | float delta_x, delta_y, speed; 11 | Quaternion rotation; 12 | 13 | void Start() 14 | { 15 | delta_x = 1; delta_y = 1; speed = 0.2f; 16 | StartCoroutine(OnMouseDown()); 17 | } 18 | IEnumerator OnMouseDown() 19 | { 20 | float temp_x, temp_y; 21 | while (true) 22 | { 23 | if (Input.GetMouseButton(1)) 24 | { 25 | temp_x = Input.GetAxis("Mouse X") * speed; 26 | if (transform.position.x - temp_x > -1.8f && transform.position.x - temp_x < 1.8f) 27 | delta_x = temp_x; 28 | else 29 | delta_x = 0; 30 | temp_y = Input.GetAxis("Mouse Y") * speed; 31 | 32 | if (transform.position.y - temp_y > -1.8f && transform.position.y - temp_y < 1.8f) 33 | delta_y = temp_y; 34 | else 35 | delta_y = 0; 36 | // camera.transform.localEulerAngles = new Vector3(0,0, 0); 37 | rotation = Quaternion.Euler(0, transform.rotation.eulerAngles.y, 0); 38 | 39 | transform.position = rotation * new Vector3(-delta_x, -delta_y, 0) + transform.position; 40 | 41 | } 42 | yield return new WaitForFixedUpdate(); //这个很重要,循环执行 43 | } 44 | 45 | } 46 | } 47 | 48 | } -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Camera/CameraMove.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3a73ece611768864a9fa2a3f1b831799 3 | timeCreated: 1510297912 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Camera/CameraRotate.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using UnityEngine.EventSystems; 4 | 5 | namespace Framework 6 | { 7 | // camera旋转 8 | public class CameraRotate : MonoBehaviour 9 | { 10 | public Transform Target; 11 | public float xSpeed = 8; 12 | public float ySpeed = 8; 13 | public float yMinLimit = -50, yMaxLimit = 50; 14 | 15 | private float distance; 16 | private float angleX = 0.0f, angleY = 0.0f; 17 | 18 | public void SetTarget(Transform target) 19 | { 20 | Target = target; 21 | 22 | distance = (transform.position - Target.position).magnitude; 23 | 24 | //Vector3 angles = transform.eulerAngles; 25 | //angleX = angles.y; 26 | //angleY = angles.x; 27 | } 28 | 29 | public void Reset() 30 | { 31 | 32 | transform.rotation = Quaternion.identity; 33 | transform.localPosition = new Vector3(0, 0, -distance); 34 | angleX = 0; 35 | angleY = 0; 36 | } 37 | 38 | void Start() 39 | { 40 | 41 | if (Target == null) return; 42 | distance = (transform.position - Target.position).magnitude; 43 | } 44 | 45 | void Update() 46 | { 47 | if (Target == null) return; 48 | if (EventSystem.current && EventSystem.current.IsPointerOverGameObject()) return; 49 | 50 | if (Input.GetMouseButton(0)) 51 | { 52 | 53 | angleX += Input.GetAxis("Mouse X") * xSpeed; 54 | angleY -= Input.GetAxis("Mouse Y") * xSpeed; 55 | angleY = ClampAngle(angleY, yMinLimit, yMaxLimit); 56 | 57 | Quaternion rotation = Quaternion.Euler(angleY, angleX, 0.0f); 58 | Vector3 disVector = new Vector3(0.0f, 0f, -distance); 59 | //四元数左*向量 60 | Vector3 position = rotation * disVector + Target.position; 61 | 62 | transform.rotation = rotation; 63 | transform.position = position; 64 | 65 | } 66 | } 67 | 68 | static float ClampAngle(float angle, float min, float max) 69 | { 70 | if (angle < -360) 71 | angle += 360; 72 | if (angle > 360) 73 | angle -= 360; 74 | return Mathf.Clamp(angle, min, max); 75 | } 76 | } 77 | 78 | } -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Camera/CameraRotate.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f1743d25c296bbc409641d57a87149b0 3 | timeCreated: 1509700587 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Camera/CameraZoom.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using UnityEngine.EventSystems; 4 | 5 | namespace Framework 6 | { 7 | [RequireComponent(typeof(Camera))] 8 | public class CameraZoom : MonoBehaviour 9 | { 10 | Camera camera; 11 | 12 | void Awake() 13 | { 14 | camera = GetComponent(); 15 | } 16 | void Update() 17 | { 18 | 19 | if (EventSystem.current && EventSystem.current.IsPointerOverGameObject()) return; 20 | 21 | if (Input.GetAxisRaw("Mouse ScrollWheel") < 0) 22 | { 23 | 24 | if (camera.fieldOfView <= 120) 25 | { 26 | camera.fieldOfView += 2; 27 | } 28 | if (camera.orthographicSize <= 100) 29 | { 30 | camera.orthographicSize += 0.5F; 31 | } 32 | } 33 | 34 | if (Input.GetAxis("Mouse ScrollWheel") > 0) 35 | { 36 | if (camera.fieldOfView > 30) 37 | { 38 | camera.fieldOfView -= 2; 39 | } 40 | if (camera.orthographicSize >= 10) 41 | { 42 | camera.orthographicSize -= 0.5f; 43 | } 44 | } 45 | } 46 | } 47 | } -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Camera/CameraZoom.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: baa3c32e9cc56a242b3373421a70f1f6 3 | timeCreated: 1509700587 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Camera/ModelShowController.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1bf4a8625b38e2c4f85a1edb439ca234 3 | timeCreated: 1525841126 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Config.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.IO; 3 | using System.Collections.Generic; 4 | 5 | namespace Framework { 6 | 7 | public class Config { 8 | 9 | // true:资源assetbundle读取 false: 资源本地读取 10 | public const bool UseAssetbundle = false; 11 | 12 | 13 | public static string CdnUrl = ""; //更新资源地址 14 | public static string HttpUrl = ""; 15 | 16 | 17 | static Dictionary> values = new Dictionary>(); 18 | 19 | public static string GetValue(string section, string key) 20 | { 21 | if (values.ContainsKey(section)) 22 | { 23 | if (values[section].ContainsKey(key)) 24 | return values[section][key]; 25 | } 26 | return null; 27 | } 28 | 29 | static void SetValue(string section, string key, string value) 30 | { 31 | if (!values.ContainsKey(section)) 32 | { 33 | values.Add(section, new Dictionary()); 34 | } 35 | values[section][key] = value; 36 | } 37 | 38 | public static bool Init() 39 | { 40 | string filename = Application.streamingAssetsPath + "/config.ini"; 41 | if (!File.Exists(filename)) 42 | { 43 | Debug.Log("error: config.ini not found!"); 44 | return false; 45 | } 46 | string[] lines = File.ReadAllLines(filename); 47 | string section = ""; 48 | for (int i = 0; i < lines.Length; i++) 49 | { 50 | string line = lines[i]; 51 | if (line.StartsWith("[") && line.EndsWith("]")) 52 | { 53 | section = line.Substring(1, line.Length - 2); 54 | continue; 55 | } 56 | string[] strs = lines[i].Split('='); 57 | if (strs.Length == 2) 58 | { 59 | SetValue(section, strs[0].Trim(), strs[1].Trim()); 60 | } 61 | } 62 | 63 | CdnUrl = GetValue("server", "cdn_url"); 64 | HttpUrl = GetValue("server", "http_url"); 65 | 66 | return true; 67 | } 68 | 69 | } 70 | } -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Config.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 02f55b134a9554c438203b687fb85a00 3 | timeCreated: 1509436515 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Controller.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c7ec3e370c5041843a1bfd9444f4787a 3 | folderAsset: yes 4 | timeCreated: 1510541714 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Controller/FirstPersonController.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0b1727e87043a914aaa556bdd08a2608 3 | timeCreated: 1533869582 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Core.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2d514a089dfd0c048a9fed46cce13a5f 3 | folderAsset: yes 4 | timeCreated: 1511750459 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Core/NotificationCenter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a3753d72db8234c458368eafaea41811 3 | timeCreated: 1487917958 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Core/ObjectPool.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7433a092aafc62f4d9bf551a84bdb5c6 3 | timeCreated: 1490770315 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Core/PoolObject.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Unless otherwise licensed, this file cannot be copied or redistributed in any format without the explicit consent of the author. 3 | * (c) Preet Kamal Singh Minhas, http://marchingbytes.com 4 | * contact@marchingbytes.com 5 | */ 6 | using UnityEngine; 7 | using System.Collections; 8 | 9 | namespace Framework 10 | { 11 | public class PoolObject : MonoBehaviour 12 | { 13 | public string poolName; 14 | //defines whether the object is waiting in pool or is in use 15 | public bool isPooled; 16 | 17 | public float lifetime = 0; 18 | 19 | void OnEnable() 20 | { 21 | if (lifetime > 0) 22 | { 23 | StartCoroutine(AutoDestroy(lifetime)); 24 | } 25 | } 26 | 27 | void OnDisable() 28 | { 29 | StopAllCoroutines(); 30 | } 31 | 32 | IEnumerator AutoDestroy(float time) 33 | { 34 | yield return new WaitForSeconds(time); 35 | 36 | // recycle 37 | ObjectPool.Recycle(gameObject); 38 | } 39 | 40 | } 41 | } 42 | 43 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Core/PoolObject.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f3210a2c4f92eb342bbc014925a26678 3 | timeCreated: 1490760897 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Core/PriorityQueue.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdamWu/UnityVolumeRender/20f00593b04a77debb75ba3098ca55cb23478ce9/Assets/Framework/Scripts/Core/PriorityQueue.cs -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Core/PriorityQueue.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 99b141c9538f3d940948a87596a7abf2 3 | timeCreated: 1487917952 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Core/Singleton.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | namespace Framework 5 | { 6 | /// 7 | /// Singleton base class 8 | /// 9 | public class Singleton : MonoBehaviour where T : MonoBehaviour 10 | { 11 | 12 | private static T _instance; 13 | private static object _lock = new object(); 14 | 15 | public static T Instance 16 | { 17 | get 18 | { 19 | lock (_lock) 20 | { 21 | if (applicationIsQuitting) return null; 22 | 23 | if (_instance == null) 24 | { 25 | _instance = (T)FindObjectOfType(typeof(T)); 26 | if (_instance == null) 27 | { 28 | GameObject singleton = new GameObject(); 29 | _instance = singleton.AddComponent(); 30 | singleton.name = string.Format("[{0}]", typeof(T).ToString()); 31 | DontDestroyOnLoad(singleton); 32 | } 33 | } 34 | return _instance; 35 | } 36 | } 37 | } 38 | 39 | private static bool ClearMode = false; 40 | private static bool applicationIsQuitting = false; 41 | /// 42 | /// Bugfix When Unity Quit 43 | /// 44 | public void OnDestroy() 45 | { 46 | if (ClearMode == false) 47 | applicationIsQuitting = true; 48 | ClearMode = false; 49 | } 50 | 51 | public static void DestorySingleton() 52 | { 53 | lock (_lock) 54 | { 55 | if (_instance != null) 56 | { 57 | ClearMode = true; 58 | GameObject.Destroy(_instance.gameObject); 59 | _instance = null; 60 | } 61 | } 62 | } 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Core/Singleton.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cd8997fc6258f584d92fc25b3f5ac455 3 | timeCreated: 1511750502 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/DataManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6d6a7f5e62f93a7418147b4fe68533ce 3 | timeCreated: 1513764425 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/IO.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ad2e8d175ed011a46860348531d7d9cb 3 | folderAsset: yes 4 | timeCreated: 1513745437 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/IO/AssetBundleLoader.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | #if UNITY_EDITOR 3 | using UnityEditor; 4 | #endif 5 | using System; 6 | using System.Collections; 7 | using System.Collections.Generic; 8 | using System.IO; 9 | namespace Framework 10 | { 11 | public class AssetBundleLoader 12 | { 13 | 14 | #if UNITY_EDITOR 15 | public static string GetPlatformFolderForAssetBundles(BuildTarget target) 16 | { 17 | switch (target) 18 | { 19 | case BuildTarget.Android: 20 | return "Android"; 21 | case BuildTarget.iOS: 22 | return "iOS"; 23 | case BuildTarget.WebGL: 24 | return "WebGL"; 25 | case BuildTarget.StandaloneWindows: 26 | case BuildTarget.StandaloneWindows64: 27 | return "Windows"; 28 | case BuildTarget.StandaloneOSXIntel: 29 | case BuildTarget.StandaloneOSXIntel64: 30 | case BuildTarget.StandaloneOSX: 31 | return "OSX"; 32 | default: 33 | return null; 34 | } 35 | } 36 | #endif 37 | 38 | public static string GetPlatformFolderForAssetBundles(RuntimePlatform platform) 39 | { 40 | switch (platform) 41 | { 42 | case RuntimePlatform.Android: 43 | return "Android"; 44 | case RuntimePlatform.IPhonePlayer: 45 | return "iOS"; 46 | case RuntimePlatform.WebGLPlayer: 47 | return "WebGL"; 48 | case RuntimePlatform.WindowsPlayer: 49 | return "Windows"; 50 | case RuntimePlatform.OSXPlayer: 51 | return "OSX"; 52 | default: 53 | return null; 54 | } 55 | } 56 | 57 | public static string GetPlatformFolderForAssetBundles() 58 | { 59 | #if UNITY_EDITOR 60 | return GetPlatformFolderForAssetBundles(EditorUserBuildSettings.activeBuildTarget); 61 | #else 62 | return GetPlatformFolderForAssetBundles(Application.platform); 63 | #endif 64 | } 65 | 66 | // WWW加载时StreamingAsset各平台路径 67 | public static readonly string STREAMING_ASSET_PATH = 68 | #if !UNITY_EDITOR && UNITY_WEBGL 69 | Path.Combine (Application.streamingAssetsPath, GetPlatformFolderForAssetBundles ()); 70 | #elif !UNITY_EDITOR && UNITY_ANDROID 71 | Path.Combine (Application.streamingAssetsPath , GetPlatformFolderForAssetBundles ()); 72 | #else 73 | Path.Combine("file://" + Application.streamingAssetsPath, GetPlatformFolderForAssetBundles()); 74 | #endif 75 | // WWW加载时PersistentPath各平台路径 76 | public static readonly string PERSISTENT_ASSET_PATH = 77 | #if !UNITY_EDITOR && UNITY_ANDROID 78 | "file://" + Application.persistentDataPath; 79 | #elif !UNITY_EDITOR && UNITY_IOS 80 | "file://" + Application.persistentDataPath; 81 | #else 82 | "file:///" + Application.persistentDataPath; 83 | #endif 84 | 85 | public static string ASSET_PATH = STREAMING_ASSET_PATH; 86 | public static string ASSET_PATH_LOCAL = STREAMING_ASSET_PATH; 87 | } 88 | } -------------------------------------------------------------------------------- /Assets/Framework/Scripts/IO/AssetBundleLoader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3698d94bfe3c6574d9253e32f0f08c78 3 | timeCreated: 1511750252 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/IO/AssetBundleManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 335afe5eadde4ec4396cf413ae0d5dc7 3 | timeCreated: 1509436391 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/IO/ResourceManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: da4aee7bf6b349d47991ebd3327207f6 3 | timeCreated: 1509436391 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Network.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 46544bba47f3a454ca04df97a20a2419 3 | folderAsset: yes 4 | timeCreated: 1510300706 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Network/ByteBuffer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b2b21f02a43963a4baf3a5abd3c98ceb 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Network/Converter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1ccd07face6ebb5469d1cbed8e8b4789 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Network/HttpManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0cfe4d20038b2054e84315fd0fd5f23e 3 | timeCreated: 1510298485 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Network/NetworkManager.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdamWu/UnityVolumeRender/20f00593b04a77debb75ba3098ca55cb23478ce9/Assets/Framework/Scripts/Network/NetworkManager.cs -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Network/NetworkManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7f128705dd8ea544d91af3c335e94a02 3 | timeCreated: 1510298485 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Network/Protocol.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdamWu/UnityVolumeRender/20f00593b04a77debb75ba3098ca55cb23478ce9/Assets/Framework/Scripts/Network/Protocol.cs -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Network/Protocol.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1aa430cb4d282f44bb20452e1f2b3fab 3 | timeCreated: 1487558997 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Network/SocketClient.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2c8a96e463bf5d74ca866ab1a04f00d2 3 | timeCreated: 1440243780 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/NotificationType.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | /// 4 | ///通知类型 5 | /// 6 | public class NotificationType { 7 | 8 | // UI 9 | public const string SHOW_ALERT = "show_alert"; 10 | public const string SHOW_TIP = "show_tip"; 11 | public const string HIDE_TIP = "hide_tip"; 12 | 13 | // task 14 | public const string TASK_FINISH = "task_finish"; // 任务完成通知 15 | public const string TASK_STEP_FINISH = "task_step_finish"; // 任务中一小步完成 16 | public const string TASK_STEP_ERROR = "task_step_error"; // 错误操作 17 | public const string TASK_ENTITY_TRIGGER = "task_entity_trigger"; // entity触发 18 | public const string TASK_ENTITY_VARIABLE_CHANGE = "task_entity_variable_change"; // entity属性变化 19 | public const string TASK_RULE_WRONG = "task_rule_wrong"; // rule出错 20 | 21 | public const string TASK_ANSWER = "task_answer"; // 插题的答案 22 | // 例子 23 | public const string SHOW_MAIN_ENTITY = "show_main_entity"; 24 | public const string HIDE_MAIN_ENTITY = "hide_main_entity"; 25 | 26 | public const string ON_MOUSE_ENTER = "on_mouse_enter"; 27 | public const string ON_MOUSE_EXIT = "on_mouse_exit"; 28 | public const string ON_MOUSE_DOWN = "on_mouse_down"; 29 | public const string ON_MOUSE_UP = "on_mouse_up"; 30 | 31 | public const string ON_PLAYER_MOVE = "on_player_move"; 32 | 33 | 34 | // volume render 35 | public const string VR_DATASET_LOAD = "vr_dataset_load"; 36 | public const string VR_DATASET_SELECT = "vr_dataset_select"; 37 | public const string VR_CONTROLPOINT_SELECT = "vr_controlpoint_select"; 38 | public const string VR_CONTROLPOINT_ADD = "vr_controlpoint_add"; 39 | public const string VR_CONTROLPOINT_DELETE = "vr_controlpoint_delete"; 40 | public const string VR_CONTROLPOINT_UPDATE = "vr_controlpoint_update"; 41 | public const string VR_RENDER_REFRESH = "vr_render_refresh"; 42 | public const string VR_COLORMAP_UPDATE = "vr_colormap_update"; 43 | 44 | } -------------------------------------------------------------------------------- /Assets/Framework/Scripts/NotificationType.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 35c89ba63e949914aacdc534a3d3340e 3 | timeCreated: 1509592415 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/UI.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6ea39a091bcb2a54087d59d0400ea0ac 3 | folderAsset: yes 4 | timeCreated: 1508310746 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/UI/Base.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9ae7145e36cba3a41a20bd1eac3bc1c4 3 | folderAsset: yes 4 | timeCreated: 1509519356 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/UI/Base/Crosshair.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | namespace Framework 5 | { 6 | public class Crosshair : MonoBehaviour 7 | { 8 | public Texture2D crosshairImage; 9 | 10 | void OnGUI() 11 | { 12 | float xMin = (Screen.width / 2) - (crosshairImage.width / 2); 13 | float yMin = (Screen.height / 2) - (crosshairImage.height / 2); 14 | GUI.DrawTexture(new Rect(xMin, yMin, crosshairImage.width, crosshairImage.height), crosshairImage); 15 | } 16 | 17 | } 18 | 19 | } -------------------------------------------------------------------------------- /Assets/Framework/Scripts/UI/Base/Crosshair.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 201f21009c645b442b29470c69d8a581 3 | timeCreated: 1498025054 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/UI/Base/DragMe.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 646afdc7b3888a5458608d44d006728f 3 | timeCreated: 1498025054 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/UI/Base/DropMe.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Reflection; 3 | using UnityEngine; 4 | using UnityEngine.EventSystems; 5 | using UnityEngine.UI; 6 | 7 | namespace Framework 8 | { 9 | public class DropMe : MonoBehaviour, IDropHandler, IPointerEnterHandler, IPointerExitHandler 10 | { 11 | public Image containerImage; 12 | 13 | public Action callback; 14 | 15 | private Color normalColor; 16 | public Color highlightColor = Color.yellow; 17 | 18 | public void OnEnable() 19 | { 20 | if (containerImage != null) 21 | normalColor = containerImage.color; 22 | } 23 | 24 | public void OnDrop(PointerEventData data) 25 | { 26 | containerImage.color = normalColor; 27 | 28 | Sprite dropSprite = GetDropSprite(data); 29 | if (dropSprite != null) 30 | { 31 | if (callback != null) callback(gameObject, data.pointerDrag); 32 | } 33 | } 34 | 35 | public void OnPointerEnter(PointerEventData data) 36 | { 37 | if (containerImage == null) 38 | return; 39 | 40 | Sprite dropSprite = GetDropSprite(data); 41 | if (dropSprite != null) 42 | containerImage.color = highlightColor; 43 | } 44 | 45 | public void OnPointerExit(PointerEventData data) 46 | { 47 | if (containerImage == null) 48 | return; 49 | 50 | containerImage.color = normalColor; 51 | } 52 | 53 | private Sprite GetDropSprite(PointerEventData data) 54 | { 55 | var originalObj = data.pointerDrag; 56 | if (originalObj == null) 57 | return null; 58 | 59 | var dragMe = originalObj.GetComponent(); 60 | if (dragMe == null) 61 | return null; 62 | 63 | var srcImage = originalObj.GetComponent(); 64 | if (srcImage == null) 65 | return null; 66 | 67 | return srcImage.sprite; 68 | } 69 | } 70 | 71 | } -------------------------------------------------------------------------------- /Assets/Framework/Scripts/UI/Base/DropMe.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 12d2ad69f978d074c80a4221e0aed0f7 3 | timeCreated: 1498025054 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/UI/Base/ListView.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 23359f34c77d69b499cc6119c33416fd 3 | timeCreated: 1498025054 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/UI/Base/PageView.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a56fd29320d49bc41b03572ce92eddae 3 | timeCreated: 1498707259 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/UI/Base/TextDeformer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9cf824550cbf11546bb98e5ad5ba9917 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/UI/Base/TextVertical.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aedcb71d7d8e7124cb587a15e471a545 3 | timeCreated: 1499771698 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/UI/BaseWindow.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace Framework { 4 | 5 | public abstract class BaseWindow : MonoBehaviour { 6 | 7 | public abstract void Init(params object[] data); 8 | 9 | } 10 | 11 | } 12 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/UI/BaseWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 256ad1c737cf5184ca97fca7752603b7 3 | timeCreated: 1513844864 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/UI/GUIManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 596912ae9af44e947882330d353be567 3 | timeCreated: 1513745437 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Utils.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0b193d3c5fb6f2c4083a5875777910ca 3 | folderAsset: yes 4 | timeCreated: 1511750154 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Utils/AES.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using System.Security.Cryptography; 4 | using System.Text; 5 | using System.IO; 6 | using System; 7 | 8 | public class AES 9 | { 10 | private static string Key 11 | { 12 | get 13 | { 14 | return "abcdef1234567890"; ////必须是16位 15 | } 16 | } 17 | //默认密钥向量 18 | private static byte[] _key1 = { 0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF, 0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF }; 19 | /// 20 | /// AES加密算法 21 | /// 22 | /// 明文字符串 23 | /// 将加密后的密文转换为Base64编码,以便显示 24 | public static byte[] AESEncrypt(byte[] data) 25 | { 26 | //分组加密算法 27 | SymmetricAlgorithm des = Rijndael.Create(); 28 | byte[] inputByteArray = data;//得到需要加密的字节数组 29 | //设置密钥及密钥向量 30 | des.Key = Encoding.UTF8.GetBytes(Key); 31 | des.IV = _key1; 32 | byte[] cipherBytes = null; 33 | using (MemoryStream ms = new MemoryStream()) 34 | { 35 | using (CryptoStream cs = new CryptoStream(ms, des.CreateEncryptor(), CryptoStreamMode.Write)) 36 | { 37 | cs.Write(inputByteArray, 0, inputByteArray.Length); 38 | cs.FlushFinalBlock(); 39 | cipherBytes = ms.ToArray();//得到加密后的字节数组 40 | cs.Close(); 41 | } 42 | ms.Close(); 43 | } 44 | return cipherBytes; 45 | } 46 | /// 47 | /// AES解密 48 | /// 49 | /// 密文字符串 50 | /// 返回解密后的明文字符串 51 | public static byte[] AESDecrypt(byte[] data) 52 | { 53 | Debug.Log ("AESDecrypt " + data.Length); 54 | byte[] cipherText = data; 55 | SymmetricAlgorithm des = Rijndael.Create(); 56 | des.Key = Encoding.UTF8.GetBytes(Key); 57 | des.IV = _key1; 58 | byte[] decryptBytes = new byte[cipherText.Length]; 59 | using (MemoryStream ms = new MemoryStream(cipherText)) 60 | { 61 | using (CryptoStream cs = new CryptoStream(ms, des.CreateDecryptor(), CryptoStreamMode.Read)) 62 | { 63 | cs.Read(decryptBytes, 0, decryptBytes.Length); 64 | cs.Close(); 65 | } 66 | ms.Close(); 67 | } 68 | return decryptBytes; ///将字符串后尾的'\0'去掉 69 | } 70 | } -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Utils/AES.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f14aee14213193b438633587fa19e1cd 3 | timeCreated: 1511848042 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Utils/AutoRotate.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public class AutoRotate : MonoBehaviour { 5 | 6 | public Vector3 vector; 7 | public Space space; 8 | 9 | void Start () { 10 | 11 | } 12 | 13 | void Update () { 14 | transform.Rotate(vector*Time.deltaTime, space); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Utils/AutoRotate.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ccf77724a6a082e4491800d626f64751 3 | timeCreated: 1504597827 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Utils/CombineChildren.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 34039f4d9212ee643a67eafbe3d1e66d 3 | timeCreated: 1521597181 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Utils/CombineMeshes.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 69d948d9056b3dc47b2b8d10aa05e612 3 | timeCreated: 1521597181 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Utils/DebugConsole.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8f39d8fc8ea08f5459396ea3a79e2379 3 | timeCreated: 1507603105 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Utils/MeshCombineUtility.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 60ec8f3c9abab0d4a8a0353a9ffc13f9 3 | timeCreated: 1521597181 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Utils/NonConvexMeshCollider.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b14d31b9f2c435245b60bf51a213526c 3 | timeCreated: 1527133741 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Utils/Utils.cs: -------------------------------------------------------------------------------- 1 | 2 | using UnityEngine; 3 | using System.Collections; 4 | using System.Collections.Generic; 5 | 6 | namespace Framework 7 | { 8 | public class Utils { 9 | 10 | // Find GameObject by name 11 | // 解决gameobject隐藏,GameObject.Find无法找到 12 | public static GameObject FindGameObject(string name) { 13 | GameObject go = GameObject.Find (name); 14 | if (go == null) { 15 | string[] strs = name.Split ('/'); 16 | if (strs.Length > 1) { 17 | go = GameObject.Find (strs[0]); 18 | Transform tf = go.transform.Find (strs [1]); 19 | go = tf.gameObject; 20 | } 21 | } 22 | return go; 23 | } 24 | 25 | 26 | public static void SetLayerRecusively(GameObject gameObject, int layer) 27 | { 28 | if (gameObject == null) return; 29 | 30 | gameObject.layer = layer; 31 | 32 | foreach(Transform child in gameObject.transform) { 33 | SetLayerRecusively(child.gameObject, layer); 34 | } 35 | 36 | } 37 | 38 | public static bool IsEncrypted(byte[] data) { 39 | byte[] header = new byte[5]; 40 | for (int i = 0; i < 5; i++) { 41 | header [i] = data [i]; 42 | } 43 | if (System.Text.Encoding.Default.GetString (header) != "Unity") { 44 | return true; 45 | } 46 | return false; 47 | } 48 | } 49 | } -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Utils/Utils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ca9811abf29419a49872163b48ab183c 3 | timeCreated: 1527663374 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Utils/XXTEA.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdamWu/UnityVolumeRender/20f00593b04a77debb75ba3098ca55cb23478ce9/Assets/Framework/Scripts/Utils/XXTEA.cs -------------------------------------------------------------------------------- /Assets/Framework/Scripts/Utils/XXTEA.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3e168a2c000ca894582cd8ebb858c9cd 3 | timeCreated: 1521612211 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/WindowSystem.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 27178ec12c8bb2b4dabd7cc50cd98d31 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/WindowSystem/OpenFileName.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 96e83efcb961c1c4d993b6f7116bd2c1 3 | timeCreated: 1535008766 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Framework/Scripts/WindowSystem/WindowHandle.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2c382e102f85d6b4caafabd422b83047 3 | timeCreated: 1536215784 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bb3df7090992e1a45bfbde45ae78e55b 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Demigiant.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5ac8912d5e4c74f4cb9609fbcbb25720 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Demigiant/DOTween.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 77f8ccecdeed2684b8a4bc7daafec80f 3 | folderAsset: yes 4 | timeCreated: 1463733316 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/Demigiant/DOTween/DOTween.XML.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5ec570c4aad08e54aa562697147a6947 3 | TextScriptImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/Plugins/Demigiant/DOTween/DOTween.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdamWu/UnityVolumeRender/20f00593b04a77debb75ba3098ca55cb23478ce9/Assets/Plugins/Demigiant/DOTween/DOTween.dll -------------------------------------------------------------------------------- /Assets/Plugins/Demigiant/DOTween/DOTween.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdamWu/UnityVolumeRender/20f00593b04a77debb75ba3098ca55cb23478ce9/Assets/Plugins/Demigiant/DOTween/DOTween.dll.mdb -------------------------------------------------------------------------------- /Assets/Plugins/Demigiant/DOTween/DOTween.dll.mdb.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5c2dfc56de474cf43acb60e5b0ba64c9 3 | DefaultImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/Plugins/Demigiant/DOTween/DOTween.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6e38ac6b1c3556b4c888ca8552375e1e 3 | PluginImporter: 4 | serializedVersion: 1 5 | iconMap: {} 6 | executionOrder: {} 7 | isPreloaded: 0 8 | platformData: 9 | Any: 10 | enabled: 1 11 | settings: {} 12 | Editor: 13 | enabled: 0 14 | settings: 15 | DefaultValueInitialized: true 16 | WindowsStoreApps: 17 | enabled: 0 18 | settings: 19 | CPU: AnyCPU 20 | userData: 21 | assetBundleName: 22 | assetBundleVariant: 23 | -------------------------------------------------------------------------------- /Assets/Plugins/Demigiant/DOTween/DOTween43.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdamWu/UnityVolumeRender/20f00593b04a77debb75ba3098ca55cb23478ce9/Assets/Plugins/Demigiant/DOTween/DOTween43.dll -------------------------------------------------------------------------------- /Assets/Plugins/Demigiant/DOTween/DOTween43.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdamWu/UnityVolumeRender/20f00593b04a77debb75ba3098ca55cb23478ce9/Assets/Plugins/Demigiant/DOTween/DOTween43.dll.mdb -------------------------------------------------------------------------------- /Assets/Plugins/Demigiant/DOTween/DOTween43.dll.mdb.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a3d6baabe88e6154e9fccbffc96cafa5 3 | timeCreated: 1463733597 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Demigiant/DOTween/DOTween43.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5c449678ff17ea847b5546370843d4f0 3 | timeCreated: 1463733598 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | platformData: 11 | Any: 12 | enabled: 1 13 | settings: {} 14 | Editor: 15 | enabled: 0 16 | settings: 17 | DefaultValueInitialized: true 18 | WindowsStoreApps: 19 | enabled: 0 20 | settings: 21 | CPU: AnyCPU 22 | userData: 23 | assetBundleName: 24 | assetBundleVariant: 25 | -------------------------------------------------------------------------------- /Assets/Plugins/Demigiant/DOTween/DOTween43.xml.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7a4b24d8e9a2638498550b7ab5be676f 3 | timeCreated: 1463733599 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Demigiant/DOTween/DOTween46.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdamWu/UnityVolumeRender/20f00593b04a77debb75ba3098ca55cb23478ce9/Assets/Plugins/Demigiant/DOTween/DOTween46.dll -------------------------------------------------------------------------------- /Assets/Plugins/Demigiant/DOTween/DOTween46.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdamWu/UnityVolumeRender/20f00593b04a77debb75ba3098ca55cb23478ce9/Assets/Plugins/Demigiant/DOTween/DOTween46.dll.mdb -------------------------------------------------------------------------------- /Assets/Plugins/Demigiant/DOTween/DOTween46.dll.mdb.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 059e16583ceec50458a7edc9a339eaf7 3 | timeCreated: 1463733597 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Demigiant/DOTween/DOTween46.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3189114cd1919e84e94f2065277d2d90 3 | timeCreated: 1463733598 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | platformData: 11 | Any: 12 | enabled: 1 13 | settings: {} 14 | Editor: 15 | enabled: 0 16 | settings: 17 | DefaultValueInitialized: true 18 | WindowsStoreApps: 19 | enabled: 0 20 | settings: 21 | CPU: AnyCPU 22 | userData: 23 | assetBundleName: 24 | assetBundleVariant: 25 | -------------------------------------------------------------------------------- /Assets/Plugins/Demigiant/DOTween/DOTween46.xml.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2587e421516de124f9ee1cdbc15658c0 3 | timeCreated: 1463733599 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Demigiant/DOTween/DOTween50.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdamWu/UnityVolumeRender/20f00593b04a77debb75ba3098ca55cb23478ce9/Assets/Plugins/Demigiant/DOTween/DOTween50.dll -------------------------------------------------------------------------------- /Assets/Plugins/Demigiant/DOTween/DOTween50.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdamWu/UnityVolumeRender/20f00593b04a77debb75ba3098ca55cb23478ce9/Assets/Plugins/Demigiant/DOTween/DOTween50.dll.mdb -------------------------------------------------------------------------------- /Assets/Plugins/Demigiant/DOTween/DOTween50.dll.mdb.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4ec1f1d62f3a1414b8495ec0a297c728 3 | timeCreated: 1463733597 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Demigiant/DOTween/DOTween50.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8614665715546744bbc3f3487e62965a 3 | timeCreated: 1463733599 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | platformData: 11 | Any: 12 | enabled: 1 13 | settings: {} 14 | Editor: 15 | enabled: 0 16 | settings: 17 | DefaultValueInitialized: true 18 | WindowsStoreApps: 19 | enabled: 0 20 | settings: 21 | CPU: AnyCPU 22 | userData: 23 | assetBundleName: 24 | assetBundleVariant: 25 | -------------------------------------------------------------------------------- /Assets/Plugins/Demigiant/DOTween/DOTween50.xml.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 46b81d7f6b275834ebda5691d476f922 3 | timeCreated: 1463733599 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Demigiant/DOTween/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 099fad234e9c9ab4dbbe47570240ff5f 3 | folderAsset: yes 4 | timeCreated: 1463733316 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/Demigiant/DOTween/Editor/DOTweenEditor.XML: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | DOTweenEditor 5 | 6 | 7 | 8 | 9 | Checks that the given editor texture use the correct import settings, 10 | and applies them if they're incorrect. 11 | 12 | 13 | 14 | 15 | Returns TRUE if addons setup is required. 16 | 17 | 18 | 19 | 20 | Returns TRUE if the file/directory at the given path exists. 21 | 22 | Path, relative to Unity's project folder 23 | 24 | 25 | 26 | 27 | Converts the given project-relative path to a full path, 28 | with backward (\) slashes). 29 | 30 | 31 | 32 | 33 | Converts the given full path to a path usable with AssetDatabase methods 34 | (relative to Unity's project folder, and with the correct Unity forward (/) slashes). 35 | 36 | 37 | 38 | 39 | Connects to a asset. 40 | If the asset already exists at the given path, loads it and returns it. 41 | Otherwise, either returns NULL or automatically creates it before loading and returning it 42 | (depending on the given parameters). 43 | 44 | Asset type 45 | File path (relative to Unity's project folder) 46 | If TRUE and the requested asset doesn't exist, forces its creation 47 | 48 | 49 | 50 | Full path for the given loaded assembly, assembly file included 51 | 52 | 53 | 54 | 55 | Not used as menu item anymore, but as a utiity function 56 | 57 | 58 | 59 | 60 | Setups DOTween 61 | 62 | If TRUE, no warning window appears in case there is no need for setup 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /Assets/Plugins/Demigiant/DOTween/Editor/DOTweenEditor.XML.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5405503ee5afddc42bf1b95cabc6ad89 3 | TextScriptImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/Plugins/Demigiant/DOTween/Editor/DOTweenEditor.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdamWu/UnityVolumeRender/20f00593b04a77debb75ba3098ca55cb23478ce9/Assets/Plugins/Demigiant/DOTween/Editor/DOTweenEditor.dll -------------------------------------------------------------------------------- /Assets/Plugins/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdamWu/UnityVolumeRender/20f00593b04a77debb75ba3098ca55cb23478ce9/Assets/Plugins/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb -------------------------------------------------------------------------------- /Assets/Plugins/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3402d640d15ce8e4bb99cb4cbb26ea7d 3 | DefaultImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/Plugins/Demigiant/DOTween/Editor/DOTweenEditor.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0d6555af380a7264a9cd5a9083b1c4ad 3 | PluginImporter: 4 | serializedVersion: 1 5 | iconMap: {} 6 | executionOrder: {} 7 | isPreloaded: 0 8 | platformData: 9 | Any: 10 | enabled: 0 11 | settings: {} 12 | Editor: 13 | enabled: 1 14 | settings: 15 | DefaultValueInitialized: true 16 | WindowsStoreApps: 17 | enabled: 0 18 | settings: 19 | CPU: AnyCPU 20 | userData: 21 | assetBundleName: 22 | assetBundleVariant: 23 | -------------------------------------------------------------------------------- /Assets/Plugins/Demigiant/DOTween/Editor/Imgs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6b9907913897ca14ba56a27c866db092 3 | folderAsset: yes 4 | timeCreated: 1463733317 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/Demigiant/DOTween/Editor/Imgs/DOTweenIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdamWu/UnityVolumeRender/20f00593b04a77debb75ba3098ca55cb23478ce9/Assets/Plugins/Demigiant/DOTween/Editor/Imgs/DOTweenIcon.png -------------------------------------------------------------------------------- /Assets/Plugins/Demigiant/DOTween/Editor/Imgs/DOTweenIcon.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0d7e06117784ff44bacb9c9e551592b3 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: 0.25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 7 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -1 28 | maxTextureSize: 1024 29 | textureSettings: 30 | filterMode: -1 31 | aniso: -1 32 | mipBias: -1 33 | wrapMode: -1 34 | nPOTScale: 1 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | allowsAlphaSplitting: 0 39 | spriteMode: 0 40 | spriteExtrude: 1 41 | spriteMeshType: 1 42 | alignment: 0 43 | spritePivot: {x: 0.5, y: 0.5} 44 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 45 | spritePixelsToUnits: 100 46 | alphaIsTransparency: 0 47 | textureType: -1 48 | buildTargetSettings: [] 49 | spriteSheet: 50 | sprites: [] 51 | outline: [] 52 | spritePackingTag: 53 | userData: 54 | assetBundleName: 55 | assetBundleVariant: 56 | -------------------------------------------------------------------------------- /Assets/Plugins/Demigiant/DOTween/Editor/Imgs/Footer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdamWu/UnityVolumeRender/20f00593b04a77debb75ba3098ca55cb23478ce9/Assets/Plugins/Demigiant/DOTween/Editor/Imgs/Footer.png -------------------------------------------------------------------------------- /Assets/Plugins/Demigiant/DOTween/Editor/Imgs/Footer.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0ce7b533e9764c141a068fadd859f9a6 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 0 9 | linearTexture: 1 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: 0.25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 7 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -3 28 | maxTextureSize: 256 29 | textureSettings: 30 | filterMode: 1 31 | aniso: 1 32 | mipBias: -1 33 | wrapMode: 1 34 | nPOTScale: 0 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | allowsAlphaSplitting: 0 39 | spriteMode: 0 40 | spriteExtrude: 1 41 | spriteMeshType: 1 42 | alignment: 0 43 | spritePivot: {x: 0.5, y: 0.5} 44 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 45 | spritePixelsToUnits: 100 46 | alphaIsTransparency: 1 47 | textureType: 2 48 | buildTargetSettings: [] 49 | spriteSheet: 50 | sprites: [] 51 | outline: [] 52 | spritePackingTag: 53 | userData: 54 | assetBundleName: 55 | assetBundleVariant: 56 | -------------------------------------------------------------------------------- /Assets/Plugins/Demigiant/DOTween/Editor/Imgs/Footer_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdamWu/UnityVolumeRender/20f00593b04a77debb75ba3098ca55cb23478ce9/Assets/Plugins/Demigiant/DOTween/Editor/Imgs/Footer_dark.png -------------------------------------------------------------------------------- /Assets/Plugins/Demigiant/DOTween/Editor/Imgs/Footer_dark.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 073261fcf37d98645bac61b0e19ec84f 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: 0.25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 7 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -1 28 | maxTextureSize: 1024 29 | textureSettings: 30 | filterMode: -1 31 | aniso: -1 32 | mipBias: -1 33 | wrapMode: -1 34 | nPOTScale: 1 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | allowsAlphaSplitting: 0 39 | spriteMode: 0 40 | spriteExtrude: 1 41 | spriteMeshType: 1 42 | alignment: 0 43 | spritePivot: {x: 0.5, y: 0.5} 44 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 45 | spritePixelsToUnits: 100 46 | alphaIsTransparency: 0 47 | textureType: -1 48 | buildTargetSettings: [] 49 | spriteSheet: 50 | sprites: [] 51 | outline: [] 52 | spritePackingTag: 53 | userData: 54 | assetBundleName: 55 | assetBundleVariant: 56 | -------------------------------------------------------------------------------- /Assets/Plugins/Demigiant/DOTween/Editor/Imgs/Header.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdamWu/UnityVolumeRender/20f00593b04a77debb75ba3098ca55cb23478ce9/Assets/Plugins/Demigiant/DOTween/Editor/Imgs/Header.jpg -------------------------------------------------------------------------------- /Assets/Plugins/Demigiant/DOTween/Editor/Imgs/Header.jpg.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7741b4957200f0747a3c79d148de2402 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 0 9 | linearTexture: 1 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: 0.25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 7 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -3 28 | maxTextureSize: 512 29 | textureSettings: 30 | filterMode: 1 31 | aniso: 1 32 | mipBias: -1 33 | wrapMode: 1 34 | nPOTScale: 0 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | allowsAlphaSplitting: 0 39 | spriteMode: 0 40 | spriteExtrude: 1 41 | spriteMeshType: 1 42 | alignment: 0 43 | spritePivot: {x: 0.5, y: 0.5} 44 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 45 | spritePixelsToUnits: 100 46 | alphaIsTransparency: 1 47 | textureType: 2 48 | buildTargetSettings: [] 49 | spriteSheet: 50 | sprites: [] 51 | outline: [] 52 | spritePackingTag: 53 | userData: 54 | assetBundleName: 55 | assetBundleVariant: 56 | -------------------------------------------------------------------------------- /Assets/Plugins/Demigiant/DOTween/readme.txt: -------------------------------------------------------------------------------- 1 | DOTween and DOTween Pro are copyright (c) 2014 Daniele Giardini - Demigiant 2 | 3 | // GET STARTED ////////////////////////////////////////////// 4 | 5 | - After importing a new DOTween update, select DOTween's Utility Panel from the Tools menu (if it doesn't open automatically) and press the "Setup DOTween..." button to set up additional features based on your Unity version. 6 | - In your code, add "using DG.Tweening" to each class where you want to use DOTween. 7 | - You're ready to tween. Check out the links below for full documentation and license info. 8 | 9 | 10 | // LINKS /////////////////////////////////////////////////////// 11 | 12 | DOTween website (documentation, examples, etc): http://dotween.demigiant.com 13 | DOTween license: http://dotween.demigiant.com/license.php 14 | DOTween repository (Google Code): https://code.google.com/p/dotween/ 15 | 16 | // NOTES ////////////////////////////////////////////////////// 17 | 18 | - DOTween's Utility Panel can be found under "Tools > DOTween Utility Panel" and also contains other useful options, plus a tab to set DOTween's preferences -------------------------------------------------------------------------------- /Assets/Plugins/Demigiant/DOTween/readme.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6a094c30a6fab4a479d30af956a423f0 3 | TextScriptImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/Plugins/MiniJSON.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dd0f31633e807464eb9f4ef4476e5a85 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 256819e16613cac4dbfc5eb488038a79 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Resources/UI.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 43edfff30b5debd4293c213bbc677bee 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Resources/UI/PanelAlert.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aa2d6e55c5f0c644f9f9edd6198eb8bc 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Resources/UI/PanelColorPicker.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d31d324b56dabea44852a0e6f16e8715 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Resources/UI/PanelDataset.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0c64f3faf04258846b0ddb0538718788 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Resources/UI/PanelLoading.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7007cc7b3df5c814f892740c83e51fd1 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Resources/UI/PanelMain.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 83bff274b6bcd784b8b5e251847cf1ab 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Resources/UI/PanelRender.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6d4679b4e50351a48a8daf9ee5afc127 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c179dd600bfceb544be447efd7c49e01 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/main.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: db32c67925da28c4382891752367cdae 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 101271b6e1262384cb12a08fe002d793 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/ColorMapManager.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdamWu/UnityVolumeRender/20f00593b04a77debb75ba3098ca55cb23478ce9/Assets/Scripts/ColorMapManager.cs -------------------------------------------------------------------------------- /Assets/Scripts/ColorMapManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c810bfff448c11a4e87e4ef0ba04fd81 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/ControlPoint.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using UnityEngine.UI; 5 | using UnityEngine.EventSystems; 6 | 7 | public class ControlPoint : MonoBehaviour, IPointerDownHandler, IDragHandler 8 | { 9 | public ControlPointManager Manager { get; set; } 10 | 11 | private RectTransform rectTransform; 12 | private Image image; 13 | 14 | void Awake() 15 | { 16 | rectTransform = GetComponent(); 17 | image = GetComponent(); 18 | } 19 | 20 | public void SetSelected(bool value) 21 | { 22 | image = GetComponent(); 23 | if (value) 24 | { 25 | image.color = new Color(0.9f, 0.6f, 0.1f); 26 | } else 27 | { 28 | image.color = Color.gray; 29 | } 30 | } 31 | 32 | public void OnPointerDown(PointerEventData eventData) 33 | { 34 | Debug.Log("OnPointerClick "+name); 35 | 36 | Manager.OnControlPointSelect(this); 37 | } 38 | 39 | public void OnDrag(PointerEventData eventData) 40 | { 41 | Vector3 pos; 42 | if (RectTransformUtility.ScreenPointToWorldPointInRectangle(rectTransform, eventData.position, null, out pos)) 43 | { 44 | rectTransform.position = pos; 45 | Manager.CalculateControlPointPosition(); 46 | } 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /Assets/Scripts/ControlPoint.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9ecd5294f4bf0d942b9f713db499e49a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/ControlPointManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3281d0c67afa5f14ab2578abd73679a1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/GLRenderer.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections.Generic; 3 | 4 | public interface IGL 5 | { 6 | void Draw(); 7 | } 8 | 9 | public class GLRenderer : MonoBehaviour 10 | { 11 | private static GLRenderer m_instance; 12 | 13 | public static GLRenderer Instance 14 | { 15 | get { return m_instance; } 16 | } 17 | 18 | private List m_renderObjects = new List(); 19 | 20 | public void Add(IGL gl) 21 | { 22 | if (m_renderObjects.Contains(gl)) return; 23 | m_renderObjects.Add(gl); 24 | } 25 | public void Remove(IGL gl) 26 | { 27 | m_renderObjects.Remove(gl); 28 | } 29 | 30 | private void Awake() 31 | { 32 | if(m_instance != null) 33 | { 34 | Debug.LogWarning("Another instance of GLLinesRenderer aleready exist"); 35 | } 36 | m_instance = this; 37 | 38 | } 39 | 40 | private void OnDestroy() 41 | { 42 | if(m_instance == this) 43 | { 44 | m_instance = null; 45 | } 46 | } 47 | 48 | void OnPostRender() 49 | { 50 | for (int i = 0; i < m_renderObjects.Count; i++) 51 | { 52 | IGL gl = m_renderObjects[i]; 53 | gl.Draw(); 54 | } 55 | } 56 | 57 | } 58 | 59 | -------------------------------------------------------------------------------- /Assets/Scripts/GLRenderer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 828c0d1830a949e4ea0739ade20b4698 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/UI.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9b6667f9a76a6e544a995663822e96ba 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/UI/PanelAlert.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.UI; 3 | 4 | using Framework; 5 | 6 | public class PanelAlert : BaseWindow 7 | { 8 | private void Awake() 9 | { 10 | transform.Find("ButtonClose").GetComponent