Esempio n. 1
0
        public override void usdiOnLoad()
        {
            base.usdiOnLoad();

            m_points = usdi.usdiAsPoints(m_schema);
            usdi.usdiPointsGetSummary(m_points, ref m_summary);
            m_attrRot = usdi.usdiPrimFindAttribute(m_points, "rotations");
        }
Esempio n. 2
0
        public override void usdiOnLoad(usdi.Schema schema)
        {
            base.usdiOnLoad(schema);

            m_points = usdi.usdiAsPoints(schema);
            if (!m_points)
            {
                Debug.LogWarning("schema is not Points!");
                return;
            }
            usdi.usdiPointsGetSummary(m_points, ref m_summary);
            m_attrRot = usdi.usdiFindAttribute(m_points, "rotations");
        }
Esempio n. 3
0
        public override void usdiOnUnload()
        {
            base.usdiOnUnload();

            m_asyncRead = null;

            m_points     = default(usdi.Points);
            m_summary    = default(usdi.PointsSummary);
            m_pointsData = default(usdi.PointsData);
            m_attrRot    = default(usdi.Attribute);
            m_rotData    = default(usdi.AttributeData);

            m_positions  = null;
            m_velocities = null;
            m_rotations  = null;
        }
Esempio n. 4
0
 override public void OnUnload()
 {
     base.OnUnload();
     m_rep = default(usdi.Points);
 }
Esempio n. 5
0
 public PointsUpdater(usdi.Points rep, GameObject go)
     : base(rep, go)
 {
     m_rep = rep;
 }