C# Class UnityEditor.SpriteEditorWindow

Inheritance: SpriteUtilityWindow
Mostra file Open project: randomize/VimConfig Class Usage Examples

Public Properties

Property Type Description
m_IgnoreNextPostprocessEvent bool
m_OriginalTexture UnityEngine.Texture2D
m_ResetOnNextRepaint bool
m_SelectedAssetPath string
s_Instance SpriteEditorWindow
s_OneClickDragStarted bool

Public Methods

Method Description
AddSprite ( Rect rect, int alignment, Vector2 pivot, int colliderAlphaCutoff, float colliderDetail ) : SpriteRect
ApplySpriteAlignmentToPivot ( Vector2 pivot, Rect rect, SpriteAlignment alignment ) : Vector2
DoAutomaticSlicing ( int minimumSpriteSize, int alignment, Vector2 pivot, AutoSlicingMethod slicingMethod ) : void
DoGridSlicing ( Vector2 size, Vector2 offset, Vector2 padding, int alignment, Vector2 pivot ) : void
DoTextureReimport ( string path ) : void
GetWindow ( ) : void
InvalidatePropertiesCache ( ) : void
IsEditingDisabled ( ) : bool

Protected Methods

Method Description
DoTextureGUIExtras ( ) : void
DrawGizmos ( ) : void

Private Methods

Method Description
AddSprite ( Rect frame, int alignment, Vector2 pivot, AutoSlicingMethod slicingMethod ) : void
ApplyCacheSettingsToInspector ( SerializedObject so ) : void
ClampSpriteBorder ( Vector4 border ) : Vector4
ClampSpriteRect ( Rect rect ) : Rect
ConvertFromTextureToNormalizedSpace ( Vector2 texturePos, Rect rect ) : Vector2
CreateTemporaryDuplicate ( Texture2D original, int width, int height ) : Texture2D
DoApply ( ) : void
DoApply ( SerializedObject so ) : void
DoApplyRevertGUI ( ) : void
DoBorderFields ( ) : void
DoEditingDisabledMessage ( ) : void
DoNameField ( ) : void
DoPivotFields ( ) : void
DoPositionField ( ) : void
DoRevert ( ) : void
DoSelectedFrameInspector ( ) : void
DoToolbarGUI ( ) : void
FlipNegativeRect ( Rect rect ) : Rect
FourIntFields ( string label, string labelX, string labelY, string labelZ, string labelW, int &x, int &y, int &z, int &w ) : void
GetExistingOverlappingSprite ( Rect rect ) : SpriteRect
GetSelectedTexture2D ( ) : Texture2D
GetSnapPointsArray ( Rect rect ) : Vector2[]
GetUniqueName ( string prefix ) : string
HandleApplyRevertDialog ( ) : void
HandleBorderCornerScalingHandles ( ) : void
HandleBorderPointSlider ( float &x, float &y, MouseCursor mouseCursor, bool isHidden, GUIStyle dragDot, GUIStyle dragDotActive, Color color ) : void
HandleBorderScaleSlider ( float x, float y, float width, float height, bool isHorizontal ) : float
HandleBorderSidePointScalingSliders ( ) : void
HandleBorderSideScalingHandles ( ) : void
HandleCreate ( ) : void
HandleDelete ( ) : void
HandleDragging ( ) : void
HandleDuplicate ( ) : void
HandleFrameSelected ( ) : void
HandleGizmoMode ( ) : void
HandlePivotHandle ( ) : void
HandleRectCornerScalingHandles ( ) : void
HandleRectSideScalingHandles ( ) : void
HandleSelection ( ) : void
InitializeAnimVariables ( ) : void
ModifierKeysChanged ( ) : void
MouseOnTopOfInspector ( ) : bool
OnDisable ( ) : void
OnEnable ( ) : void
OnGUI ( ) : void
OnSelectionChange ( ) : void
Overlap ( Rect a, Rect b ) : bool
PixelHasAlpha ( int x, int y ) : bool
RectSweep ( List rects, Rect sweepRect ) : List

Method Details

AddSprite() public method

public AddSprite ( Rect rect, int alignment, Vector2 pivot, int colliderAlphaCutoff, float colliderDetail ) : SpriteRect
rect UnityEngine.Rect
alignment int
pivot Vector2
colliderAlphaCutoff int
colliderDetail float
return SpriteRect

ApplySpriteAlignmentToPivot() public method

public ApplySpriteAlignmentToPivot ( Vector2 pivot, Rect rect, SpriteAlignment alignment ) : Vector2
pivot Vector2
rect UnityEngine.Rect
alignment SpriteAlignment
return Vector2

DoAutomaticSlicing() public method

public DoAutomaticSlicing ( int minimumSpriteSize, int alignment, Vector2 pivot, AutoSlicingMethod slicingMethod ) : void
minimumSpriteSize int
alignment int
pivot Vector2
slicingMethod AutoSlicingMethod
return void

DoGridSlicing() public method

public DoGridSlicing ( Vector2 size, Vector2 offset, Vector2 padding, int alignment, Vector2 pivot ) : void
size Vector2
offset Vector2
padding Vector2
alignment int
pivot Vector2
return void

DoTextureGUIExtras() protected method

protected DoTextureGUIExtras ( ) : void
return void

DoTextureReimport() public method

public DoTextureReimport ( string path ) : void
path string
return void

DrawGizmos() protected method

protected DrawGizmos ( ) : void
return void

GetWindow() public static method

public static GetWindow ( ) : void
return void

InvalidatePropertiesCache() public method

public InvalidatePropertiesCache ( ) : void
return void

IsEditingDisabled() public method

public IsEditingDisabled ( ) : bool
return bool

Property Details

m_IgnoreNextPostprocessEvent public_oe property

public bool m_IgnoreNextPostprocessEvent
return bool

m_OriginalTexture public_oe property

public Texture2D,UnityEngine m_OriginalTexture
return UnityEngine.Texture2D

m_ResetOnNextRepaint public_oe property

public bool m_ResetOnNextRepaint
return bool

m_SelectedAssetPath public_oe property

public string m_SelectedAssetPath
return string

s_Instance public_oe static_oe property

public static SpriteEditorWindow,UnityEditor s_Instance
return SpriteEditorWindow

s_OneClickDragStarted public_oe static_oe property

public static bool s_OneClickDragStarted
return bool