• 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

Camera.main

Cancel

Cancel

All Questions

  • Unanswered Questions
avatar image

Play Creatively published

NullReferenceException to Camera.main.transform.position

Sep 20, '15 in Help Room

0 Replies

0 Votes

avatar image

colkern published

MainCamera just showing Skybox, when switching to Android

Jul 28, '15 android·camera·rendering·graphics·camera.main

0 Replies

0 Votes

avatar image

ctrSciGuy commented

My main (and only) camera keeps disabling at startup.

Jul 22, '15 camera.main

0 Replies

0 Votes

avatar image

06hypersonic60 published

Moving towards camera forward but still aligning to ground

Jul 14, '15 player movement·camera.main·quaternion.lookrotation

0 Replies

0 Votes

avatar image

Dave-Carlile commented

How do I add a property to my main camera and access it elsewhere?

Jun 7, '15 camera·raycast·public variable·camera.main

1 Reply

0 Votes

avatar image

Graham-Dunnett answered

Need to change camera perminantly.

Feb 22, '15 camera.main

1 Reply

0 Votes

avatar image

Temozly published

How to set the camera's clearflags

Jan 29, '15 camera.main

0 Replies

0 Votes

avatar image

DDeathlonger commented

I'm getting a NullReferenceException on Camera.main

Aug 21, '18 camera·nullreferenceexception·camera.main

1 Reply

0 Votes

avatar image

patrick13 published

Conversion position of camera active in coordinates GPS

Sep 21, '14 gps·camera.main

0 Replies

0 Votes

avatar image

rutter edited

Camera.main, Camera.allCameras, IndexOutOfBound exception

Sep 15, '14 c#·camera.main

1 Reply

0 Votes

avatar image

Tiddos published

Moved the camera and now unity stopped recognizing it as main camera Closed

Sep 9, '14 camera.main

-1 Replies

0 Votes

avatar image

majaus commented

NullReferenceException in game build Closed

Jan 15, '16 camera·nullreferenceexception·camera.main·maincamera

1 Reply

0 Votes

avatar image

crispycret commented

C# Camera.main.GetComponent: Unknown Word SmoothFollow Closed

Jun 3, '14 c#·camera·component·smoothfollow·camera.main

0 Replies

0 Votes

avatar image

omerdizmen commented

Can't use camera.main [SOLVED] Closed

2 days ago look·camera.main·mouse-look

1 Reply

0 Votes

avatar image

Joyman published

Change cam location on same scene by a behaviour

Feb 20, '14 camera.main

0 Replies

0 Votes

avatar image

getyour411 commented

fps camera facing 90 degrees the wrong way, C# coding issue.

Feb 20, '14 c#·fps·camera.main

1 Reply

0 Votes

avatar image

d112570 commented

Hide GUIText when GameObject is behind Camera

Nov 13, '13 hide·camera.main·gui-text·behind

2 Replies

0 Votes

avatar image

reazonsraj edited

Need help! Error in script.

Dec 12, '16 error·camera.main

3 Replies

0 Votes

avatar image

fafase commented

Clone wants a Parent (c#)?

Sep 3, '13 parent·child·clone·camera.main

1 Reply

0 Votes

avatar image

DaveA answered

[Pro] How do I make programmatic Render-to-Texture work?

Aug 15, '13 rendertexture·camera.main·rendertotexture

1 Reply

0 Votes

avatar image

gregzo answered

I'm having some trouble understanding how to switch cameras

Jul 29, '13 camera·camera.main

1 Reply

0 Votes

avatar image

trinitysj96 commented

photon mmo demo cant find camera

Mar 1, '13 instantiate·photon·camera.main

0 Replies

0 Votes

avatar image

trinitysj96 commented

Find Camera atuomatically

Jan 16, '13 camera·camera.main

1 Reply

0 Votes

avatar image

save edited

how to switch camera

Dec 29, '12 camera·camera.main

2 Replies

0 Votes

avatar image

Fattie commented

Instantiate a game object in array then change parent

Dec 15, '12 instantiate·parent·child·camera.main

1 Reply

0 Votes

avatar image

syclamoth converted answer to comment

Adjust lighting for distant objects

Mar 12, '12 camera.main

0 Replies

0 Votes

avatar image

tyo8686 commented

Setting main camera

Jan 20, '12 camera.main

1 Reply

0 Votes

avatar image

daum published

camera.main update problems with screenToWorldPoint

Nov 8, '11 guitexture·mouseposition·screentoworldpoint·camera.main

1 Reply

0 Votes

avatar image

raz899 answered

Is there any way to keep game object withing the limit of Camera FOV

Feb 17, '18 camera·camera-movement·camera.main·camera-scrolling

3 Replies

2 Votes

avatar image

sanghai commented

Need help for camera view like Air Strike 3d game ?

Sep 16, '11 camera·camera-look·camera.main·camera-scrolling

1 Reply

0 Votes

  • ‹
  • 1
  • 2
  • 3
  • 4
  • ›

Followers

avatar image

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

camera camera-movement c# cameras camera follow camera-look camera rotate unity 5 camera viewport mouse-look mouseposition main camera raycast scripting problem instantiate vr position parent 2d game viewport camera-scrolling android transform.position beginner ui


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