- Home /
Too subjective and argumentative
Making image array along two objects
Hello, I am beginner on Unity, for my summer term homework, i have to design a game to teach students how to draw line. I designed a background which is very poor but that is not my problem. I want to repeat this fence image between two fences. However, i don't know which function should be used. I think I should use nav mesh agent, instantiate and linerenderer. I know how to use instantiate but how i repeat these fence images between two fences which are putted by user. Please help me to do this function. Thanks,
You can potentially do this with just the line renderer (might even be the easiest way if you are new to scripting). Just make sure that you set the texture mode to Tile and set the view to Local.
I don't feel right being that much more specific since the point of a homework assignment is to figure some of this out on your own. Ins$$anonymous$$d, please see the documentation for the line renderer and be sure to check out the public functions in the script reference.
Please be more specific. First find first hence next find other fence, but then what will i do? Should i make vector3 for this distance and make an array to put images along this path(I dont know how to this)?