public static GameObject CreatUIWorld(DRes resources) { GameObject obj = DefaultControls.CreateImage(resources); obj.AddComponent <UIWorld>(); obj.name = "Pl"; return(obj); }
public static GameObject CreatUIView(DRes resources) { GameObject obj = DefaultControls.CreatePanel(resources); obj.AddComponent <UIView>().RenderMode = RenderMode.ScreenSpaceCamera; obj.name = "Pl"; return(obj); }