【虚拟仿真】Unity3D中拆分模型教程(多种类型模型拆分) |
您所在的位置:网站首页 › unity3d工业虚拟仿真视频教程 › 【虚拟仿真】Unity3D中拆分模型教程(多种类型模型拆分) |
using DG.Tweening;using System.Collections;using System.Collections.Generic;using UnityEngine; public class SplitTest : MonoBehaviour{ private Transform m_ParObj;//中心点 private List m_Child;//所有子对象 private List m_InitPoint = new List();//初始位置 private int m_IsSplitState = 0; private float m_TimeTotal = 0;//总时间 private float m_Timecurrent = 0;//当前时间 private int m_TimeDisRe = 0;//时间间隔 记录 private int IndexCount = 0;//计数 public int m_TimeDistance = 1;//时间间隔 void Start() { m_ParObj = GetComponent(); m_Child = GetChild(m_ParObj); for (int i = 0; i |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |