• 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

Typecasting

Cancel

Cancel

All Questions

  • Unanswered Questions
avatar image

robertbu commented

How do I use GetComponent completely correct in this instance?

May 15, '14 getcomponent·typecasting

1 Reply

0 Votes

avatar image

pasman published

Why typecasting not working properly in c# ?

Jan 17, '15 c#·typecasting

2 Replies

0 Votes

avatar image

riccardo_fablab published

Native type conversions

Sep 17, '15 native plugin·typecasting

0 Replies

0 Votes

avatar image

Anxo edited

gameObject.AddComponent(presetComponent) ?? I would like to add a component thats already created.

Dec 3, '15 in Help Room

1 Reply

0 Votes

avatar image

allenallenallen commented

Javascript - How to get an error if typing int instead of float?

Jul 21, '15 float·typecasting·pragma

0 Replies

0 Votes

avatar image

tanoshimi answered

Sprite Rendering

Feb 21, '17 sprite·resources·typecasting

1 Reply

0 Votes

avatar image

tyruji answered

Unity. Some fields go to null on Play

Jul 22, '21 c#·serialization·typecasting

1 Reply

0 Votes

  • ‹
  • 1
  • 2
  • 3

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.

Related Topics

type c# javascript list arrays float conversion casting editor resources iphone variable reflection component generics getcomponent serialization dynamic inheritance resources.load script. error class serializedproperty gameobject


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