Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Unity UI RectMask2D Softness Question for Unity Devs

Discussion in 'UGUI & TextMesh Pro' started by WookieWookie, Sep 14, 2023.

  1. WookieWookie


    Mar 10, 2014
    Why is the Softness value in RectMask2D a Vector2Int instead of a Vector4? My team would use RectMask2D for a lot more things if Softness could be set discreetly per side.

    Most common example: Fading the bottom of a vertical scroll view about 150px and the top only about 20px. Currently we have to do this using a 3rd party plugin called SoftMask, which has been problematic due to mixing mask types.

    Maybe a Softness Offset feature could be introduced additively, which wouldn't disrupt existing Inspector data for everyone? I already looked into inheriting from RectMask2D and simply using a custom editor to display discreet fields in the inspector, but there are some core scripts that I would need to edit to make it work.
    bharrison-sd likes this.