This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

I have a game I'm working on where I want to do object highlighting. Right now I'm using areas to detect when the player enters and leaves and using a shader to highlight an outline around the character. This works reasonably, but I have to attach a script to every one of the objects I want highlighting on to make it work.

Is there a more efficient way to do this that doesn't require me to set up every single object with a next_pass shader material? Ideally I would just highlight stuff when the player is looking in their direction and close enough, so probably still need an area. But I have yet to figure out how to switch out materials, and I don't even know if that's efficient. Any ideas would be super appreciated. Thanks for your time.

Godot version 3.4
in Engine by (26 points)

1 Answer

0 votes

Click on the mesh and clcik "create mesh outline" above the 3d space.

by (447 points)

It breaks the outlines tho. I guess I could easily edit it though.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.