Coder Social home page Coder Social logo

penguinliong / taichi-unity2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from taichi-dev/taichi-unity2

0.0 1.0 0.0 119 KB

License: Apache License 2.0

C++ 36.96% C 36.22% Objective-C 3.85% PowerShell 1.28% CMake 18.19% Shell 1.53% Objective-C++ 1.98%

taichi-unity2's Introduction

Taichi Unity Native Plugin

This repository provides extension APIs listed in taichi/taichi_unity.h in the main Taichi repository. To build this plugin you can either manually or with Visual Studio.

Prerequisites

You need to set up environement variable TAICHI_REPO_DIR to the root directory of Taichi. For example, if you cloned Taichi with:

cd /path/to/respositories
git clone https://github.com/taichi-dev/taichi

Then you should set TAICHI_REPO_DIR to /path/to/respositories/taichi.

Build with Visual Studio

We recommend you to build with Visual Studio for debugging.

  1. Open this directory in Visual Studio 2019+ with CMake Integration installed;
  2. Wait for auto-configuration to complete;
  3. Choose taichi_unity.dll (bin/taichi_unity.dll) in the drop-down list to the right of the green play button (โ–ถ).
  4. Pick up your built library in out\build\x64-Debug\bin.

Note that if you also want to debug with symbols of taichi_c_api.dll, you need to build Taichi with Visual Studio CMake Integration too for the best experience.

Build with CMake

Run the following commands to build taichi_unity without Visual Studio.

mkdir build
cd build
cmake .. -DTAICHI_C_API_INSTALL_DIR="$env:TAICHI_REPO_DIR/build"
cmake --build .

Then you will find taichi_unity.dll in build/bin/Debug.

Integration to Unity

Copy taichi_unity.dll to Assets/Plugins/x86_64 of your Unity project. Language bindings (function interface and marshalling codes) can be generated with misc/generate_unity_language_binding.py in the main Taichi repository.

taichi-unity2's People

Contributors

damnkk avatar penguinliong avatar yucrazing avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.