Skip to content

A small Unity project that demonstrates a workflow to create an exploding view diagram with labels.

License

Notifications You must be signed in to change notification settings

bryanrtboy/ExplodingViewDiagram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ExplodingViewDiagram

A small Unity project that demonstrates a workflow to create an exploding view diagram with labels. The video below explains the project including the 3D animation needed, importing it from Cinema 4D and how the scripts hook up to buttons and mouse-clicks to make things happen. I include two camera orbit scripts, toggle them on/off to see the difference. Feel free to use this as a stub for your own project!

If your browser supports WebGL 2.0, you can run this online demo

Tutorial Video

Notes

You might notice the Mesh colliders created on the cube are very thin and can't be selected from the back. Check the Convex option to make them bulkier and easier to select.

IMPORTANT: The names of the GameObjects imported from C4D correspond to the Layers in the Animation Controller, i.e. "Top", "Front", etc. If you read the CubeController.cs script you'll see that I grab the name of the object with a Collider attached and then tell the Animator to blend to that layer. This requires that the GameObject be named the same as the layers created in the Animator. Don't just rename in Unity, this breaks the links to the animation. Make sure your names are properly set up in C4D before import.

My project includes Post-Processing Effects. These are under active development, so it's kind of hard to find them and instructions. I used the Package Manager to load the package from Unity>WIndows>Package Manager. You can probably use that to check if this version is current.

You can also just select the Camera in the project and play around with the Color Effects or add new Effects like Depth of Field to see how it affects the scene.

The other thing worth looking at is the Look At Constraint that I attached to the labels. This seems to be a new option in Components>Miscelaneous>Look At Constraint in 2018.2. The slider on the labels allow you to decide how aggressively the label looks at the camera. This may or may not be related to the new Cinemachine Camera systems for film editing, but it's pretty useful!

Additional Resources

Unity Tutorials

There are a lot of great tutorials at the link above, if you are brand new to Unity, I'm going to suggest these from the Topics section to get you started and that relate to this project: Interface and Essentials The Animator Component and Animation Layers explain more about the Animator. To customize the UI elements, you will need to look at the UI Tutorials, pay particular attention to the UI Canvas and the UI Rect Transform.

This tutorial is geared for artist/designers. The Artist Tutorials go into more detail about how to further improve the final look of the application.

About

A small Unity project that demonstrates a workflow to create an exploding view diagram with labels.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published