protected override void Apply() { // Set any limits on properties m_PixelsPerUnit.floatValue = Clamper.ClampPixelsPerUnit(m_PixelsPerUnit.floatValue); m_EdgesPerEllipse.intValue = Clamper.ClampEdgesPerEllipse(m_EdgesPerEllipse.intValue); base.Apply(); }
public void DefaultOrOverride_EdgesPerEllipse(ref int edgesPerEllipse) { if (edgesPerEllipse == 0) { edgesPerEllipse = Clamper.ClampEdgesPerEllipse(m_EdgesPerEllipse); } else { m_EdgesPerEllipse = Clamper.ClampEdgesPerEllipse(edgesPerEllipse); } }
protected override void Apply() { m_PixelsPerUnit.floatValue = Clamper.ClampPixelsPerUnit(m_PixelsPerUnit.floatValue); m_EdgesPerEllipse.intValue = Clamper.ClampEdgesPerEllipse(m_EdgesPerEllipse.intValue); base.Apply(); }