public void CleanModelShowCameraList() { for (int i = 0; i < modelList.Count; i++) { UIModelShowTool.DisposeModelShow(modelList[i]); } modelList.Clear(); }
public UIModelShowTool.UIModelShowData CreateModelShow(string modelName, string layerName = null, bool?orthographic = null, float?orthographicSize = null, Color?backgroundColor = null, Vector3?localPosition = null, Vector3?localScale = null, Vector3?eulerAngles = null, Vector3?texSize = null, float?nearClippingPlane = null, float?farClippingPlane = null) { var model = UIModelShowTool.CreateModelData(modelName, layerName, orthographic, orthographicSize, backgroundColor, localPosition, eulerAngles, localScale, texSize, nearClippingPlane, farClippingPlane); modelList.Add(model); return(model); }
public void RemoveModelShowCamera(UIModelShowTool.UIModelShowData data) { modelList.Remove(data); UIModelShowTool.DisposeModelShow(data); }