Best practices: hierarchy does not seem possible because redefined method need other private methods
I need to add a single line of code to the method private void FixedUpdate()
of the script: Standard Assets > Characters > FirstPersonController > Scripts > RigidbodyFirstPersonController.cs
I think I cannot use hierarchy because that method need other private variables and methods.
What I have done is to copy and paste the whole code in another script. Then, I have added the single line I needed to add. I explained exactly what I did here: http://answers.unity3d.com/questions/1084480/make-camera-tracking-the-view-in-vr.html#answer-1093443
Is it the best way to do it? It does not seem very elegant...
Not sure why you cant just add your line to the RigidBodyFirstPersonController.cs if you have the source code file. Does adding your line cause errors to occur?
I could, but I thought it is a bad practice. Couldn't it be overwritten if I (or somebody else) update the (standard) asset?
Your answer
Follow this Question
Related Questions
Tracking Long Lists and Scalability 0 Answers
Is it best practice to not attach a pause script (or others) to a GameObject? 1 Answer
Is it better to split a script into different scripts? 1 Answer
should I do things in the Editor or in scripts? 0 Answers
is there a way to determine the gameobject is Expanding/Collapsing? 0 Answers