-
Notifications
You must be signed in to change notification settings - Fork 0
Graffiti Spot
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.
When adding a graffiti spot, you need to generate an Uid for it, else it won't work and crash your game.
The area on which the graffiti will be displayed is previewed by a pink rectangle over your mesh, essentially being a projection.
You might also want to uncheck the "Report As Crime" box, if you don't want players getting heat for tagging the spot.
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:
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":
The graffiti should now properly wrap around any kind of geometry
YOU NEED to generate an Uid for each graffiti you add, always make sure to do it!
Questions? Join our Discord: https://discord.gg/7rwtDt6Dyj