#How 2 use PlacementPreviewPrefab

1 messages · Page 1 of 1 (latest)

covert ravine
#

PlacementPreviewPrefab is an option a few updates ago, but there's no clear info on the github on how to use it.

winged mural
#

Its a masterbundle redirect

#

Point it to a .prefab file

#

To use as the Preview

#

This is not at all required as the game will use the barricade as the default preview

covert ravine
#

This is more so to see if it works. My primary use of this is to put it on barricades that have scripts in them

winged mural
#

What do you mean

covert ravine
#

I want to know the use of this option, step-by-step if necessary due to limited info or documentation about it. I had this thing as a suggestion months back in Github, which I hope is what the PlacementPreviewPrefab is for:
https://github.com/SmartlyDressedGames/Unturned-3.x-Community/issues/3217

GitHub

I wanted to do modified placeables with scripts in them awhile back, however they seem to always start the script so I'm assuming the preplaced & placed item uses the same prefab. S...

winged mural
#

Yes it is

winged mural
#

You just reference a .prefab file

#

To be your preview

covert ravine
#

Is it written like a bundle override, like this:

PlacementPreviewPrefab /Items/Barricades/Campfire

winged mural
#

PlacementPreviewPrefab core.masterbundle:Items/Barricades/Campfire.prefab
MASTERBUNDLE:PATH You only need to specify the masterbundle if its not apart of your current masterbundle

#

So if your asset was apart of core.masterbundle then youd only need PlacementPreviewPrefab Items/Barricades/Campfire.prefab

covert ravine
#

It worked. Thanks for the support