Can someone teach me how the positioning of plugin's gui works? like the anchor min and max? For example, how would I change the Remover tool GUI from the top left to something like bottom left
Code:[ { ""name"": ""RemoveMsg"", ""parent"": ""Overlay"", ""components"": [ { ""type"":""UnityEngine.UI.Image"", ""color"":""0.1 0.1 0.1 0.7"", }, { ""type"":""RectTransform"", ""anchormin"": ""{xmin} {ymin}"", ""anchormax"": ""{xmax} {ymax}"" } ] }, { ""parent"": ""RemoveMsg"", ""components"": [ { ""type"":""UnityEngine.UI.Text"", ""text"":""{msg}"", ""fontSize"":15, ""align"": ""MiddleCenter"", }, { ""type"":""RectTransform"", ""anchormin"": ""0 0.5"", ""anchormax"": ""1 0.9"" } ] }, { ""parent"": ""RemoveMsg"", ""components"": [ { ""type"":""UnityEngine.UI.Text"", ""text"":""{msg2}"", ""fontSize"":15, ""align"": ""MiddleCenter"", }, { ""type"":""RectTransform"", ""anchormin"": ""0 0.1"", ""anchormax"": ""1 0.5"" } ] } ]
GUI repositioning
Discussion in 'Rust Discussion' started by w4ssup, Aug 16, 2015.
-
Again.. you could just post in the R-Remover's thread.
Open the config.. the ymin is from downside to ymax upside. xmin from the start of the left side xmax to the max of the right side.. -
-
[DOUBLEPOST=1439772783,1439719514][/DOUBLEPOST]
Code:""type"":""RectTransform"", ""anchormin"": ""0 0.6"", ""anchormax"": ""1 1""
-
the left number the( 0 and 1) = xmin(0) and xmax(1)
the right numbers (0.6 and 1) = ymin(0.6) ymax(1) -