private static extern void Internal_CreateInstance(HandleSlider2D instance, int width, int height, Slider2DConstraint constraint, UInt64 layer);
/// <summary> /// Creates a new 2D handle slider. /// </summary> /// <param name="parentHandle">Handle that the slider belongs to.</param> /// <param name="width">Width of the area of the slider that can be interacted with, in pixels.</param> /// <param name="height">Height of the area of the slider that can be interacted with, in pixels.</param> /// <param name="layer"> /// Layer that allows filtering of which sliders are interacted with from a specific camera. /// </param> /// <param name="constraint"> /// Optional constraint that determines in which direction is the slider allowed to be moved in. /// </param> public HandleSlider2D(Handle parentHandle, int width, int height, Slider2DConstraint constraint, UInt64 layer = 1) : base(parentHandle) { Internal_CreateInstance(this, width, height, constraint, layer); }