• 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

Classes

Cancel

Cancel

All Questions

  • Unanswered Questions
avatar image

antominom published

Using inheritance for scriptable objects in one script?

Apr 28, '23 inheritance·classes·scriptable object

0 Replies

0 Votes

avatar image

Sidd_Code answered

change a variable inside a class, but gives error "Null reference exeption"

Apr 4, '23 variables·classes

2 Replies

0 Votes

avatar image

Lachbok commented

I'm having trouble with converting a Json object Closed

Feb 27, '23 programming·json·classes

1 Reply

1 Votes

avatar image

Mr_LoFtY commented

How to call a public list from a Constructor class into a Monobehavior class

Feb 25, '23 list·variables·monobehaviour·classes·constructor

1 Reply

0 Votes

avatar image

bachus00 edited

Do really students can understand through online teaching

Feb 7, '23 classes·student

4 Replies

1 Votes

avatar image

Alfie_E_ commented

Serialising subclass variables in inspector

Feb 5, '23 physics·list·inspector·serialization·classes

2 Replies

1 Votes

avatar image

darkyuti asked

I made a child class of another child class, and if I declare new variables/functions in the first child class I am forced to also declare them in the parent

Jan 27, '23 in Help Room

0 Replies

0 Votes

avatar image

martkarls edited

How to structure classes with many methods and params – must everything be subclass of MonoBehaviour

Jan 23, '23 in Help Room

0 Replies

0 Votes

avatar image

sacredgeometry edited

How to properly make multiple enemy types?

Jan 4, '23 c#·monobehaviour·classes·oop·custom class

2 Replies

0 Votes

avatar image

hqhaven asked

Getting error "Object reference not set to an instance of an object" when trying to access class outside of file

Dec 8, '22 in Help Room

0 Replies

0 Votes

avatar image

hqhaven asked

Getting error "Object not set to instance of object" when trying to access class outside of file

Dec 8, '22 in Help Room

0 Replies

0 Votes

avatar image

hqhaven asked

Getting error "Object reference not set to an instance" when trying to access class outside of file

Dec 8, '22 in Help Room

0 Replies

0 Votes

avatar image

sacredgeometry edited

How to quickly find component's class in editor

Dec 3, '22 editor·classes·components

1 Reply

0 Votes

avatar image

lyxerexyl asked

Need some help with weapon systems

Nov 25, '22 in Help Room

0 Replies

0 Votes

avatar image

dennisde asked

Creating a world of editable elements

Nov 21, '22 in Help Room

0 Replies

0 Votes

avatar image

agito1987 commented

Dynamic reference to Class reference.

Nov 17, '22 variables·classes

1 Reply

0 Votes

avatar image

Ephoraaa commented

Does "using static [class name]" turn its non-static members into static ones?

Nov 3, '22 c#·static·classes·using

1 Reply

0 Votes

avatar image

Bluejayisthebest commented

Accessing public Variables from inside a Class to use in a Vector

Oct 19, '22 in Help Room

1 Reply

0 Votes

avatar image

logicandchaos answered

if statement as Attribute??

Oct 12, '22 if-statements·classes·function call

1 Reply

0 Votes

avatar image

Captain_Pineapple edited

How to use a Class variable in a Method

Oct 12, '22 c#·list·classes·generics

2 Replies

0 Votes

avatar image

Amitloaf commented

Does Script Execution Order effects extend to the descendants of the listed classes?

Sep 21, '22 inheritance·classes·execution order

2 Replies

9 Votes

avatar image

wideeyenow_unity edited

Performantly handle Script to Script Communication

Sep 6, '22 in Help Room

2 Replies

5 Votes

avatar image

wideeyenow_unity commented

Game object isn't added via one class to another one (Navigation bar class)

Sep 6, '22 in Help Room

0 Replies

0 Votes

avatar image

unity_DneiCt0NXjn9gA edited

I can't change array values [solved]

Aug 19, '22 in Help Room

1 Reply

0 Votes

avatar image

SoullessPuppet published

Inherited function not using variables from correct class

Jul 14, '22 in Help Room

0 Replies

0 Votes

avatar image

jtgvhbth published

custom inspector with properties of superclass inside of a list

Jun 28, '22 in Help Room

0 Replies

0 Votes

avatar image

GahhhhIhave commented

How to find all classes deriving from a base class?

Jun 17, '22 classes·derived-class

1 Reply

2 Votes

avatar image

karlbonitz answered

Passing multiple Sciptable object types to another Method / Class

Jun 15, '22 unity 2d·scriptableobject·classes·methods·basic programming

2 Replies

0 Votes

avatar image

rh_galaxy edited

Saving class data without having lots of references?

Jun 3, '22 serialization·inheritance·saving·classes·class instance

1 Reply

0 Votes

avatar image

unity_7E0BC756B5AD3DB8FF09 published

How to create a class and save a list of that object?

May 6, '22 in Help Room

0 Replies

0 Votes

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

Followers

avatar image

Unity Answers is in Read-Only mode

Unity Answers content will be migrated to a new Community platform and we are aiming to launch a public beta on June 13. Please note, Unity Answers is now in read-only so we can prepare for the final data migration.

For more information and updates, please read our full announcement thread in the Unity Forum.

Related Topics

c# class inheritance javascript variables array list arrays scripting problem lists gameobject inspector monobehaviour object serialization methods static instantiate reference nullreferenceexception variable oop constructor unity 5 enum


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