New answers tagged

1

Are you sure that Left Marker has an Image component? Double check it, looks like it is the only game object that is problematic. As for the for loop it looks like you could remove the code after the loop and replace it with something that would immediately switch between active and inactive based on the reticleSelect value (just make sure the indexes match ...


2

I found a pretty neat solution using the LineRenderer component with a script which places its positions on a procedural arc. First we need a character. I am using Unity Chan from the Asset Store for this demonstration. Right-click on your character in the Hierarchy and select Effect > Line. Move that new child-Object to where you want the center of the ...


0

You can create the mesh in Blender (or another 3D modeling program). After that, you can create a single channel texture (red for example), where at the start of the health bar it's 0 and it slowly fades to 1 until you get to the end of the mesh, like this: Note: The choice of using only one channel for the texture is just because you don't need the rest, ...


Top 50 recent answers are included