• 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

Fixes in upcoming releases of Unity Answers

Using a good tone of voice when replying to posts

Requests for new tags/topics

How to use the META space

How to use the Moderator space

Questions in topic: static-function

  • Unanswered Questions
  • Recommended Questions
Once you sign in you will be able to subscribe for any updates here
avatar image

ActiveMars91 commented

Having trouble calling a method between scripts without making the method static.

Jan 11, '21 scripting problem·instance·static-function

1 Reply

1 Votes

avatar image

icehex edited

Data from a simple singleton / static class return null

Apr 29, '20 nullreferenceexception·static·singleton·static variable·static-function

1 Reply

0 Votes

avatar image

Stratosome commented

Null reference exception with static method Closed

Jul 16, '18 namespace·null reference exception·static-function

2 Replies

0 Votes

avatar image

UnityCoach commented

An object reference is required to access non-static member

Jul 10, '17 in Help Room

2 Replies

0 Votes

avatar image

rakeshparihar answered

When should i use static functions?

May 16, '17 scriptingbasics·static·static-vars·static-function

2 Replies

19 Votes

avatar image

Suhrahj answered

Can't destroy GameObject in static method

Feb 26, '17 in Help Room

3 Replies

1 Votes

avatar image

Suhrahj commented

Saving and Loading with a static or a local function

Jan 2, '17 serialization·save·load·static·static-function

0 Replies

0 Votes

avatar image

DarKAeRiX commented

Attempting to create a Utility class of static functions. Which object references do I need for Unity's built in functions, and where do I put them?

Aug 25, '16 in Help Room

4 Replies

0 Votes

avatar image

gorsefan published

Static Function Aliases?

Jun 9, '16 c#·javascript·functions·static-function

4 Replies

0 Votes

avatar image

Wolfrik_Creations commented

GetComponentInChildren not working in a function, help please?

May 27, '16 javascript·functions·static-function

2 Replies

0 Votes

avatar image

AndrewRyan commented

Static classes not working on Android devices? Closed

Apr 30, '16 android·pattern·static-function

0 Replies

0 Votes

avatar image

Nickymouse commented

A Question about static, please help me.

Mar 15, '16 in Help Room

1 Reply

0 Votes

avatar image

tanoshimi answered

Static vs Non-Static Methods

May 18, '15 static-function

1 Reply

0 Votes

avatar image

Kowciany commented

Trouble with DontDestroyOnLoad

Mar 17, '15 dontdestroyonload·static-variables·static-function

2 Replies

1 Votes

avatar image

georgeq edited

static function generates error CS0119: Closed

Oct 24, '14 compiler-error·static-function

1 Reply

0 Votes

avatar image

fafase commented

Best way to reference static method of another script

Jun 25, '14 static-function

3 Replies

1 Votes

avatar image

Kiwi2703 commented

"Failed to call static function because an object was provided" error?

Feb 7, '14 javascript·error·static·static-function

1 Reply

1 Votes

avatar image

AngryCSharpNerd commented

Static function won't call another static function

Jan 2, '14 static·warning·warnings·static-function·static script

1 Reply

0 Votes

avatar image

zombience edited

Sending message to one object

Nov 12, '13 c#·global·static-function

1 Reply

0 Votes

avatar image

RyanZimmerman87 edited

Error when trying to access another script? Wiki

Aug 8, '13 c#·static-function

2 Replies

0 Votes

avatar image

Selene commented

InvalidProgramException: Invalid IL code - when using static function

Jul 28, '11 static-function

1 Reply

0 Votes

avatar image

Uzquiano asked

static-function new() MonoBehaviour warning

Apr 12, '11 new·static-function·monobeahviour

1 Reply

0 Votes

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow This Topic

Follow This Topic

Follow by RSS

No one has followed this topic yet.

Popular Topics

c# animation android unity 5 camera 2d rotation javascript scripting problem collision ui gui error shader movement gameobject physics rigidbody editor ios texture networking raycast instantiate collider transform terrain mesh prefab input
View all

Recent Badges

  • Notable Question   Meikkhaell
  • Popular Question   AlassesLome
  • Popular Question   EternalSouls
  • Editor   DeriaGeorge
  • Famous Question   Hoshahan
  • Popular Question   SomeRandomUnityDev10
  • Popular Question   Frix
  • Famous Question   sotirosn
  • Notable Question   amer-palo
  • Popular Question   xXDurzoXx


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