You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to create a UI marker on my map like this ↓
Hence,I try to modify the FeatureUiMarker.cs
I create the landmark to show the UI marker
[SerializeField]
private Transform _landmark;
↑ I don't know how create the object like Rectangle & Info
Because the FeatureUiMarker.cs only give the _wrapperMarker.position & _infoPanel.position
FeatureUiMarker.cs
_wrapperMarker.position = new Vector2(left - 10, top + 10);
(_wrapperMarker as RectTransform).sizeDelta = new Vector2(right - left + 20, top - bottom + 20);
_infoPanel.position = new Vector2(right + 10, top + 10);
_info.text = string.Join(" \r\n ", _selectedFeature.Feature.Properties.Select(x => x.Key + " - " + x.Value.ToString()).ToArray());
But ObjectInspectorModifier.cs only create InteractiveSelectionCanvas & selector
ObjectInspectorModifier.cs
var go = new GameObject("InteractiveSelectionCanvas", typeof(Canvas), typeof(CanvasScaler), typeof(GraphicRaycaster));
canvas = go.GetComponent<Canvas>();
canvas.renderMode = RenderMode.ScreenSpaceOverlay;
var sel = Instantiate(Resources.Load<GameObject>("selector"));
sel.transform.SetParent(canvas.transform);
_marker = sel.GetComponent<FeatureUiMarker>();
I have no idea about this ??:confused:
What did I miss???:sob::sob::sob:
The text was updated successfully, but these errors were encountered:
I want to create a
![marker-15](https://user-images.githubusercontent.com/38349902/41295137-58d9d446-6e8c-11e8-81c9-3570aa79ebde.png)
UI marker
on my map like this ↓Hence,I try to modify the
FeatureUiMarker.cs
I create the
landmark
to show the UI marker↑ I don't know how create the object like
Rectangle
&Info
Because the
FeatureUiMarker.cs
only give the_wrapperMarker.position
&_infoPanel.position
FeatureUiMarker.cs
But
ObjectInspectorModifier.cs
only createInteractiveSelectionCanvas
&selector
ObjectInspectorModifier.cs
I have no idea about this ??:confused:
What did I miss???:sob::sob::sob:
The text was updated successfully, but these errors were encountered: