All
Search
Images
Videos
Shorts
Maps
News
More
Shopping
Flights
Travel
Notebook
Report an inappropriate content
Please select one of the options below.
Not Relevant
Offensive
Adult
Child Sexual Abuse
Length
All
Short (less than 5 minutes)
Medium (5-20 minutes)
Long (more than 20 minutes)
Date
All
Past 24 hours
Past week
Past month
Past year
Resolution
All
Lower than 360p
360p or higher
480p or higher
720p or higher
1080p or higher
Source
All
Dailymotion
Vimeo
Metacafe
Hulu
VEVO
Myspace
MTV
CBS
Fox
CNN
MSN
Price
All
Free
Paid
Clear filters
SafeSearch:
Moderate
Strict
Moderate (default)
Off
Filter
unity.com
How to access another public variable from another script or gameobject?
Let’s say I have using UnityEngine; using UnityEngine.UI; using System.Collections; public class HitController : MonoBehaviour { public int level; // Use this for initialization void Start () { } // Update is called once per frame void Update () { } } How do I access the ‘level’ variable from another script?
Dec 24, 2015
Unity C# Tutorial
6:33
C# Classes in Unity! - Beginner Scripting Tutorial
YouTube
Unity
136K views
Jul 26, 2019
4:46
C# Instantiate in Unity! - Beginner Scripting Tutorial
YouTube
Unity
166.7K views
Aug 2, 2019
37:43
Unity Tutorial for Beginners - C# Coding
YouTube
Anson Alexander
353.6K views
Mar 7, 2019
Top videos
How to get a variable from another script in Unity (the right way) - Game Dev Beginner
gamedevbeginner.com
Dec 2, 2020
Statics - Unity Learn
unity.com
Jan 11, 2022
5:03
C# static 🚫
YouTube
Bro Code
115.4K views
Jul 3, 2021
Unity C# Scripting
Absolute Beginner's Guide to Unity C# Scripting (Part 1)
unity.com
6 months ago
Programming Interactions with C# Scripting in Unity
unity.com
10 months ago
1:33
Fixing the ; Expected Error in Unity Scripting
YouTube
vlogize
5 views
6 months ago
How to get a variable from another script in Unity (the right way) - Ga
…
Dec 2, 2020
gamedevbeginner.com
Statics - Unity Learn
Jan 11, 2022
unity.com
5:03
C# static 🚫
115.4K views
Jul 3, 2021
YouTube
Bro Code
3:36
Unity Scripting Tutorial : Call C# Script from GameObject
9.2K views
Nov 8, 2018
YouTube
Jayanam
1:50
How to fix errors in unity: Can't Add Script
11.5K views
Mar 13, 2021
YouTube
DukeByte
4:28
How To Use Scriptable Objects in Unity
110.8K views
Apr 22, 2019
YouTube
Game Dev Guide
13:53
Unity C# - How to interact between scripts
81.4K views
Jul 30, 2017
YouTube
Danndx
7:07
Unity Physics: Static, Kinematic, Dynamic
77.2K views
Oct 14, 2020
YouTube
Smart Penguins
6:47
C# Events in Unity! - Intermediate Scripting Tutorial
192.5K views
Aug 20, 2020
YouTube
Unity
11:49
5 ways to Reference GameObjects in Unity3D
134.4K views
Mar 21, 2018
YouTube
Jason Weimann (GameDev)
3:07
{ How to DISPLAY TEXT on screen in Unity } - Text Canvas Component
73.3K views
Nov 19, 2020
YouTube
GDT Solutions ES
7:34
How to Send Variables Between Scenes in Unity
57.1K views
Nov 12, 2020
YouTube
Wild Cockatiel Games
3:29
C# Statics in Unity! - Intermediate Scripting Tutorial
84.3K views
Jul 15, 2019
YouTube
Unity
5:02
20-Local, Instance and Static Variables in Java
161K views
Mar 10, 2018
YouTube
Codearchery
4:46
C# Instantiate in Unity! - Beginner Scripting Tutorial
166.7K views
Aug 2, 2019
YouTube
Unity
5:12
Better Data with Scriptable Objects in Unity! (Tutorial)
219.1K views
Sep 23, 2020
YouTube
Unity
2:38
How to attach scripts to gameobjects - Unity3D scripts - Pa
…
13.8K views
Dec 7, 2018
YouTube
Coffee Cup Dev
5:50
C# Lists and Dictionaries in Unity! - Intermediate Scripting Tutorial
138.7K views
Aug 2, 2019
YouTube
Unity
0:47
[Quick Tutorial] How to access Variables from another script - Unity
106.7K views
Mar 18, 2020
YouTube
1Min Unity Tutorials
2:11
How to pass variables between scenes in Unity? [1]
63K views
Dec 8, 2020
YouTube
Coco Code
6:04
C# Scope and Access Modifiers in Unity! - Beginner Scripting Tutorial
95.5K views
Jul 11, 2019
YouTube
Unity
9:34
Difference between Local and Static variable | Local variable Vs Static
…
38.9K views
Mar 31, 2020
YouTube
Learn Coding
10:37
Unity Utilisation de Variable static
2.4K views
Jul 31, 2016
YouTube
UPLN Gaming
3:22
Static Variables In C Programming Language
39.8K views
May 9, 2022
YouTube
linuxhint
6:17
Static Local Variables | C Programming Tutorial
12.7K views
Oct 27, 2021
YouTube
Portfolio Courses
31:09
Unity Visual Scripting – Getting Started
138.7K views
Jun 23, 2021
YouTube
NotSlot
1:38
How to acces a variable from another script in Unity // tutorial #1
119 views
Oct 12, 2023
YouTube
Roseman Tutorials
36:22
Using Variables in Unity Visual Scripting
3.5K views
Nov 4, 2022
YouTube
Tomaz Saraiva
4:44
Instance vs. Static Variables
6.7K views
Dec 12, 2020
YouTube
ByteBulb
See more videos
More like this
Feedback