Profile image

1Part HUD

112k PlanariaLab  3.0 years ago
20,592 downloads

current version : 1.4.3

Be sure to read the instructions before using the product.

Due to repeated updates, some of the thumbnails and the actual builds are displayed differently.

By exploiting the variable function and text labels, it is possible to create a HUD with a certain level of functionality using only one part.

---How to use---

It works by placing this HUD (TextLabel) directly in front of the viewpoint (camera or cockpit) and adding the following variables to VariableSetter.
(VariableSetters is at the bottom right of the build menu. It can be accessed from the [(x)] button to the left of the [Play] button.)

Caution, changing the height or width of the label is not recommended as it may cause the drawing to collapse.

---Variable(necessary)---

Without the following variables, the HUD will not function properly.

  • HudDistance
    This is used to properly position the TD BOX and other displays.
    Enter the distance between the HUD and the view point.
    If you have changed the part scale of the HUD(default value is 2)
    distance/PartScale.

  • UnitType
    Sets the unit system to be used for display according to the value entered.
    Please choose a value from the following (default value is 0)

    • 0 : Metric(m/s, m)
    • 1 : Nautical(knot, ft)
    • 2 : Imperial(mph, ft)

---Variable(option)---

These variables can be used to enable additional features.

  • TGTPOSLocal(X/Y/Z)
    Used to draw TargetDesignator.
    Copy and paste from VariableSetters in this build.

  • BulletSpeed
    Used to draw Predictor.
    Enter the bullet velocity [m/s] of the machine gun used in the aircraft (used for predictor)

  • predict_(X/Y/Z)
    Used to draw Predictor.
    Copy and paste from VariableSetters in this build.

You do not need permission to use it in your work.
Also, a credit will make the author happy, but is not required.

Spotlights

General Characteristics

  • Successors 102 airplane(s) +1548 bonus
  • Created On Windows
  • Wingspan 4.1ft (1.3m)
  • Length 8.2ft (2.5m)
  • Height 4.5ft (1.4m)
  • Empty Weight 551lbs (250kg)
  • Loaded Weight 551lbs (250kg)

Performance

  • Wing Loading N/A
  • Wing Area 0.0ft2 (0.0m2)
  • Drag Points 127

Parts

  • Number of Parts 2
  • Control Surfaces 0
  • Performance Cost 31
  • Log in to leave a comment
  • Profile image

    Comment notifications for this build are turned off so I may not notice it.

    Pinned 3 months ago
  • Profile image

    To everyone who doesn't understand what to do: you add the label part to sub-assemblies and then put it on your own build. You can make it smaller by changing part scale in XML propeties. THERE ARE VARIABLES however, that the HUD label uses, and they are NOT ATTACHED to it. So you open THIS build, open Variables section using the button at the bottom of the screen, and copy everything from there. Then you go to YOUR build, put the label part in place, and then open Variables section, and PASTE everything you copied previously.

    If your TD Box (the square that shows the target) is off place, you should adjust HudDistance.

    Pinned 2.1 years ago
  • Profile image

    Please read the explanation once before asking a question. Writing the same reply over and over is very tiring

    Pinned 3.0 years ago
  • Profile image

    @Dracul0Anderson
    1.
    Basically, only text can be displayed with text labels, what looks like a line is a collection of hyphens and minus signs.
    2.
    Inputs can be embedded in text by using {} as shown below.
    Throttle={Throttle}
    3.
    Also, when combined with rich text tags, it is possible to control the position of text, etc.(For more information on tags, search for Rich Text Tags in Unity TextMeshPro.)
    <pos={1+sin(Time*180)}>←→
    <voffset={sin(Time*180)}>↑↓

    2 months ago
  • Profile image

    @PlanariaLab
    How did make this work, more specifically, how did you get the lines(or any normal text) to respond to inputs? I tried studying this on my own, but I can't make sense of it(I'm trying to make my own HUD of sorts).

    2 months ago
  • Profile image

    @VisionAviation @idkwhatosay
    I think it's too late now, but I added the unit conversion feature.
    Please add the variable UnitType to VariableSetters and set any value. (Details are in the description on this page.)

    3 months ago
  • Profile image

    @L3FT2R1GHT
    Metric system (default for SP and Unity)... but since ver 1.4.3, I added the ability to change to other unit systems.
    .
    Regarding the altimeter change mentioned in the comments.
    Please find Altitude in the code and convert it to (Altitude-3.1). (There are 3 places in ver 1.4.3)
    .
    If you are using a text editor's bulk replace, convert Altitude* to (Altitude-3.1)*.
    (Using Altitude as the replacement target will destroy AltitudeAgl).
    .
    As for HudDistance, it looks like your setup is correct...
    If the same symptoms occur in ver 1.4.3, please let me know.

    3 months ago
  • Profile image

    @linxiaofeng2339
    Fixed it.
    Sorry it took me so long to notice.

    3 months ago
  • Profile image
    5,568 dabestsock

    @L3FT2R1GHT hmm I don't know how
    Sorry I couldn't be help

    3 months ago
  • Profile image

    @dabestsock I've tried using ChatGPT for Funky Trees, it was hopeless. Although, it might've been my fault.

    3 months ago
  • Profile image
    5,568 dabestsock

    @L3FT2R1GHT I would use Chatgpt
    That's what I use

    3 months ago
  • Profile image

    @PlanariaLab I scaled this to 0.25 size, 50 cm in front of the cockpit camera, same height, with a hud distance of 2, but it’s a bit off for indicating attitude. Can you tell me how I can fix this?

    6 months ago
  • Profile image

    @PlanariaLab What measurement system does this use, and how can I modify the scrolling altitude so that it displays the output of:
    Altitude - 3.1 metres?

    7 months ago
  • Profile image

    hey dude, how can I switch it from KPH and meters to MPH and feet? Thx

    8 months ago
  • Profile image

    @Ethantaing the cockpit dosent count as a part 💀

    8 months ago
  • Profile image

    No is havE 2 parts

    9 months ago
  • Profile image

    I’ve inputted the variables in yet the TD box still is not centered. I am unsure of what I did wrong,

    +1 9 months ago
  • Profile image

    I still do not understand, could you take a screen shot of the variable list so i can copy it, the instructions of the variables are unclear.

    11 months ago
  • Profile image
    270 S1lly

    Damn 2 years ago

    11 months ago
  • Profile image

    I dont understand where the variables need to be specified, it unclear from the post and i cant find anything in the changelog

    +3 one year ago
  • Profile image

    @PlanariaLab
    I'm sure you're busy with a really cool project right now, but if you could, would you make an F-14A/B style HUD for me? I would greatly appreciate it if you could. And OF COURSE I would credit you in my build.

    +2 1.2 years ago
  • Profile image

    Extra Legendary 10/10

    1.2 years ago
  • Profile image

    @192WWO @192WWO save as a sub-assembly

    1.4 years ago
  • Profile image
    270 192WWO

    How do I save it?

    1.4 years ago
  • Profile image
    829 A10

    @MrSilverWolf ok sorry

    1.4 years ago
  • Log in to see more comments