using SC.XR.Unity;
using ShadowStudio.Tool;
using ShadowStudio.UI;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Dynamic;
using System.Text.RegularExpressions;
using UnityEngine;
using UnityEngine.UI;
using XRTool.UI;
using XRTool.Util;
using XRTool.WorldUI;
namespace ShadowStudio.Model
{
///
/// 资源的编辑
///
[RequireComponent(typeof(WorldDlg))]
public class ArtMoreEditor : UnitySingleton
{
private ArtContainer artContainer;
private Button lastStepBtn;
private Button nextStepBtn;
private ToggleButton editToggleBtn;
private Button modelInfoBtn;
private Button copyBtn;
//private Button deleteBtn;
private WorldDlg dlg;
private XRIcon lastIcon;
private XRIcon nextIcon;
public float checkTime = 1;
private float lastTime;
//private Transform modelInfoBtnBack;
//private Transform SetDlg;
private SCInputField posXInputField;
private SCInputField posYInputField;
private SCInputField posZInputField;
private SCInputField rotXInputField;
private SCInputField rotYInputField;
private SCInputField rotZInputField;
private SCInputField scaXInputField;
private SCInputField scaYInputField;
private SCInputField scaZInputField;
private TextMesh distanceText;
private Toggle lineToggle_Switch;
private GameObject Distanceline;
public string defaultShader = "Mixed Reality Toolkit/Standard";
private TextMesh CentreTextMesh;
private Material defMate;
private void Start()
{
//if (!dlg)
//{
// dlg = GetComponent();
//}
//XRIcon3D[] bts = dlg.Root.GetComponentsInChildren();
//var combinedMesh = new Mesh();
//for (int i = 0; i < bts.Length; i++)
//{
// var mesh = bts[i].Body;
// //combinedMesh.CombineMeshes
//}
Init();
}
private void Init()
{
if (dlg == null)
{
dlg = GetComponent();
lastStepBtn = dlg.GetBreadthChild