
If you've done it all correctly your SetHud void should look like this: StaminaTransform.anchorMax = new Vector2(0f, 0f) StaminaTransform.anchorMin = new Vector2(0f, 0f) So instead of (-235f -340f) it will be (85f, 10f), Now we will start anchoring. Let's start by Changing the Vector2 values of the anchoredPosition again. We want to change the said anchor to be on the bottom left corner so it stays there in every resolution. The reason why it's like that is because it's incorrectly anchored. If you play it in a different resolution (like 640x480) It's in a weird spot, That's not where we want it. Make sure to trigger the SetHud void in the start method and there you go, you've successfully moved the Stamina Bar! but wait. StaminaTransform.anchoredPosition = new Vector2(-235f, -340f) If you've done it correctly, again it should be like this: So let's change our values to be -235 for the X position and -340 for the Y position. The value to your left is your X position, whilst the value to your right is the Y position. Now we are going to place it on the bottom left corner.

StaminaTransform.anchoredPosition = new Vector2(0f, 0f) If you've done it correctly, it should look like this: We're going to change it's anchored position so type in anchoredPosition and then add " = new Vector2(0f, 0f) " Start by typing in your RectTransform variable. STEP 3: Moving and Anchoring ItNow it's time for the fun part, Actually moving it! So let's start off by Changing it's anchored position. This will connect the Stamina Transform variable to the Stamina Bar GameObject by Getting it's RectTransform component, meaning we can start moving it around now. RectTransform staminaTransform = .GetComponent() I am going to use the stamina bar as an example. Now we are going to make a local RectTransform variable in the SetHud void for our Hud Element RectTransform. STEP 2: BasicsRight click on anything and click "Edit Class", Make a void. Go to "-" and look for "GameControllerScript" (It should be in the Managed Folder in "BALDI_Data") STEP 1: Setting UpOpen Up dnSpy and open up your Assembly-CSharp.dll.


↺6 The Legend of Zelda: Breath of the Wild (WiiU) To create shortcuts to your favorite games! Join us! Our away homes on the interwebs: How to Properly Move Hud Elements in Base Game Signup Login ModsĪnd creators, since 2001.
