• 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

AnOrdinarySandwich answered

How do I give an object a script component of a type specified by the calling source?

Dec 24, '20 in Help Room

1 Reply

0 Votes

avatar image

CamCreates answered

How can I use a variable with getcomponent()?

Dec 23, '20 getcomponent·type·casting·typecasting

2 Replies

1 Votes

avatar image

Ciryus answered

A smarter Way to get the Type of SerializedProperty

Dec 23, '20 editor-scripting·reflection·custom-inspector·serializedproperty·typecasting

5 Replies

2 Votes

avatar image

AlastoirFaruh answered

How do you instantiate a script from a monoscript?

Sep 23, '20 editor·typecasting·monoscript

2 Replies

1 Votes

avatar image

razivo commented

Adding type convertions to unity core types

Apr 16, '20 typecasting

1 Reply

0 Votes

avatar image

TomNCatz commented

CustomAttribute on Class or Method ( EDIT: Button to call methods)

Apr 11, '20 editor·custom-inspector·propertydrawer·methods·typecasting

2 Replies

1 Votes

avatar image

unity_RMiJ7SENDRQxhQ asked

I get byte[] from unitywebrequest.get . now how can i change byte[] to another like mesh or assetbundle?

Jun 1, '19 assetbundle·webrequest·conversion·typecasting·bytearray

0 Replies

0 Votes

avatar image

clayton1314 commented

Instance of JsonData Doesn't hold an int even though im typcasting..

Jul 31, '17 in Help Room

1 Reply

0 Votes

avatar image

tanoshimi answered

Sprite Rendering

Feb 21, '17 sprite·resources·typecasting

1 Reply

0 Votes

avatar image

PizzaPie converted comment to answer

Dynamic Type Casting

Feb 4, '17 in Help Room

1 Reply

0 Votes

avatar image

Hellcat5 edited

Typecasting problem?

Jan 31, '17 gameobject·light·find·enabled·typecasting

3 Replies

1 Votes

avatar image

Arkaid edited

Best way use Resources.Load for spcific type?

Jul 19, '16 performance·resources·resources.load·compile·typecasting

1 Reply

1 Votes

avatar image

fafase answered

How to TypeCast T(Generic Type) into some Class DataType

Jun 29, '16 unity5·generics·typecasting

2 Replies

0 Votes

avatar image

TheCaptainJuneBug commented

Dynamic casting?

Jun 3, '16 in Help Room

1 Reply

0 Votes

avatar image

DanLevi commented

Why isn't this instantiation cast working?

May 21, '16 in Help Room

1 Reply

0 Votes

avatar image

Dave-Carlile commented

(int)(variable*float ) problem?

May 4, '16 typecasting

1 Reply

0 Votes

avatar image

JoshPeterson answered

il2cpp type casting issue

Feb 26, '16 in Help Room

-1 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

Mechlordx commented

Custom Class Type Casting (to string)

Oct 26, '15 custom class·typecasting

1 Reply

0 Votes

avatar image

riccardo_fablab published

Native type conversions

Sep 17, '15 native plugin·typecasting

0 Replies

0 Votes

avatar image

Guppie1337 commented

Identify and Use Unknown Types

Jul 28, '15 script.·getcomponent·detection·type·typecasting

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

Knskan3 published

Dynamic type, unknown in advance to reuse scripts

Jun 23, '15 dynamic·type·typecasting

1 Reply

0 Votes

avatar image

JellyDoodle published

How to Typecast JS Variables as C# Classes?

Jun 12, '15 c#·javascript·variable·class·typecasting

0 Replies

0 Votes

avatar image

zeppike edited

Haxe typedef cast to something meaningful in C# Closed

Jun 8, '15 c#·type·crossplatform·typecasting

1 Reply

0 Votes

avatar image

decept commented

'time' not a member of 'Object'

Mar 29, '15 array·list·typecasting·member

1 Reply

0 Votes

avatar image

Razorwings18 commented

Can't get method using Generics to populate List

Mar 23, '15 list·method·generics·constraints·typecasting

1 Reply

0 Votes

avatar image

Seneral edited

Custom Editors for any Component

Feb 14, '15 component·type·customeditor·typecasting·custominspector

0 Replies

0 Votes

avatar image

CHPedersen commented

Why use Resources.Load(string path, Type systemTypeInstance);?

Feb 3, '15 resources·resources.load·type·typecasting·why

2 Replies

1 Votes

avatar image

pasman published

Why typecasting not working properly in c# ?

Jan 17, '15 c#·typecasting

2 Replies

0 Votes

  • 1
  • 2
  • 3
  • ›

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

type c# javascript list conversion arrays float iphone variable reflection component generics getcomponent casting editor resources resources.load script. error class gameobject method string classes object


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