unity separator in inspector

using UnityEngine;

public class Example : MonoBehaviour
{
	//Use this PropertyAttribute to add a header above some fields in the Inspector.
    [Header("Hi there!")]
    
    //Space between variables 
    [Space(10)]
    
    //Attribute used to make a float or int variable in a script be restricted to a specific range.
 	//public RangeAttribute(float min, float max);
    [Range(5,9)]

    public string playerName = "Unnamed";
}

4
10
Nimitz14 85 points

                                    float variable1;
[Space] //Creates a space inside of the unity editor
[Header("This is a header")] //Creates a header inside of the unity editor
float variable2;

4 (10 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
unity separator unity editor seperator Separator unity unity inspector divider unity header c# unity fields in inpector unity inspector title unity editor inspector variables unity label in inspector unity separator in inspector open and close unity c# section in inspector for variables organization unity c# group variabbles put many variables under a header unity Unity Header Space unity group variables in inspector how to use header on a group of items in inspector unity unity organize variables in inspector unity sort variables in inspector Have Catagories in Unity Inspector separate variables unity how to put unity public variables in categories Create gaps / headers between variables in the unity inspector unity editor section var headers unity unity variable header unity c# inspector orginization group variables unity unity editor how to group fields in inspector unity inspector divider label unity inspector categories unity subheader group similar properties together in inspector unity unity header script Unity [header] unity inspector group unity inspector dropdown group how to split variables into groups in the inspector unity c# unity categrorizing variables in the inspector unity heading in inspector unity categorize variables unity header attribute unity inspector organization how to put variables into sections unity c# how to make a variable catagory inunity header unity unity inspector group variables unity how to have a long header in the inspector unity separate variables is there a way to set up subheaders in unity c# unity script header put under categories unity variabiles unity c# group variable in inspector unity inspector header unity header unity divider in variable unity separator in inspector
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source