1Part HUD
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.
Specifications
Spotlights
- spefyjerbf 3.0 years ago
- deusalgor 3.0 years ago
- Kennneth 3.0 years ago
- BaconAircraft 3.0 years ago
- MAHADI 3.0 years ago
- RussianAce 3.0 years ago
- CoolPeach 3.0 years ago
- MisterT 3.0 years ago
- Alisuchanka 3.0 years ago
- AWESOMENESS360 3.0 years ago
- RicardoACE 3.0 years ago
- Inuyasha8215 3.0 years ago
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
Comment notifications for this build are turned off so I may not notice it.
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.
Please read the explanation once before asking a question. Writing the same reply over and over is very tiring
@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)}>↑↓
@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).
@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.)@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 destroyAltitudeAgl
)..
As for HudDistance, it looks like your setup is correct...
If the same symptoms occur in ver 1.4.3, please let me know.
@linxiaofeng2339
Fixed it.
Sorry it took me so long to notice.
@L3FT2R1GHT hmm I don't know how
Sorry I couldn't be help
@dabestsock I've tried using ChatGPT for Funky Trees, it was hopeless. Although, it might've been my fault.
@L3FT2R1GHT I would use Chatgpt
That's what I use
@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?
@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
?hey dude, how can I switch it from KPH and meters to MPH and feet? Thx
@Ethantaing the cockpit dosent count as a part 💀
No is havE 2 parts
I’ve inputted the variables in yet the TD box still is not centered. I am unsure of what I did wrong,
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.
Damn 2 years ago
I dont understand where the variables need to be specified, it unclear from the post and i cant find anything in the changelog
@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.
Extra Legendary 10/10
@192WWO @192WWO save as a sub-assembly
How do I save it?
@MrSilverWolf ok sorry