© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
3 replies
Hugo

How do i share variables from 1 script onto another with VS

So say i have 2 script in a directory and the first script wants to print the amount of fuel you have left but the only way to access how much fuel you have left is by running the second script. How could you take the variable from the second one and use it in the first one?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ How do i call a method from another script
C#CC# / help
3y ago
❔ How to stop a script from another script?
C#CC# / help
3y ago
❔ Access button from another script
C#CC# / help
3y ago
❔ ✅ Access variable from another script
C#CC# / help
3y ago