Skip to content

Graffiti Spot

Nahuel Rocchetti edited this page Sep 6, 2024 · 3 revisions

Graffiti

graffiti spots in game (used)

What does it do

Adds a 'GraffitiSpotPrefab' in your Unity scene. You can select the size of graffiti you need under the 'Graffiti' drop menu. This allows you to place a spot where you can graffiti in game.

graffiti spots in game

Configuration

When adding a graffiti spot, you need to generate an Uid for it, else it won't work and crash your game.

empty Uid graffiti properties

The area on which the graffiti will be displayed is previewed by a pink rectangle over your mesh, essentially being a projection.

graffiti size variants in project

You might also want to uncheck the "Report As Crime" box, if you don't want players getting heat for tagging the spot.

Projection techniques

By default, the graffiti projection is a flat plane. This means that on uneven surfaces the decal will not wrap around properly around the geometry:

image

Notice how the cube that's protruding out of the wall goes through the projection.

This can be fixed by opening the graffiti object, and changing the "Technique" value on the Easy Decal components of the "topGraffiti" and "bottomGraffiti" objects to "Box":

image

The graffiti should now properly wrap around any kind of geometry

image

Watch out!

YOU NEED to generate an Uid for each graffiti you add, always make sure to do it!