You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
388 B
17 lines
388 B
using System.Collections; |
|
using System.Collections.Generic; |
|
using UnityEngine; |
|
using UnityEngine.UI; |
|
|
|
public class DropdownPos : MonoBehaviour |
|
{ |
|
public RectTransform rect; |
|
public float sizeY = 40f; |
|
public Dropdown drop; |
|
|
|
// Start is called before the first frame update |
|
void Start() |
|
{ |
|
rect.anchoredPosition = new Vector2(0, sizeY * drop.value); |
|
} |
|
}
|
|
|