The following is my script base class (ViewModelBase is also the base class)
[RequireComponent (typeof (CanvasGroup)))
Public abstract class UnityGuiView : MonoBehaviour IView T: where ViewModelBase
{}
Found in the process of debugging GameObject. GetComponent
(a); Unable to get scripting object
Here is one of the sample script
Public class LoginView: UnityGuiView
{}
CodePudding user response:
Can such a gameObject. GetComponent (a);
UnityGuiView generic class is not as components are added to the object, of course, to get less than wow. CodePudding user response: