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
      • Nodes
        • Event Listener nodes
        • Event nodes
        • Action nodes
        • Constant nodes
        • Flow Control nodes
        • Operator nodes
          • Addition node
          • Subtraction node
          • Multiplication node
          • Division node
          • Remainder node
          • Equal node
          • GreaterThan node
          • GreaterThanOrEqual node
          • LessThan node
          • LessThanOrEqual node
          • And node
          • Not node
          • Or node
        • Utility 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. Nodes
  5. Operator nodes

Remainder node

Calculate the remainder of a division operation between two numbers.
Read time 1 minute
Last updated 10 months ago

Use the Remainder node to get what’s left over after you divide one number by another. This is useful if you want to repeat patterns (like loop every N seconds) or to check if a value fits evenly into another.

Sockets

Socket

Type

Description

Input 1FloatThe number to divide.
Input 2FloatThe number to divide by. Must not be zero.
OutputFloatThe remainder of Input 1 ÷ Input 2. For example, 7 ÷ 3 has a remainder of 1. With decimals, it returns the fractional remainder.

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
    • Sockets


Report a problem with this page