![]() ![]() Public class ModelSwapper : MonoBehaviour Unity 5 palette swap single object code#Insert the following code into the ModelSwapper script:.Create a C# script, name it ModelSwapper. This script will display a button on top of the camera view that when pressed, lets you swap one model with another 3D model. In our example, this will be a cube.Add a 3D model as a child of the Image Target, for example a sphere.Open or create a Unity project, add an ImageTarget GameObject. ![]() This section explains how you can swap the 3D model of an Image Target (or other target) with a different 3D model at run time. Unity 5 palette swap single object how to#How to Dynamically Swap a 3D Model of a Target in Unity
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |