Skip to content

Commit 59112cd

Browse files
committed
Updated the UI and documentation text of the Unity Spline Resolution setting.
1 parent 22287c3 commit 59112cd

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Plugins/HoudiniEngineUnity/Editor/UI/HEU_InputNodeUI.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static class HEU_InputNodeUI
4444
private static GUIContent _tilemapColorContent = new GUIContent("Apply Tile color", "If checked, will output a Cd color attribute to point.");
4545
private static GUIContent _tilemapOrientationContent = new GUIContent("Apply Tilemap Orientation", "If checked, will offset position by the tilemap position offset, and produce orient/pscale attributes to the points.");
4646

47-
private static GUIContent _samplingResolutionContent = new GUIContent("Sampling Resolution", "Defines the granularity at which a spline's positional data is sampled and marshalled to Houdini. The lower the value, the closer the fit.");
47+
private static GUIContent _samplingResolutionContent = new GUIContent("Unity Spline Resolution", "Resolution used when marshalling Unity Splines to Houdini Engine (step in m between control points). Set this to 0 to only export the control points.");
4848

4949
/// <summary>
5050
/// Populate the UI cache for the given input node
@@ -301,10 +301,11 @@ The HDA type can accept any object with a HEU_HoudiniAssetRoot component. (Inclu
301301
}
302302
else
303303
{
304+
HEU_EditorUI.DrawHeadingLabel("Spline settings");
304305
EditorGUI.indentLevel++;
305306
{
306307
UnityEditor.SerializedProperty samplingResolution = inputNode._uiCache._splineSettingsProperty.FindPropertyRelative("_samplingResolution");
307-
samplingResolution.floatValue = EditorGUILayout.Slider(_samplingResolutionContent.text, samplingResolution.floatValue, 0.0f, 4.0f);
308+
samplingResolution.floatValue = EditorGUILayout.Slider(_samplingResolutionContent.text, samplingResolution.floatValue, 0.0f, 100.0f);
308309
}
309310
EditorGUI.indentLevel--;
310311
}

Plugins/HoudiniEngineUnity/Scripts/Utility/HEU_InputInterfaceSpline.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public class HEU_InputInterfaceSplineSettings
4949
public float SamplingResolution { get { return _samplingResolution; } set { _samplingResolution = value; } }
5050

5151
[SerializeField]
52-
private float _samplingResolution = 0.5f;
52+
private float _samplingResolution = 25.0f;
5353
};
5454

5555
#if UNITY_SPLINES_INSTALLED

0 commit comments

Comments
 (0)