MaterialUI icon indicating copy to clipboard operation
MaterialUI copied to clipboard

Close Selection Box

Open pietruh00s opened this issue 10 years ago • 3 comments

Hi! How to close selection box using script when user open it but didnt select anything and pressed another button? Is there any function in Selection Box Config?

pietruh00s avatar Sep 22 '15 08:09 pietruh00s

Hi! If user pressed another button selection box will be hidden automatically. You can check it in example xx - SelectionBoxes. Also you can call method ContractList().

vhatsura avatar Sep 22 '15 09:09 vhatsura

Calling ContractList() when SelectionBox is closed gives me errors like:

NullReferenceException: Object reference not set to an instance of an object MaterialUI.SelectionBoxConfig.ContractList () (at Assets/MaterialUI/Scripts/SelectionBoxConfig.cs:317)

I have button and selectionbox. Pressing button moves selection box out of screen and close it (if its open). So Im looking for something like: if (selectionbox is open) ContractList()...

pietruh00s avatar Sep 22 '15 11:09 pietruh00s

Declare.

Public SelectionBoxConfig BoxBox;

Then later...

BoxBox.ContractList();

Sent from my iPhone

On 22 Sep 2015, at 1:08 PM, pietruh00s [email protected] wrote:

Calling ContractList() when SelectionBox is closed gives me errors like:

NullReferenceException: Object reference not set to an instance of an object MaterialUI.SelectionBoxConfig.ContractList () (at Assets/MaterialUI/Scripts/SelectionBoxConfig.cs:317)

I have button and selectionbox. Pressing button moves selection box out of screen and close it (if its open). So Im looking for something like: if (selectionbox is open) ContractList()...

— Reply to this email directly or view it on GitHub.

ddutchie avatar Sep 22 '15 11:09 ddutchie