Build Parts
By default Artificer will build the whole object to completion when you start a build going. It may be the case that you want to control the building of an object from script instead of it all building in one go. You can do this with the Build Parts option.
Instead of starting your object building with the StartBuild method you use the StartPartBuild method instead, and you pass in the steps you want to build the object in and the amount or speed per step that those parts are built.
Once started you can add to the build by calling the BuildParts method again with the step and the amount of the build. So this will allow you full control over how the object builds from either game events or the player clicking a button, or a NPC working through a building animation etc.
The demo scene included in the asset has a Part Build button to show the system working and the DemoBuild.cs script shows the simple code behind it. The method called when the button is pressed is shown below.
Last updated