Пример #1
0
 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();
 }
Пример #2
0
 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();
 }