/// <summary> /// Set Edge Property for the given property handle and edge handle /// </summary> /// <typeparam name="T">the template type of the property. eg UnityEngine.Vector3</typeparam> /// <param name="ph">Edge Property Handle</param> /// <param name="eh">Edge Handle</param> /// <param name="p">Property Value</param> public void SetProperty <T>(EPropH <T> ph, int eh, T p) where T : new() { m_eprops.GetProperty(ph)[eh] = p; }
/// <summary> /// Get Edge Property for the given property handle and edge handle /// </summary> /// <typeparam name="T">the template type of the property. eg UnityEngine.Vector3</typeparam> /// <param name="ph">Edge Property Handle</param> /// <param name="eh">Edge Handle</param> /// <returns>Property Value</returns> public T GetProperty <T>(EPropH <T> ph, int eh) where T : new() { return(m_eprops.GetProperty(ph)[eh]); }
/// <summary> /// Remove Edge Property for the given property handle /// </summary> /// <typeparam name="T">the template type of the property. eg UnityEngine.Vector3</typeparam> /// <param name="h">Edge Property Handle</param> public void RemoveProperty <T>(EPropH <T> ph) { m_eprops.RemoveProperty(ph); }
public Property <T> GetProperty <T>(EPropH <T> ph) where T : new() { return(m_eprops.GetProperty(ph)); }
/// <summary> /// Add Edge Property for the given property handle /// </summary> /// <typeparam name="T">the template type of the property. eg UnityEngine.Vector3</typeparam> /// <param name="h">Edge Property Handle</param> public void AddProperty <T>(EPropH <T> ph) where T : new() { m_eprops.AddProperty(ph); m_eprops.Resize(edgeCount); }