Example #1
0
File: UBrush.cs Project: Bdoom/opus
        /// <summary>
        /// Get a new <paramref name="size"/> variant of this brush.
        /// </summary>
        public UBrush GetInSize(int size)
        {
            UBrush brush = new UBrush();

            if (!brush.Load(m_brush, size))
            {
                Debug.LogWarningFormat("Texture for brush is <b>null</b>.");
            }
            return(brush);
        }
Example #2
0
File: UBrush.cs Project: Bdoom/opus
        /// <summary>
        /// Get a new brush of <paramref name="brushTexture"/> at the given <paramref name="size"/>.
        /// </summary>
        public static UBrush GetBrush(Texture2D brushTexture, int size)
        {
            UBrush brush = new UBrush();

            if (!brush.Load(brushTexture, size))
            {
                Debug.LogWarningFormat("Texture for brush is <b>null</b>.");
            }
            return(brush);
        }