HKI Core
IntWidthHeight.cs
Go to the documentation of this file.
1 using UnityEngine;
2 
3 namespace HKI.Core.Variables
4 {
8  [System.Serializable]
9  public struct IntWidthHeight
10  {
11  // Public Variables
12  public int Width;
13  public int Height;
14 
15  // Setters
16  public void SetWidthAndHeight(int width, int height)
17  {
18  this.Width = width;
19  this.Height = height;
20  }
21 
22  // Interface fucntion
23  public override string ToString()
24  {
25  return "width: " + Width.ToString() + " x Height: " + Height.ToString();
26  }
27  }
28 }
This is a data type that combines a int width and a int height value into one value. This can be used for storing resolution information.
void SetWidthAndHeight(int width, int height)