public void InitMemberByInstance(Pixelate pixelate) { scale = pixelate.scale; automaticRatio = pixelate.automaticRatio; ratio = pixelate.ratio; mode = pixelate.mode; }
public PixelateDef() { if (pixelateEffect == null) { pixelateEffect = Util.GetComponentVar <Pixelate, PixelateDef>(pixelateEffect); } scale = 80.0f; automaticRatio = true; ratio = 1.0f; mode = Pixelate.SizeMode.ResolutionIndependent; }