Houdini Engine for Unity (v2 beta)
 All Files Pages

Curves are a very useful tool to control the way your asset behaves in Houdini, as they can be displayed and manipulated easily in the Unity Scene view.

Curves can be created for editing in 2 ways:

  • Menu - Create a new editable Curve SOP via Houdini Engine Unity > New Curve Asset
  • HDA File - Load an HDA containing a Curve SOP node whose name is set in the Editable Nodes list.

When an editable Curve is created, the plug-in will display the Curve Editor if the root asset GameObject is selected.


Note the Curve Editor in the Scene view, and the Curves section in the Inspector UI in the above image. The Curve Editor can be toggled via the Curve Editor Enable option in the Curves UI. Also, multiple curves can be manipulated and interacted with by selecting the root asset GameObject.

Curve Editor

The Curve Editor has 3 modes: View, Add, Edit

View - Displays a better visualization of the Curve, along with its points. This is useful when the Scene has a lot of elements which can occlude the Curve.

Add - Add points to Curve. The new point's position is displayed in purple with a dotted line extending from the existing point that it will connect to. Pressing the left mouse button will confirm and create the new point. The new point is added based on the identity plane by default, but colliders and layermask can be specified in the UI to change this behaviour. See the Curve Editor dialog in Unity for further information about adding points.

Edit - Edit existing points on the Curve. Points can be selected, moved, or deleted individually or in groups. When points are selected, a Transform handle will display at its origin (or group origin if multiple points) which can be moved. While moving points, the Curve display will change to show the linear connections between points. Only after finishing moving (i.e. mouse button released) will the Curve be cooked and updated. This is an optimization to improve the user experience.

Curve Parameters UI

This is displayed on the asset's Inspector UI when there is an editable Curve in the node network.

Curve Editor Enabled - Toggle to display the Curve Editor in the Scene view.

Draw Collision Type - When adding points, which type of collision to use. Colliders will display a list of Unity Colliders. Layermask will display a dropdown with the Layers available in the project. With either choice, a Ray is cast from the mouse cursor when in Add points mode, and either checked against the colliders or items with the Layermask.

The rest of the UI displays the Curve Parameters on the Curve SOP.