A component on my instantiated prefab accts differently when the prefab is selected in assets section.
I have a Linerenderer on a ball prefab that gets launched by the player. That ball prefab has scripts, a Rigidbody, and a Linerenderer. What's supposed to happen is that the Linerenderer updates both of its ends every single frame. However, when the prefab is not selected in the assets section/inspector, the LR only updates its ends whenever I click. The block of code that checks for a click from the user does NOT include getting the positions of the ball and player NOR setting the positions of the line. When the prefab IS selected in the editor, this problem magically goes away. Why is this? My code From my understanding, as long as I don't change any values in the editor, absolutely NOTHING should change in the scene. Why is this the only exception? I am using Unity 2019.2.4f
Your answer
![](https://koobas.hobune.stream/wayback/20220613054034im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Unity3D FollowCam not following player vehicle 0 Answers
how to connect WEBRTC in unity ? 2 Answers
Can i change defualt target framework in .csproj to 4.7.2? 0 Answers
C# Script for 3rd Person Camera? 1 Answer