• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges

Public Variable

Cancel

Cancel

All Questions

  • Unanswered Questions
avatar image

Virtual_TUe edited

public int variable not updated in inspector for two scenes in Unity

Mar 10, '21 in Help Room

0 Replies

0 Votes

avatar image

olly1014 commented

public script variable in inspector

Feb 25, '21 variable·inspector·public·public variable

1 Reply

1 Votes

avatar image

flameon122 commented

Passing Script as a Public Variable,Passing Script as Public Variable

Feb 19, '21 scripting problem·public variable

2 Replies

0 Votes

avatar image

sandi397 edited

Public InputController class not showing on inspector

Feb 9, '21 in Help Room

0 Replies

0 Votes

avatar image

oshiwota commented

public script not showing in inspector

Jan 13, '21 public variable

1 Reply

0 Votes

avatar image

CmdrZin answered

how to refrence script through public transform

Dec 20, '20 script.·public variable

1 Reply

0 Votes

avatar image

DezBoyle commented

GameObject fields evaluate to null, but they are actually assigned and working

Dec 20, '20 in Help Room

1 Reply

5 Votes

avatar image

helmidh asked

Why is my public variable slider resetting itself on start?,Why are the public slider variables resetting themselves on play?

Nov 19, '20 slider·public variable·automatically

0 Replies

0 Votes

avatar image

Llama_w_2Ls commented

how to make array that variables are public and I can change them from unity editor

Nov 13, '20 array·public variable·elements

0 Replies

0 Votes

avatar image

fumetsuhito95 answered

Public fields not showing in inspector

Sep 26, '20 in Help Room

1 Reply

0 Votes

avatar image

Cicero51 published

,Problems with variables

Sep 16, '20 public variable·private

0 Replies

0 Votes

avatar image

Jacobsc asked

Trying to give instantiated object a value

Aug 29, '20 in Help Room

0 Replies

0 Votes

avatar image

Freakhealer commented

how to access a float from one script in other script in different objects

Aug 27, '20 gameobject·getcomponent·float·public variable·share

3 Replies

0 Votes

avatar image

edgartip2003 commented

My variables arent updating accordingly after I instantiated them

Aug 23, '20 instantiate·unity 2d·public variable

1 Reply

0 Votes

avatar image

exploringunity answered

Public fields not showing in inspector

Jul 23, '20 inspector·serialization·public variable·serializable

2 Replies

0 Votes

avatar image

MrFuzzzy edited

How to make public variable read-only during run-time?

Jul 23, '20 c#·inspector·public variable·read-only·run-time

3 Replies

2 Votes

avatar image

DroidDaughter published

Passing a value between scripts for use in an argument?

Jul 22, '20 in Help Room

0 Replies

0 Votes

avatar image

olafmayer81 answered

Rotate 2D object 90 degrees with button

Jul 18, '20 in Help Room

2 Replies

0 Votes

avatar image

Cronabot edited

Public variable not showing in inspector using new Input System

Jul 17, '20 input·inspector·variables·public variable

1 Reply

0 Votes

avatar image

Morgrhim answered

My public variables wont show up in the inspector.

Jun 26, '20 inspector·public variable

2 Replies

0 Votes

avatar image

MrKlug_Troll23 published

InputSystem not showing up in Inspector,My new InputSystem isn't showing in the Inspector also if its in the Script. how to fix that?

Jun 9, '20 inspector·inputmanager·public variable

0 Replies

0 Votes

avatar image

leeminsik999 asked

public int will always stay 0

Jun 8, '20 in Help Room

0 Replies

0 Votes

avatar image

ADiSiN answered

Public and SerializedField's not showing in inspector

May 27, '20 c#·inspector·public variable·serializefield

1 Reply

0 Votes

avatar image

dahiyabunty1 commented

When I make a public variable private, editor still uses previous public value

May 21, '20 variable·public variable·private·converting·changing

1 Reply

0 Votes

avatar image

asv15238 asked

public vs private array in classes

Apr 27, '20 in Help Room

0 Replies

0 Votes

avatar image

edwardlw_unity commented

HowTo pass variable to OnGUI

Apr 20, '20 in Help Room

0 Replies

0 Votes

avatar image

Jon_T answered

Public Variables Not Displaying In The Inspector

Apr 15, '20 in Help Room

1 Reply

0 Votes

avatar image

sbanbury published

Animator does not show up Closed

Apr 14, '20 in Help Room

0 Replies

0 Votes

avatar image

logicandchaos answered

Public variables are not showing in the inspector

Feb 22, '20 inspector·public variable·assign-variable

1 Reply

0 Votes

avatar image

Bunny83 commented

Public variables not showing in inspector

Feb 13, '20 public variable

1 Reply

1 Votes

  • 1
  • 2
  • 3
  • 4
  • 5
  • ›
  • »

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Related Topics

inspector c# variable gameobject scripting problem public prefab variables private getcomponent editor script. int instantiate unity 5 float scripting beginner array component list public static javascript addcomponent editor-scripting error message


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies 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.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges