Im so bad using the materials etc… So if u know how to do it can u explain it pls?. Becouse i dont understand how node works etc
You can make actor, add 3d widget component to it.
Then create UMG/widget with picture, place it on that 3d widget component.
And if you set it to screen it will always face player, and be visible on hud (will be displayed on hud).
So watch tutorials about widgets and umg.
Or you can add billboard (can be also mesh with your pic as texture), to actor. On event tick find player, calculate look at rotation, apply it to self (Actor you created). And it will rotate to face player.
Just keep learning. In steps what you need to do (simplest solution):
-
find static mesh or create it. either box or 2d plane. You can scale box or 2d plane to size you want.
-
create blueprint actor, add static mesh component to it, set that mesh you found aas mesh component displays
-
create material that displays your picture as texture. You can import your picture to unreal, right click on it and there should be option to make material out of texture.
-
apply that material to mesh you found (to have some starting meshes, make new project with starting content, or use one of templates).
-
now you should have actor with mesh that has your picture. Time for some blueprint code. Create on event tick code that gets reference to self, finds player pawn actor, uses FindLookAt rotation node, and then applies that found rotation to self.
Yes you need to watch some blueprint tutorials for it.
I went to https://chat.openai.com/
ie. chatGPT page and asked it this:
“in unreal 5 how i can make material with my png picture. Then make actor with it that always faces player?”
Much better and more detailed reply than i wrote, however it sometimes makes silly mistakes. But you can go there and ask it more detailed questions or point out something is not working. Imo. it is faster version of this forum at least for beginning questions.
To create a material with a PNG texture and then apply it to an actor that always faces the player in Unreal Engine 5, follow these steps:
1. Import the PNG Texture:
- Open your UE5 project.
- In the Content Browser, navigate to the folder where you want to import your PNG.
- Drag and drop your PNG file into this folder.
- Once imported, you should see your texture in the Content Browser.
2. Create a Material:
- Right-click in the Content Browser, navigate to
Materials & Textures
, and selectMaterial
. - Name the material (e.g., “PNG_Material”).
- Double-click on the material to open the Material Editor.
- Drag and drop your PNG texture from the Content Browser into the Material Editor.
- Connect the RGB pin of the texture to the Base Color input of the material.
- Click
Save
and close the Material Editor.
3. Create a Billboard Actor:
Billboard components always face the player. To create an actor with a billboard component:
- Right-click in the Content Browser and navigate to
C++ Classes
orBlueprint Class
, depending on your preference. SelectActor
as the parent class and name it (e.g., “BillboardActor”). - Double-click on the actor to open the editor.
- In the Components panel, click on
Add Component
and search for “Billboard”. Add theBillboard
component. - With the Billboard component selected, in the Details panel, you’ll see a property called
Sprite
. Assign your PNG_Material to this property.
4. Ensure the Actor Always Faces the Player:
The billboard component should inherently always face the player. However, if you’re not using a billboard and you need custom behavior:
- In the Event Graph of the actor, use the
Tick
event. - Get the player’s location and the actor’s location.
- Use the
Find Look At Rotation
node to compute the rotation needed for the actor to face the player. - Set the actor’s rotation to this value.
5. Place the Actor in the World:
- Drag and drop your BillboardActor from the Content Browser into your level.
- Now, when you play the game, the actor should always face the player.
This will give you a basic actor with a texture that always faces the player. Depending on your game’s requirements, you may need to make adjustments or add additional logic.
ps. it can also reply in some other languages than English.
i cannot put the billboard becouse i said like the carpet of devices its ´´only read´´. How can i disable that¿?¿