MANU
  • Quick Start Guide
  • Learn
    • Manual
      • Installing MANU
      • Welcome Screen
      • Workspace Modes
        • Edit Mode
        • Animation Mode
        • Game Mode
      • Scene Panel
      • Main Toolbar
      • Primitives
      • Collider
      • Lights
      • Speaker
      • Importing 3D Objects
      • Main Character
      • Camera
      • Transforms
      • Materials
        • Texture Maps
          • Difuse/Albedo
          • Alpha
          • Normal
          • Ambient Occlusion
          • Roughness
          • Metalness
          • Emissive
        • Basic
        • Matcap
        • PBR
        • Glass
        • Glow
        • Texture Tiling
        • Texture Offset
        • Cast Shadow
        • Opacity type
          • Opaque
          • Transparency
          • Cutout
      • Physics
        • Static Objects
        • Dynamic Objects
        • Kinematic Objects
        • Ghost Objects
        • Disabling Object's Rigidbody
        • Collider
      • Animation Timeline
      • Triggers
        • On Launch Scene
        • Key
        • Collision
        • Animation
        • State Machine
        • Comparsion
        • Game Flow
        • Trigger
        • Object Enabled
        • Network
      • State Machine
        • State Machine — Example
      • Game Flow
      • Prefabs and Assets
      • Gravity
      • Sky
      • Variables
        • Number
        • Boolean
        • Object
        • Tag
      • Tags
      • Lightmapping
      • Paint Group
      • Export Game & Assets
        • Export Games to MANU Marketplace
        • Export Assets to Marketplace
        • Export Game on Mobile devices
        • Export Game on disk
      • Lightmapping
      • Post Processing
        • Depth of Field (DOF)
        • Chromatic Aberrations
        • Bloom
        • Color Correction
        • Screen Space Ambient Occlusion (SSAO)
        • Screen Space Local Reflections (SSLR)
    • Tutorials
    • Formulas
    • Keyboard shortcuts
  • More
    • FAQ
    • Contact Support
    • Changelog
Powered by GitBook
On this page
  • How to set the Number Variable?
  • How to change variable in Animations?
  • How to use variables in formulas?

Was this helpful?

  1. Learn
  2. Manual
  3. Variables

Number

PreviousVariablesNextBoolean

Last updated 1 year ago

Was this helpful?

A variable of the "Number" type, as its name implies, can only store numeric values. You can use these values with other variables and object properties that have or use numeric values. A numeric variable can store numbers from 0.00009 to 999999.

How to set the Number Variable?

The Number Variable can be set in the Inspector Panel. To do this, select the object in the Scene Tree and:

  • Go to the Inspector Panel and click on Variables Tab. After that, the Variables Panel will appear in the upper right corner of the screen.

  • Click on the plus (“Add variable” button) and you will see a drop-down list with the variables that MANU has.

  • Name variable if you need.

  • Select “Number” from the list or leave it "Number" by default.

How to change variable in Animations?

You can change variable value in animations:

  • Select an object that has the variable you need and add it to the timeline

  • In the animated properties, select the need variable

  • Select the target keyframe and change the value of the variable to the one you want.

How to use variables in formulas?

You can always use variables in formulas for calculations in your game.

  • To access the value of a variable in the formula bar, type "$".

  • The formula object picker will open. In the picker, select the desired object and its variable.

  • The added variable will be used given the arithmetic operations in your formula.