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