Exemplo n.º 1
0
 public void LoadFromStream(Stream stream)
 {
     if (stream == null)
     {
         return;
     }
     PVSManager.GetInstance().Clear();
     LoadIDs();
     PVSManager.GetInstance().LoadFromStream(stream);
 }
Exemplo n.º 2
0
        // 当前Instance对象是否可见(InstanceID来自MeshRenderer)
        public bool IsInstanceIDVisible(int instanceID)
        {
            int id;

            if (!PVSManager.GetInstance().SearchID(instanceID, out id))
            {
                return(NoContainsVisible);
            }
            return(IsVisible(id));
        }
Exemplo n.º 3
0
 void LoadIDs()
 {
     if (m_IDs != null)
     {
         for (int i = 0; i < m_IDs.Count; ++i)
         {
             int       id     = i + 1;
             Transform target = m_IDs[i];
             if (target == null)
             {
                 continue;
             }
             PVSManager.GetInstance().RegisterID(id, target);
         }
     }
 }