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

[SOLVED]My object stays behind for one frame

Discussion in 'Scripting' started by TheForsaken95, Jan 18, 2015.

  1. TheForsaken95

    TheForsaken95

    Joined:
    Aug 29, 2014
    Posts:
    30
    I've got an object that is instantiated at a certain Vector3, and inside that object is a script that relocates it to the proper coordinates. The problem is, for one single frame the object lags behind. This occurs even when relocating the object through Awake, Start, and LateUpdate. The object needs to relocate itself immediately upon creation, and also be drawn within the same frame. Is there a way to do this without changing the target location of the Instantiate function?
     
  2. TheForsaken95

    TheForsaken95

    Joined:
    Aug 29, 2014
    Posts:
    30
    I was working on the wrong script. Please hit me on the head as hard as you can.