Requirements
Before you start the process please ensure that you have downloaded and installed minumum supported version of Unreal Engine and corresponding version of Visual Studio.
Loading the example Unreal project
Direct from the project file
- Clone the project, and enter the repounreal directory.
- Double click the project file.
- When the Unreal dialog pops up prompting you to compile the required dlls, click ok
While debugging from visual studio
- Clone the project, and enter the repounreal directory.
- Right-click the .uproject file and select Generate Visual Studio project files. This will build a Visual Studio solution in the same directory.
- Open the Visual Studio solution.
- Set the repounreal project as the start-up project, and Start Debugging. This will open the Editor with the debugger attached, which thereafter can be interacted with normally.
The project will have the demo account web configuration hardcoded in, when you are using your own account you can confirm the URL/API are correct in repounreal.cpp.
Loading a model
The sample code registers two command console commands: 3drepoimport
& 3drepoconvert
.
- Open the console, press the Tilde(~) key, or open the Output Log (Window > Developer Tools > Output Log)
- Make sure you have the model ids and revision ready. Refer to this section for more details
- Give the command: 3drepoimport [teamspace] [model id] [revision tag] . Where a revision tag is optional. For example:
3drepoimport Repo3DDemo 01713310-2286-11eb-93c1-296aba26cc11
3drepoimport Repo3DDemo 011382b0-2286-11eb-93c1-296aba26cc11 r1
The model will be imported as a new Actor in the world.
The 3drepoimport command can be given at design-time (in Editor) or in-game (e.g. in Play-In-Editor mode).