- Edited
Hi there!
It looks like you have some terrific selection options, but I am having trouble because there are so many touch variations. Could you please add some more examples of how selection can be added to objects via script? These would be very useful in the demo scenes as well.
My situation: I have objects that I am instantiating at runtime that I want to make selectable and to execute additional functions when they are selected (specifically, passing the information the object contains to the UI). From what I understand, I want to be adding them to the list of selectables on the TouchCameraInputs object by script. Are these events that I should be adding or objects?
Could you please demonstrate how to make an object selectable (by finger and mouse) via script?
Here is how I am currently trying to do it when I instantiate map markers:
marker.AddComponent<TouchSelectable>();
mainCamera.GetComponent<SelectByFinger>().Selectables.Add(marker.GetComponent<TouchSelectable>());
Many thanks!