Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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
  • Home /
  • Help Room /
This question was closed Jun 13, 2018 at 11:43 AM by QC_Scott for the following reason:

It's 4 years old

avatar image
-2
Question by QC_Scott · Jun 12, 2018 at 11:00 AM · transformvariablerotate objecteulerangles

Storing a rotation variable, does it store the value of rotation or does it update whenever the object rotates?

This is a very simple question that I need the answer to, please. If I update a variable like: OriginalRotation = player.transform.eulerangles.x Ignore the fact I haven't used capitals where I should. If I rotate the transform but don't update this variable, manually, will the value stay as the same number or will it update with the rotation? If it updates with the rotation can you please suggest a way in which I can make the variable keep the same value until I want it to manually update? Thanks in advance. By the way my code is in C#

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image tormentoarmagedoom · Jun 12, 2018 at 09:50 AM 0
Share

Good day.

This is not following UA rules, you nned to test your things before co$$anonymous$$g here to ask. And after trying and experimenting, if still need help, come to ask, and we will help you with no problem

1 Reply

  • Sort: 
avatar image
2

Answer by Graham-Dunnett · Jun 07, 2014 at 10:24 AM

You've obviously posted your question without doing any experiments. I think it'll take you 30 seconds to work out that the variable is a copy of what was in the rotation, and if the rotation changes the variable doesn't.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image sneakybig · Jun 11, 2018 at 04:39 PM 0
Share

Hi Graham, you seem to be very knowledgable, I have a question that I have not been able to figure out on my own, mostly because I am very new to C+ and Unity3d... Not sure if there is an easy answer or maybe you can just point me in the right direction, but if you can take a look at my question here I will highly appreciate it:

https://answers.unity.com/questions/1512173/sliders-tilt-and-yaw-rotation-1.html

Sorry I asked the question here, but I wasn't sure how to send you a P$$anonymous$$..

Thank you in advance!

Fabio

Follow this Question

Answers Answers and Comments

23 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Rotating an object in script 0 Answers

Rotation Issue 0 Answers

how to to rotate a object in 2D to known position values 0 Answers

Limit movement to just forward/backward and left/right 0 Answers

What is the difference between setting transform.eulerAngles and transform.rotation? 1 Answer


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