Topic: Can I change blue color line to another color?
I'm working with Online Maps and Upano, actually I want to lower the color opacity from 1 to 0.4, so it's visible and doesn't cover the map.
You are not logged in. Please login or register.
Infinity Code Forum → Online Maps Help → Can I change blue color line to another color?
I'm working with Online Maps and Upano, actually I want to lower the color opacity from 1 to 0.4, so it's visible and doesn't cover the map.
Hello.
Example:
using UnityEngine;
public class SetOverlayTransparency : MonoBehaviour
{
private void Start()
{
OnlineMapsTileManager.OnTileLoaded += OnTileLoaded;
}
private void OnTileLoaded(OnlineMapsTile tile)
{
tile.overlayFrontAlpha = 0.4f;
}
}
Already implemented code but no changes. I think blue line is created from texture2D.. maybe this photo can help find answer
1. What Control are you using? Only Tileset has Overlay support.
2. Please make sure that in SetOverlayTransparency script you are changing the transparency for the layer that is selected in Pano Connector.
I used map with type 2D and UIRawImage Control.
and I also store SetOverlayTransparency under Pano Connector
2D Controls do not support overlay transparency.
Use Tileset instead.
Tileset much faster and has many exclusive features.
If you want to use Tileset on UI, there is an example scene in the package on how to do it.
Infinity Code Forum → Online Maps Help → Can I change blue color line to another color?
Powered by PunBB, supported by Informer Technologies, Inc.