예제 #1
0
 public void InitMemberByInstance(Pixelate pixelate)
 {
     scale          = pixelate.scale;
     automaticRatio = pixelate.automaticRatio;
     ratio          = pixelate.ratio;
     mode           = pixelate.mode;
 }
예제 #2
0
        public PixelateDef()
        {
            if (pixelateEffect == null)
            {
                pixelateEffect = Util.GetComponentVar <Pixelate, PixelateDef>(pixelateEffect);
            }

            scale          = 80.0f;
            automaticRatio = true;
            ratio          = 1.0f;
            mode           = Pixelate.SizeMode.ResolutionIndependent;
        }