<!DOCTYPE html><html lang="en" class="no-js"><head><script>var offline=(location.href.indexOf('docs.unity3d.com')==-1)?true:false;if(!offline){(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&amp;l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-MC35ML');}</script><meta charset="utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><title>Unity - Scripting API: UxmlTraits</title><meta property="og:image" content="https://unity3d.com/files/images/ogimg.jpg" /><meta name="author" content="Unity Technologies" /><link rel="shortcut icon" href="../StaticFiles/images/favicons/favicon.ico" /><link rel="icon" type="image/png" href="../StaticFiles/images/favicons/favicon.png" /><link rel="apple-touch-icon-precomposed" sizes="152x152" href="../StaticFiles/images/favicons/apple-touch-icon-152x152.png" /><link rel="apple-touch-icon-precomposed" sizes="144x144" href="../StaticFiles/images/favicons/apple-touch-icon-144x144.png" /><link rel="apple-touch-icon-precomposed" sizes="120x120" href="../StaticFiles/images/favicons/apple-touch-icon-120x120.png" /><link rel="apple-touch-icon-precomposed" sizes="114x114" href="../StaticFiles/images/favicons/apple-touch-icon-114x114.png" /><link rel="apple-touch-icon-precomposed" sizes="72x72" href="../StaticFiles/images/favicons/apple-touch-icon-72x72.png" /><link rel="apple-touch-icon-precomposed" href="../StaticFiles/images/favicons/apple-touch-icon.png" /><meta name="msapplication-TileColor" content="#222c37" /><meta name="msapplication-TileImage" content="../StaticFiles/images/favicons/tileicon-144x144.png" /><script type="text/javascript" src="../StaticFiles/js/jquery.js"></script><script type="text/javascript" src="docdata/toc.js">//toc</script><!--local TOC--><script type="text/javascript" src="docdata/global_toc.js">//toc</script><!--global TOC, including other platforms--><script type="text/javascript" src="../StaticFiles/js/core.js"></script><link rel="stylesheet" type="text/css" href="../StaticFiles/css/core.css" /><link rel="stylesheet" href="../StaticFiles/js/feedback/five-star-rating-master/css/rating.min.css" /><script src="../StaticFiles/js/feedback/five-star-rating-master/js/src/rating.js"></script></head><body><noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MC35ML" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript><div class="header-wrapper"><div id="header" class="header"><div class="content"><div class="spacer"><div class="menu"><div class="logo"><a href=""></a></div><div class="search-form"><form action="30_search.html" method="get" class="apisearch"><input type="text" name="q" placeholder="Search scripting..." autosave="Unity Reference" results="5" class="sbox field" id="q"></input><input type="submit" class="submit"></input></form></div><ul><li><a href="../Manual/index.html">Manual</a></li><li><a href="../ScriptReference/index.html" class="selected">Scripting API</a></li></ul></div></div><div class="more"><div class="filler"></div><ul><li><a href="https://unity3d.com/">unity3d.com</a></li></ul></div></div></div><div class="toolbar"><div class="content clear"><div class="version-number">Version: <b>2019.1</b> (switch to <a href="https://docs.unity3d.com/2018.4/Documentation/ScriptReference">2018.4</a></div><div class="lang-switcher hide"><div class="current toggle" data-target=".lang-list"><div class="lbl">Language<span class="b">English</span></div><div class="arrow"></div></div><div class="lang-list" style="display:none;"><ul><li><a href="">English</a></li></ul></div></div><div class="script-lang"><ul><li class="selected" data-lang="CS">C#</li></ul></div></div></div></div><div id="master-wrapper" class="master-wrapper clear"><div id="sidebar" class="sidebar"><div class="sidebar-wrap"><div class="content"><div class="sidebar-menu"><div class="toc"><h2>Scripting API</h2></div></div></div></div></div><div id="content-wrap" class="content-wrap"><div class="content-block"><div class="content"><div class="section"><div class="mb20 clear" id=""><h1 class="heading inherit">UxmlTraits</h1><div class="clear"></div><p class="cl mb0 left mr10">class in
          UnityEditor.UIElements</p><p class="cl mb0 left mr10">/</p><p class="cl mb0 left">Implemented in:<a href="UnityEditor.html" class="cl">UnityEditor</a></p><div class="otherversionswrapper" onmouseover="setOtherVersionsDisplay(true)" onmouseout="setOtherVersionsDisplay(false)"><a>Other Versions</a><div class="otherversionscontent" id="OtherVersionsContent" style="display:none;"></div></div><div class="scrollToFeedback"><a id="scrollToFeedback">Leave feedback</a></div><div class="clear"></div><div class="suggest"><a class="blue-btn sbtn">Suggest a change</a><div class="suggest-wrap rel hide"><div class="loading hide"><div></div><div></div><div></div></div><div class="suggest-success hide"><h2>Success!</h2><p>Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.</p><a class="gray-btn sbtn close">Close</a></div><div class="suggest-failed hide"><h2>Submission failed</h2><p>For some reason your suggested change could not be submitted. Please &lt;a&gt;try again&lt;/a&gt; in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.</p><a class="gray-btn sbtn close">Close</a></div><div class="suggest-form clear"><label for="suggest_name">Your name</label><input id="suggest_name" type="text"></input><label for="suggest_email">Your email</label><input id="suggest_email" type="email"></input><label for="suggest_body" class="clear">Suggestion<span class="r">*</span></label><textarea id="suggest_body" class="req"></textarea><button id="suggest_submit" class="blue-btn mr10">Submit suggestion</button><p class="mb0"><a class="cancel left lh42 cn">Cancel</a></p></div></div></div><a href="" class="switch-link gray-btn sbtn left hide"></a><div class="clear"></div></div><div class="subsection"><div class="signature"><div class="signature-CS sig-block"><span style="color:red;"></span></div></div></div><div class="subsection"><h2>Description</h2><p>
        <a href="UIElements.BaseField_1.UxmlTraits.html">UxmlTraits</a> for the <a href="UIElements.RectIntField.html">RectIntField</a>.</p></div><div class="subsection"><h2>Constructors</h2><table class="list">
      <tr><td class="lbl"><a href="UIElements.RectIntField.UxmlTraits-ctor.html">RectIntField.UxmlTraits</a></td><td class="desc">Constructor.</td></tr>
    </table></div><div class="subsection"><h2>Public Methods</h2><table class="list">
      <tr><td class="lbl"><a href="UIElements.RectIntField.UxmlTraits.Init.html">Init</a></td><td class="desc">Initializes the UxmlTraits for the RectIntField.</td></tr>
    </table></div></div><div class="section"><div class="feedbackbox" id="feedbackbox"><div id="rating"><p>Did you find this page useful? Please give it a rating:<br /><div id="ratecontent" class="c-rating"></div></p></div><div id="ratingThanks" style="display:none"><p>Thanks for rating this page!</p></div><div id="problem"><p><a name="problem">Report a problem on this page</a></p></div><div id="problemType" style="display:none"><p>What kind of problem would you like to report?<ul type="problems"><li><a name="needcode" id="problemneedcode">This page needs code samples</a></li><li><a name="code" id="problemcode">Code samples do not work</a></li><li><a name="missing" id="problemmissing">Information is missing</a></li><li><a name="incorrect" id="problemincorrect">Information is incorrect</a></li><li><a name="unclear" id="problemunclear">Information is unclear or confusing</a></li><li><a name="language" id="problemlanguage">There is a spelling/grammar error on this page</a></li><li><a name="other" id="problemother">Something else</a></li></ul><p><known_issues>Is something described here not working as you expect it to? It might be a <b>Known Issue</b>. Please check with the Issue Tracker at </known_issues></p></p></div><div id="problemThanks" style="display:none"><p>Thanks for letting us know! This page has been marked for review based on your feedback.<br /><br />If you have time, you can provide more information to help us fix the problem faster.<br /><br /><a id="problemThanksMoreInfoButton">Provide more information</a><br /></p></div><div id="problemMoreInfo" style="display:none"><p id="problemNeedCodeForm" style="display:none">You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:</p><p id="problemCodeForm" style="display:none">You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:</p><p id="problemMissingForm" style="display:none">You've told us there is information missing from this page. Please tell us more about what's missing:</p><p id="problemIncorrectForm" style="display:none">You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:</p><p id="problemUnclearForm" style="display:none">You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:</p><p id="problemLanguageForm" style="display:none">You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:</p><p id="problemOtherForm" style="display:none">You've told us this page has a problem. Please tell us more about what's wrong:</p><form><textarea id="problemFormSuggestionField" cols="40" rows="5"></textarea><input type="hidden" id="problemFormDescription"></input><input type="submit" id="problemFormDescriptionSubmit" value="Submit"></input></form></div><div id="problemMoreInfoThanks" style="display:none"><p>Thanks for helping to make the Unity documentation better!</p></div><script>InitialiseStarRating();</script></div></div><div class="footer-wrapper"><div class="footer clear"><div class="copy"><p><known_issues>Is something described here not working as you expect it to? It might be a <b>Known Issue</b>. Please check with the Issue Tracker at </known_issues><a href="https://issuetracker.unity3d.com">issuetracker.unity3d.com</a>.</p>Copyright © 2019 Unity Technologies. Publication: 2019.1-002W. Built: 2019-06-17.</div><div class="menu"><a href="https://unity3d.com/learn">Tutorials</a><a href="https://answers.unity3d.com">Community Answers</a><a href="https://support.unity3d.com/hc/en-us">Knowledge Base</a><a href="https://forum.unity3d.com">Forums</a><a href="https://unity3d.com/asset-store">Asset Store</a></div></div></div></div></div></div></div></body></html>