internal static extern void Internal_AddInstance(IntPtr obj, ref FoliageInstance instance);
internal static extern void Internal_GetInstance(IntPtr obj, int index, out FoliageInstance resultAsRef);
/// <summary> /// Adds the new foliage instance. Ensure to always call <see cref="RebuildClusters"/> after editing foliage to sync cached data (call it once after editing one or more instances). /// </summary> /// <remarks>Input instance bounds, instance random and world matrix are ignored (recalculated).</remarks> /// <param name="instance">The instance.</param> public void AddInstance(ref FoliageInstance instance) { Internal_AddInstance(unmanagedPtr, ref instance); }