Search Unity

360 degree dial to control rotation of an object around its z

Discussion in 'Scripting' started by Krodil, Aug 28, 2013.

  1. Krodil

    Krodil

    Joined:
    Jun 30, 2010
    Posts:
    141
    hey,

    I am instantiating 2x of the same gameobject (fence poles)
    Then I might end up having e.g. 5 pairs of poles with same names.
    I have then made some code where the distance etc. between the pair is computed and fence wires are instantiated.
    Since I drag these objects around I would like to execute code for all of them at the end of placing all fences.
    Instead of having it all in an update.

    I can maybe clarify if its too strange to read
    Any ideas?
    /Best
     
    Last edited: Aug 28, 2013
  2. hpjohn

    hpjohn

    Joined:
    Aug 14, 2012
    Posts:
    2,190
    What's this got do do with dials?

     
  3. Krodil

    Krodil

    Joined:
    Jun 30, 2010
    Posts:
    141
    sorry. I tried to delete the post.. How do I do that? :)