private void OnWillRenderObject()
 {
     if (GenClass != null)
     {
         GenClass.OnWillRenderObject();
     }
 }