/************************************************************************/ #region Methods protected bool Equals(TransformParameters other) { return (Region.Equals(other.Region) && TargetSize.Equals(other.TargetSize) && PixelFormat == other.PixelFormat && ScaleQuality == other.ScaleQuality); }
private void ButtonSetup() { difficulty = Difficulty.Medium; difficultyText.GetComponent <TextMeshProUGUI>().text = difficulty.ToString(); targetSize = TargetSize.Medium; sizeText.GetComponent <TextMeshProUGUI>().text = targetSize.ToString(); duration = Duration.Normal; durationText.GetComponent <TextMeshProUGUI>().text = duration.ToString(); }
public void ChangeSize(int change) { if (sizeButtonPos && sizeButtonNeg) { List <TargetSize> sizeList; sizeList = Enum.GetValues(typeof(TargetSize)).Cast <TargetSize>().ToList(); targetSize = sizeList[(int)Mathf.Repeat(sizeList.IndexOf(targetSize) + change, sizeList.Count)]; sizeText.GetComponent <TextMeshProUGUI>().text = targetSize.ToString(); } }
public LODRenderTexture(TargetSize size, int lod, int depth, RenderTextureFormat format, RenderTextureReadWrite readWrite, int antiAliasing) { this.size = size; this.lod = Mathf.Max(0, lod); this.depth = depth; this.size = size; this.format = format; this.readWrite = readWrite; this.antiAliasing = ParseAntiAliasing(antiAliasing); }