/// <summary> /// Creates a new handle slider. /// </summary> /// <param name="parentHandle">Handle that the slider belongs to.</param> public HandleSlider(Handle parentHandle) { parentHandle.RegisterSlider(this); }
/// <summary> /// Creates a new line handle slider. /// </summary> /// <param name="parentHandle">Handle that the slider belongs to.</param> /// <param name="direction">Normalized direction towards which the line is pointing.</param> /// <param name="length">Length of the line.</param> /// <param name="fixedScale">If true the handle slider will always try to maintain the same visible area in the /// viewport regardless of distance from camera.</param> /// <param name="layer">Layer that allows filtering of which sliders are interacted with from a specific camera.</param> public HandleSliderLine(Handle parentHandle, Vector3 direction, float length, bool fixedScale = true, UInt64 layer = 1) : base(parentHandle) { Internal_CreateInstance(this, ref direction, length, fixedScale, layer); }
/// <summary> /// Creates a new disc handle slider. /// </summary> /// <param name="parentHandle">Handle that the slider belongs to.</param> /// <param name="normal">Normal that determines the orientation of the disc.</param> /// <param name="radius">Radius of the disc.</param> /// <param name="fixedScale">If true the handle slider will always try to maintain the same visible area in the /// viewport regardless of distance from camera.</param> /// <param name="layer">Layer that allows filtering of which sliders are interacted with from a specific camera.</param> public HandleSliderDisc(Handle parentHandle, Vector3 normal, float radius, bool fixedScale = true, UInt64 layer = 1) : base(parentHandle) { Internal_CreateInstance(this, ref normal, radius, fixedScale, layer); }