Documentation

​
​

Development

User Acquisition

Monetization

Industry

Unity Studio

Open Unity Studio

Unity Studio

​
​
Unity Studio
  • What's new in Unity Studio
  • Introduction to Unity Studio
  • Launch Unity Studio
  • Create your first Unity Studio project
  • Develop with Unity Studio
    • The Unity Studio interface
    • Save your progress
    • GameObjects
    • Assets
    • Materials
    • Scene settings
    • Logic
      • Introduction to Logic
      • Create a Logic script
      • The Logic Editor interface
      • Methods, variables, and parameters
        • Introduction to variables, methods and parameters
        • Create a variable
        • New Variable window reference
        • Create a method
        • New Method window UI reference
      • Nodes
      • Logic examples
    • The UI Creator
    • Animation
    • AI features
  • Collaborate in Unity Studio
  • Export drafts to the Unity Editor
  • Publish and share
  • Troubleshooting Unity Studio issues
  • Report bugs and share feedback
  • Manage your analytics and marketing preferences
  1. Unity Studio
  2. Develop with Unity Studio
  3. Logic
  4. Methods, variables and parameters

New Method window UI reference

Reference information about the New Method window that you use to create a new method in a Logic.
Read time 1 minute
Last updated 6 months ago

Use the New Method window to add a new method in your Logic script.

New Method window properties

The following properties are available to customize in the New Method window:

Property

Description

Unique nameGive your method a clear, descriptive name. A clear name helps you and your team understand what the method does. Make sure the name doesn't contain spaces.
Return TypeSelect the type of value the method returns after it runs (for example, number, text, object). If you want a method to just perform actions (like move an object or play an animation) and doesn’t need to return a value, set the return type to Void. Void means the method doesn't return any value.
ParametersDefine any input parameters the method needs.

Parameter details

The Parameter section of the New Method window lets you add parameters to your method.

Property

Description

NameGive your parameter a clear, descriptive name. This helps you understand what value to pass into the method when you use it.
TypeSelect the type of value the parameter accepts (for example, number, text, object). This defines what kind of data you can pass into the method.
AddOnce you’ve set the name, return type, and any parameters, select this button to add the parameter to your method.

Additional resources

  • Create a method
  • Create a variable
  • Introduction to variables, methods, and parameters

Copyright © 2026 Unity Technologies
LegalPrivacy PolicyCookiesDocumentation Terms of UseDo Not Sell or Share My Personal InformationYour Privacy Choices (Cookie Settings)

"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S and elsewhere (more info here). Other names or brands are trademarks of their respective owners.

Some pages are machine-translated for convenience, and may contain inaccuracies. In the event of conflicting information, the English version is authoritative.

  • On this page
    • New Method window properties

      • Parameter details

    • Additional resources


Report a problem with this page