Esempio n. 1
0
        /// <summary>
        /// Sets and returns the output size of a <see cref="SubstanceGraph"/>.
        /// </summary>
        /// <param name="graph">The graph to set the output size for.</param>
        /// <param name="x">Width of the output size. (10 = 1024)</param>
        /// <param name="y">Height of the output size. (10 = 1024)</param>
        public static Vector2Int SetOutputSize(this SubstanceGraph graph, int x, int y)
        {
            graph.SetInputVector2Int(OutputSizeParameter, x, y);

            return(new Vector2Int(x, y));
        }