{"id":19856552,"url":"https://github.com/vsg-dev/vsgunity","last_synced_at":"2025-05-02T01:31:39.409Z","repository":{"id":44649085,"uuid":"181883030","full_name":"vsg-dev/vsgUnity","owner":"vsg-dev","description":"Vsg Tools for Unity3D","archived":false,"fork":false,"pushed_at":"2022-04-11T06:45:26.000Z","size":44179,"stargazers_count":10,"open_issues_count":1,"forks_count":7,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-06T20:47:51.397Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vsg-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-17T12:05:32.000Z","updated_at":"2024-04-17T10:17:54.000Z","dependencies_parsed_at":"2022-09-25T00:14:46.066Z","dependency_job_id":null,"html_url":"https://github.com/vsg-dev/vsgUnity","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vsg-dev%2FvsgUnity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vsg-dev%2FvsgUnity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vsg-dev%2FvsgUnity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vsg-dev%2FvsgUnity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vsg-dev","download_url":"https://codeload.github.com/vsg-dev/vsgUnity/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251969428,"owners_count":21673202,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T14:15:51.008Z","updated_at":"2025-05-02T01:31:34.393Z","avatar_url":"https://github.com/vsg-dev.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vsgUnity\nNative Unity Plugin for exporting VulkanSceneGraph files from Unity3D.\n\n## Project Layout\nThe vsgUnity project consists of two Libraries\n### unity2vsg\nA C++ library exposing functionality to build, save and preview VSG graphs.\n### vsgUnity\nA Unity3D plugin that utilises unity2vsg to export a Unity GameObject or Scene.\n\nTo aid development a complete Unity project is included in this repository and contains the\nvsgUnity scripts as well as some useful test scenes. To open it select the root UnityProject\nfolder when opening a project in Unity.\n\nThe UnityProject/Assets/vsgUnity folder holds the main plugin scripts and can be copied into other Unity3D projects. When building from source the unity2vsg binary must be copied into UnityProject/Assets/vsgUnity/Native/Plugins/(PlatformName) where (PlatformName) is the name of the OS platform you are using, unity2vsg contains a post build step that should do this for you.\n\nAlso note that you'll need to close Unity any time you want to copy a new unity2vsg binary as it'll\nbe locked and the Unity only reloads the library on startup.\n\n## Building unity2vsg\n### Prerequisites\n* C++17 compliant compiler i.e. g++ 7.3 or later, Clang 6.0 or later, Visual Studio S2017 or later.\n* [Vulkan](https://vulkan.lunarg.com/) 1.1 or later.\n* [glslang](https://github.com/KhronosGroup/glslang)\n* [CMake](https://www.cmake.org) 3.7 or later.\n\nEnsure Vulkan is installed and the VULKAN_SDK environment variable has been set and that glsllang has been built and installed and that it's install path has been added to your CMAKE_PREFIX_PATH. The [VulkanSceneGraph](https://github.com/vsg-dev/VulkanSceneGraph/blob/master/INSTALL.md#detailed-instructions-for-setting-up-your-environment-and-building-for-microsoft-windows) project has more details on these subjects.\n\n### Building for Windows using Visual Studio 2017\nCommand line instructions for default build of shared library (.dll) in source:\n\n    git clone https://github.com/vsg-dev/vsgUnity\n    cd vsgUnity\n    cmake . -G \"Visual Studio 15 2017 Win64\"\n\nA post build step will copy unity2vsg.dll into UnityProject/Assets/vsgUnity/Native/Plugins/Windows.\nEnsure Unity is closed or the .dll file will not copy.\n\n### Building for Unix\nCommand line instructions for default build of shared library (.so) in source:\n\n    git clone https://github.com/vsg-dev/vsgUnity\n    cd vsgUnity\n    cmake .\n    make -j 8\n\nA post build step will copy libunity2vsg.so into UnityProject/Assets/vsgUnity/Native/Plugins/Linux.\nEnsure Unity is closed or the .so file will not copy.\n\n## Using vsgUnity\n\nAs stated above vsgUnity consists of a collection of Unity scripts (.cs files) and the unity2vsg C++ library.\nEverything needed for vsgUnity to run within a Unity project is contained in the UnityProject/Assets/vsgUnity\nfolder. If you want to use vsgUnity in you own project just copy that entire folder.\n\nIf you open the UnityProject folder as a project in Unity you can try out vsgUnity. Once open goto\n\n    Window\u003eVulkanSceneGraph\u003eExporter\n\nA window will popup allowing you to select the GameObject you want to export (leave it blank to export\nthe entire current scene). There are also various options and a option to preview your file ina VSG\nviewer.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvsg-dev%2Fvsgunity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvsg-dev%2Fvsgunity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvsg-dev%2Fvsgunity/lists"}