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); } }
public void DefaultOrOverride_PixelsPerUnit(ref float ppu) { if (ppu == 0) { ppu = Clamper.ClampPixelsPerUnit(m_PixelsPerUnit); } else { m_PixelsPerUnit = Clamper.ClampPixelsPerUnit(ppu); } }
protected override void Apply() { m_PixelsPerUnit.floatValue = Clamper.ClampPixelsPerUnit(m_PixelsPerUnit.floatValue); m_EdgesPerEllipse.intValue = Clamper.ClampEdgesPerEllipse(m_EdgesPerEllipse.intValue); base.Apply(); }
protected override void Apply() { // Set any limits on properties m_AnimationFramerate.floatValue = Clamper.ClampAnimationFramerate(m_AnimationFramerate.floatValue); base.Apply(); }