Version 3.3.1.2

SdfIcons class

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.Utilities.Editor
public static class SdfIcons
Inheritance
  • System.Object
  • SdfIcons

Fields

AllIcons
public static SdfIcon[] AllIcons

Properties

Material
public static Material Material { get; }
SdfTexture
public static Texture2D SdfTexture { get; }

Methods

CreateTransparentIconTexture(SdfIcon, Color, Color, Color, Int32, Int32, Int32)
public static Texture2D CreateTransparentIconTexture(SdfIcon icon, Color color, Color bgColor, Color clearColor, int width, int height, int padding)
Parameters
SdfIcon icon

UnityEngine.Color color

UnityEngine.Color bgColor

UnityEngine.Color clearColor

System.Int32 width

System.Int32 height

System.Int32 padding

Returns
UnityEngine.Texture2D

CreateTransparentIconTexture(SdfIconType, Color, Int32, Int32, Int32)
public static Texture2D CreateTransparentIconTexture(SdfIconType iconType, Color color, int width, int height, int padding)
Parameters
SdfIconType iconType

UnityEngine.Color color

System.Int32 width

System.Int32 height

System.Int32 padding

Returns
UnityEngine.Texture2D

DrawIcon(Rect, SdfIcon, Color)
public static void DrawIcon(Rect rect, SdfIcon icon, Color color)
Parameters
UnityEngine.Rect rect

SdfIcon icon

UnityEngine.Color color

DrawIcon(Rect, SdfIcon, Color, Color)
public static void DrawIcon(Rect rect, SdfIcon icon, Color color, Color bgColor)
Parameters
UnityEngine.Rect rect

SdfIcon icon

UnityEngine.Color color

UnityEngine.Color bgColor

DrawIcon(Rect, SdfIconType)
public static void DrawIcon(Rect rect, SdfIconType icon)
Parameters
UnityEngine.Rect rect

SdfIconType icon

DrawIcon(Rect, SdfIconType, Color)
public static void DrawIcon(Rect rect, SdfIconType icon, Color color)
Parameters
UnityEngine.Rect rect

SdfIconType icon

UnityEngine.Color color

DrawIcon(Rect, SdfIconType, Color, Color)
public static void DrawIcon(Rect rect, SdfIconType icon, Color color, Color bgColor)
Parameters
UnityEngine.Rect rect

SdfIconType icon

UnityEngine.Color color

UnityEngine.Color bgColor

SetBgColor(Color)
public static void SetBgColor(Color bgColor)
Parameters
UnityEngine.Color bgColor

SetColor(Color)
public static void SetColor(Color color)
Parameters
UnityEngine.Color color

SetEdgeOffset(Single)
public static void SetEdgeOffset(float edgeOffset)
Parameters
System.Single edgeOffset

SetUv(Vector4)
public static void SetUv(Vector4 uv)
Parameters
UnityEngine.Vector4 uv