示例#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_EdgesPerEllipse(ref int edgesPerEllipse)
 {
     if (edgesPerEllipse == 0)
     {
         edgesPerEllipse = Clamper.ClampEdgesPerEllipse(m_EdgesPerEllipse);
     }
     else
     {
         m_EdgesPerEllipse = Clamper.ClampEdgesPerEllipse(edgesPerEllipse);
     }
 }
示例#3
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();
 }
示例#5
0
 protected override void Apply()
 {
     // Set any limits on properties
     m_AnimationFramerate.floatValue = Clamper.ClampAnimationFramerate(m_AnimationFramerate.floatValue);
     base.Apply();
 }