• 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

Return Type

Cancel

Cancel

All Questions

  • Unanswered Questions
avatar image

DerHecht edited

Why does my Simulation keep crashing as soon as this code is called for a second time?

Mar 28, '22 in Help Room

0 Replies

0 Votes

avatar image

da1vid1 commented

not all code paths return a value (c#) bool

Feb 21, '20 c#·function·return type

3 Replies

0 Votes

avatar image

pascal07nouma commented

Moving Coroutines To One Method

Feb 27, '19 coroutine·ienumerator·return value·return type

1 Reply

0 Votes

avatar image

mats1105 commented

Returning new class from a method not working

Feb 16, '19 return value·return type

1 Reply

0 Votes

avatar image

badadam edited

Integer Getter Method always returns zero

Jan 14, '19 c#·scripting problem·function·method·return type

3 Replies

0 Votes

avatar image

JanWdm commented

change return type of virtual method

Mar 9, '18 in Help Room

1 Reply

0 Votes

avatar image

Anderson_best answered

member names cannot be the same as their enclosing type

Sep 11, '17 c#·enum·return type

2 Replies

0 Votes

avatar image

asifkhan51194 commented

how to exit of function which has return a type but i want to exit the function from in between i.e. not executing rest of function.

Aug 18, '17 return type

2 Replies

0 Votes

avatar image

ShadyProductions commented

Using different reture types then void

Aug 9, '17 boolean·return type

1 Reply

0 Votes

avatar image

bstout published

rotateTowards works on villains, but not boss

Apr 1, '17 in Help Room

1 Reply

0 Votes

avatar image

ifdef_ben commented

Return array of transform

Mar 16, '17 transform·array·children·return type

2 Replies

0 Votes

avatar image

BoNaNa commented

"not all code paths return a value" Closed

Oct 8, '16 in Help Room

1 Reply

0 Votes

avatar image

Hellium edited

error CS1612: Cannot modify a value type return value of `UnityEngine.Transform.position'. Consider storing the value in a temporary variable

Aug 21, '16 c#·error·transform.position·return type

3 Replies

2 Votes

avatar image

Bunny83 answered

Program Return Type

Apr 5, '16 in Help Room

2 Replies

0 Votes

avatar image

Sospitas asked

Profiler.GetTotalAllocatedMemory Return

Apr 22, '14 return type

0 Replies

0 Votes

avatar image

getyour411 commented

Is there a way to return all your viaraibles and script to the way it was when the game started

Apr 6, '14 restart game·return type

0 Replies

0 Votes

avatar image

Patel-Sagar answered

Why does Physics2D.Raycast alway return true?

Mar 26, '14 physics2d.raycast·return type

1 Reply

0 Votes

avatar image

whydoidoit commented

Codes unavailable in C#

Feb 15, '14 no error·return type·var type

0 Replies

0 Votes

avatar image

whydoidoit answered

How to make a "Type" variable?

Feb 14, '14 return type·var type

1 Reply

0 Votes

avatar image

komodor edited

Return animation to original position?

Jan 24, '14 animation·collider·return type

1 Reply

0 Votes

avatar image

ArkaneX commented

Cannot implicitly convert type `System.Action' to `bool'

Sep 12, '13 return type

1 Reply

0 Votes

avatar image

Tarlius commented

Cannot cast from source type to destination type? C#

Sep 11, '13 return type

0 Replies

0 Votes

avatar image

ArkaneX edited

Error Changing Rigidbody Velocity

Sep 6, '13 c#·error-message·physics settings·return type

1 Reply

0 Votes

avatar image

whydoidoit commented

C# Generic return type

Aug 10, '13 c#·type·generic·return type

1 Reply

0 Votes

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

c# return value functions error array method collider2d function coroutine var type transform.position unity 5 class object dictionary beginners documentation enum raycasthit2d transform collider children animation crash rotatetowards scripting problem


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