Resources
Answers
Examples
Sign in
Get Started
What do you want to save?
Add Code snippet
New code examples
C#
2021-11-20 11:12:19
c# unity max
using UnityEngine;public class ScriptExample : MonoBehaviour { void Start() { // prints 2.4 Debug.Log(Mathf.Max(1.2f, 2.4f)); } }
Add solution
C#
2021-11-18 10:07:20
clock in unity
// I'm going to assume that you // are looking to make a clock that tick every second // 1. If your script is MonoBehavior : class Script : MonoBehavior { private float elapsed = 0; public void Update() { elapsed += Time.deltaTime; // Time...
Add solution
C#
2021-10-27 07:28:13
unity how to make a ui disappear
using UnityEngine; using UnityEngine.UI; public class ScriptName : MonoBehaviour { [SerializeField] private CanvasGroup Canvas; // makes canvas invisible void Awake() { Canvas.alpha = 0f; Canvas.interactable = false; ...
Add solution
C#
2021-09-25 05:15:04
text variable type unity
using UnityEngine; using UnityEngine.UI; //make sure to add this! public class Script : MonoBehaviour { public int counter = 0; public Text variable; //make reference in Unity Inspector Window void Update() { counter++; variable....
Add solution
Best helpers
daily
weekly
monthly
for 3 months
Ranking is empty
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
Sign in
E-mail
Password
Recover lost password
Log in
Or log in with
Not registered?
Sign up takes less than a minute
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
Sign up
Email
Password
Sign up for free
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.