The JT Unity Plugin is a new tool for JT Open Program members. With the JT Unity plugin developers can dynamically load .jt files into a Unity game while the game is running. The plugin also supports creation of JT Prefabs that can abe dynamiclly loaded or packaged with the app.
The JT for Unity plugin is a Unity Custom Package consisting of C# scripts and plugin libraries that allows users to load native JT files in applications created with Unity. The plugin extracts product structure, tessellated geometry representations, tessellated PMI representations and properties directly from a .jt file into a Unity scene. The plugin also creates a mesh collider from the Mesh attached to the JTModelLoader enabled GameObject.
The JT for Unity plugin supports two options for working with JT content;
- Dynamic loading of a .jt into an active Unity application. In this scenario the JT file is loaded from disk when the application is launched. The JT content remains in its native form on disk. For more information see the “Loading JT Content” section in the user documentatoin. Dynamic loading only works in applications created for the Windows desktop and Windows UWP platforms.
- Creation of Prefabs. JT models loaded into an active scene using the dynamic load capability can be saved as Prefabs using the provided scripts. Prefabs created with the JT for Unity plugin have additional information associated with them that is not available when using the built in Unity Prefab creation feature. These Prefabs can be used in Unity applications on any platform. Prefabs created with the plugin must be included at compile time.
Because the JT for Unity plugin makes use of the JT Open Toolkit to extract content from .jt files, the plugin must be enabled with a valid JT Open Toolkit license key when using the JTLoader and JTLoaderLogger scripts.