Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Make a Dual Render Sniper scope with sniper crosshair!!!

Discussion in 'Scripting' started by MilchBrocken, Dec 13, 2019.

  1. MilchBrocken

    MilchBrocken

    Joined:
    Nov 5, 2019
    Posts:
    33
    Hey✋,

    I want to make a dual render sniper scope but with a crosshair but this is my problem. I want a Sniper scope with a crosshair but I've no idea so please help me I know how to make glass in Uniti but a glass with a crosshair. Please help me. Oh this is an edit. And I have problems with my 3d Bullet. The Bullet is 180 degrees rotate but at the y axis it's 0 please help me ;) .

    Thank you
    Yours MilchBrocken

    Ps. Sorry for my English I'm german and my English is bad.


    The Crosshair for the Sniper scope:
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    39,015
    Part 1: drop a crosshair into a Unity UI image under a Canvas. Done.

    Part 2: organize your bullet's visuals so that it is the child of another gameObject, then turn that visual part until it is moving forward.
     
  3. MilchBrocken

    MilchBrocken

    Joined:
    Nov 5, 2019
    Posts:
    33
    Thanks for your Reply.

    But can you discribe Part 2?
     
  4. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    39,015
    Sure! Steps:

    1. get bullet graphic (3D model or 2D sprite)
    2. make blank GameObject
    3. put bullet as child GameObject to blank game object
    4. fire the blank GameObject
    5. if it goes backwards, turn the graphic around without turning the blank object

    Look up parenting and transforms and hierarchy and how that relates to your scene, perhaps work through some basic tutorials.
     
    MilchBrocken likes this.
  5. MilchBrocken

    MilchBrocken

    Joined:
    Nov 5, 2019
    Posts:
    33
    Ok thanks but I think you now I'm a Noob so I have a question. Fire the GameObject? What do you mean?
    But thanks you help me a lot