ctrl
Looks like this option was added on the Unity side in 2022.1
https://docs.unity3d.com/ScriptReference/DetailPrototype-useInstancing.html [docs.unity3d.com]
Would be nice to have this as an attribute on the Houdini side,
gave a shot at using the following
unity_hf_detail_prototype_useInstancing - Set a Primitive Integer attribute with a value or 1
or
unity_hf_detail_prototype_useInstancing - Set a Primitive String attribute with a value of true
but no dice.
you can open houdini plugins scrips in Assets/Plugins/HoudiniEngineUnity/Scripts/Utility/HEU_TerrainUtility.cs
and add the
#if UNITY_2021_3_OR_NEWER
if (detailPrototype.renderMode == DetailRenderMode.VertexLit)
{
detailPrototype.useInstancing = true;
}
#endif
below these code
detailPrototype.dryColor = heuDetail._dryColor;
detailPrototype.healthyColor = heuDetail._healthyColor;
detailPrototype.maxHeight = heuDetail._maxHeight;
detailPrototype.maxWidth = heuDetail._maxWidth;
detailPrototype.minHeight = heuDetail._minHeight;
detailPrototype.minWidth = heuDetail._minWidth;
detailPrototype.noiseSpread = heuDetail._noiseSpread;
detailPrototype.renderMode = (DetailRenderMode)heuDetail._renderMode;
more detail is here [zhuanlan.zhihu.com].