• 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: casting

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

kamaldeep26594 commented

C# - Resources.Load Sprite trouble

Aug 29, '20 cast·casting

2 Replies

2 Votes

avatar image

Atulyextel2 edited

Cast Texture2d to Sprite

Jun 6, '18 sprite·texture2d·casting

4 Replies

1 Votes

avatar image

hal69 commented

GameObject.Find() type casting question

Nov 11, '13 type·casting

1 Reply

3 Votes

avatar image

asafsitner commented

C# cast object to gameobject not working

May 18, '12 c#·gameobject·instantiate·object·casting

2 Replies

0 Votes

avatar image

Benproductions1 commented

Cannot cast from source type to destination type in C#

Apr 23, '14 casting

1 Reply

0 Votes

avatar image

ClearRoseOfWar commented

How do i turn off "Receive Shadows" and "Cast Shadows" in a Shader Script??

Jun 2, '22 shader·shadows·cg·casting

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

monogon edited

Cast object as sprite for UI Image

Feb 27, '15 sprite·object·image·cast·casting

1 Reply

0 Votes

avatar image

Shawn Miller commented

Issue casting using Type variable? C#

Jan 31, '12 c#·casting·cs0246

2 Replies

0 Votes

avatar image

Fattie edited

Javascript array, use with a struct ?

Oct 3, '12 javascript·casting·javascript arrays

3 Replies

2 Votes

avatar image

araz01 commented

Scene too bright, even in covered areas.

Mar 22, '20 emission·casting·brightness·darkness

1 Reply

0 Votes

avatar image

mabakay commented

What is the difference between "prefix-casting" (Type)variable - and "as-casting" (variable as Type)?

Dec 7, '16 scriptingbasics·casting

2 Replies

7 Votes

avatar image

Steeban commented

What is Casting in Unity ?

Nov 15, '15 in Help Room

1 Reply

4 Votes

avatar image

Landern answered

Cannot implicitly convert type `int' to `byte'. An explicit conversion exists (are you missing a cast?)

Dec 15, '16 in Help Room

2 Replies

0 Votes

avatar image

diggerjohn published

Way to fix shadows not casting after importing unity store prefab?

Jan 25, '14 bug·shadows·casting

2 Replies

0 Votes

avatar image

BitMiller asked

Integer value casting to KeyCode enum in JS?

Jan 13, '11 int·enum·keycode·casting·as-operator

3 Replies

0 Votes

avatar image

dylanfries answered

Assigning an object to a SerializedProperty

Jun 29, '12 editor·serializedproperty·casting

1 Reply

0 Votes

avatar image

robinking commented

Can I use generic objects as variables then cast them upon construction?

Jun 12, '18 object·class·generic·casting

2 Replies

0 Votes

avatar image

Zilppuri commented

Float to Int in Unity Shaders

Apr 19, '17 shader·shaders·casting

1 Reply

0 Votes

avatar image

justadeveloper commented

How can i get my gameobject as a sprite from its collider name?

Nov 23, '15 sprite·spriterenderer·ienumerator·fade·casting

1 Reply

0 Votes

avatar image

SuperMonkey777 commented

How to access derived class members from base class type

Jan 29, '19 scriptableobject·inheritance·casting·polymorphism·derived-class

1 Reply

0 Votes

avatar image

Benproductions1 commented

proper C# casting for GetComponents on Audio Source?

Jan 19, '14 c#·audiosource·casting·getcomponents

1 Reply

1 Votes

avatar image

JestaBROOK commented

Instantiate with and without casting as GameObject

Feb 21, '19 in Help Room

1 Reply

0 Votes

avatar image

actraiser3 commented

Casting to a Type using a String

Jun 10, '15 c#·casting

2 Replies

1 Votes

avatar image

Eddie 2 edited

Problem accessing vector properties

Jan 10, '11 array·iphone·vector·casting·pragmastrict

2 Replies

1 Votes

avatar image

John_Sherer edited

Script Wrapper Class

Jul 31, '16 c#·array·class·casting

1 Reply

0 Votes

avatar image

greay answered

Implicit downcast from Object to boolean

Dec 1, '12 javascript·casting·warnings

1 Reply

1 Votes

avatar image

GerryM answered

Inventory Programming: Derived Class Issue (C#)

Jun 15, '13 c#·inspector·inventory·casting

2 Replies

2 Votes

avatar image

jtbentley edited

Cache a lot of object transforms in a builtin array? (iPhone)

Sep 7, '10 javascript·transform·casting·builtin array

1 Reply

1 Votes

avatar image

DiegoSLTS answered

Can't compare byte to byte?

Apr 2, '15 int·enum·casting·comparison·byte

2 Replies

0 Votes

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

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

  • Famous Question   Ansn285
  • Famous Question   meta-ben
  • Notable Question   Chefsu
  • Nice Answer   Tubsiwub
  • Supporter   MrTrainMan2
  • Popular Question   NotEth4n
  • Popular Question   PennNeuro
  • Teacher   Stijn500
  • Famous Question   Robstao
  • Famous Question   Mastermarr


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