18
1
using UnityEngine;
2
using UnityEditor;
3
4
public class SelectAllOfTag : ScriptableWizard
5
{
6
public string searchTag = "Tag name";
7
8
[MenuItem("Unatcolium/Select All of Tag...")]
9
static void SelectAllOfTagWizzard()
10
{
11
ScriptableWizard.DisplayWizard<SelectAllOfTag>("Tag", "Find");
12
}
13
14
private void OnWizardCreate()
15
{
16
Selection.objects = GameObject.FindGameObjectsWithTag(searchTag);
17
}
18
}
Cached Result
Right(1)
Right(3)
Right(9)
10
Left(10 not greater than 11.)
failed value produces default int32? result - 0
Right(I succeeded because t1 == 0)
'fail' is instance of Either? True
Right(3)
Right(9)
10
Left(10 not greater than 11.)
failed value produces default int32? result - 0
Right(I succeeded because t1 == 0)
'fail' is instance of Either? True