Example #1
0
 internal static extern void Internal_AddInstance(IntPtr obj, ref FoliageInstance instance);
Example #2
0
 internal static extern void Internal_GetInstance(IntPtr obj, int index, out FoliageInstance resultAsRef);
Example #3
0
 /// <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);
 }