Quantcast
Channel: UGUI & TextMesh Pro
Viewing all articles
Browse latest Browse all 23263

how do you create custom restraints C#

$
0
0
How do I create custom restraints in a C# script that does stuff in the live editor view (and in game) like "Horizontal Layout Group" does. I want to create some custom GUI fields, and have my own set of options, and minimized to the few variables I need, while enforcing other variables (such as forcing a ratio for a GUI component to say "10:9" or "5:3"). I know how to create the ratios, I just want to know how I can create my own variables that will modify a gui component live in editor.

Viewing all articles
Browse latest Browse all 23263

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>