Author Topic: Making the custom Compass Style work  (Read 118 times)

rsaldarris

  • Newbie
  • *
  • Posts: 1
    • View Profile
Making the custom Compass Style work
« on: September 15, 2021, 07:09:31 AM »
I've read the documentation but there's no explanation on how to make your own custom style work, and also making it move and not using whats inside of the Compass Back

Kronnect

  • Administrator
  • Hero Member
  • *****
  • Posts: 7565
    • View Profile
Re: Making the custom Compass Style work
« Reply #1 on: September 15, 2021, 10:03:32 AM »
Hi!

Please check this updated document (pages 18-19) with details about customizing the compass bar elements:
https://www.dropbox.com/s/knnldth15xap2vd/QuickStartGuide.pdf?dl=0

Basically you have to select "Custom" as the Style in the Compass Pro inspector. That will keep your modifications in the prefab instead of replacing some elements when entering playmode.
Once you have done that, it's a matter of editing the Compass Pro hierarchy (the prefab or if you already have the compass in the scene, unpack the prefab, expand the hierarchy and edit the desired elements).
For example, the "CompassBack" UI element holds the sprite for the background of the compass bar. Page 19 of the documentation contains some screenshots.