Exemple #1
0
 public MeshCapturer(ComponentCapturer parent, MeshRenderer target)
     : base(parent)
 {
     m_obj         = target.gameObject;
     m_abc         = AbcAPI.aeNewPolyMesh(parent.abc, target.name);
     m_target      = target;
     m_mesh_buffer = new MeshBuffer();
 }
Exemple #2
0
            public SkinnedMeshCapturer(ComponentCapturer parent, SkinnedMeshRenderer target)
                : base(parent)
            {
                m_obj         = target.gameObject;
                m_abc         = AbcAPI.aeNewPolyMesh(parent.abc, target.name);
                m_target      = target;
                m_mesh_buffer = new MeshBuffer();

                if (m_target.GetComponent <Cloth>() != null)
                {
                    var t = m_parent as TransformCapturer;
                    if (t != null)
                    {
                        t.scale = false;
                    }
                }
            }