Exemplo n.º 1
0
    public void CleanModelShowCameraList()
    {
        for (int i = 0; i < modelList.Count; i++)
        {
            UIModelShowTool.DisposeModelShow(modelList[i]);
        }

        modelList.Clear();
    }
Exemplo n.º 2
0
    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);
    }
Exemplo n.º 3
0
 public void RemoveModelShowCamera(UIModelShowTool.UIModelShowData data)
 {
     modelList.Remove(data);
     UIModelShowTool.DisposeModelShow(data);
 }