Compass / Radar

v1.0

You can set and reset overrides through the Northstar System component (Compass and Radar each inherit from Northstar System), or on the individual Compass Icons, whichever works best for your use case.

Reference Northstar System (Compass or Radar):

NorthstarSystem.Instance.SetOverrideColor("Default", Color.Blue);

Available Runtime Overrides

Remember, each Set method will have two signatures, one for a single icon, and one for all of a string type. There will also be two Reset methods for each. Each Set method will take in an appropriate value as well.

// Sets the Vector3 scale of the icon
SetOverrideScale(compassIcon, Vector3.one);
ResetOverrideScale(compassIcon);

// Sets the max opacity
SetOverrideOpacity(compassIcon, 0.5f);
ResetOverrideOpacity(compassIcon);

// Sets the icon color
SetOverrideColor(compassIcon, Color.Red);
ResetOverrideColor(compassIcon);

Last updated