Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Edit bug

Discussion in 'Editor & General Support' started by R0oo0T, Dec 19, 2017.

  1. R0oo0T

    R0oo0T

    Joined:
    Oct 25, 2012
    Posts:
    8
    FuckUnity.gif

    Ha ha! My Object is fly without play mod
     
    Last edited: Dec 19, 2017
  2. R0oo0T

    R0oo0T

    Joined:
    Oct 25, 2012
    Posts:
    8
    Code (CSharp):
    1. protected virtual void SyncTransform()
    2.         {
    3.             if(isServer)
    4.             {
    5.                 pos = transform.position;
    6.                 rote = transform.rotation;
    7.                 scale = transform.localScale;
    8.             } else
    9.             {
    10.                 transform.position = Vector3.Lerp(transform.position, pos, 0.01f) ;
    11.                 transform.rotation = rote;
    12.                 transform.localScale = scale;
    13.             }//end if/else
    14.         }//end SyncTransform

    It is problem code.

    I call this code in Update().