Example #1
0
 // Disables file buttons with files that have a different file extension (than given to the OpenFilePanel)
 private void DisableWrongExtensionFiles(GameObject button, string file)
 {
     if (!_fileBrowser.CompatibleFileExtension(file))
     {
         button.GetComponent <Button>().interactable = false;
     }
 }
Example #2
0
 // Disables file buttons with files that have a different file extension (than given to the OpenFilePanel)
 private void DisableWrongExtensionFiles(KImprovedFileBrowserButton button, string file)
 {
     if (!_fileBrowser.CompatibleFileExtension(file))
     {
         button.Button.interactable = false;
     }
 }