Click or drag to resize

Texture2DToSpriteConverter Class

Converts a raw 2d texture to a sprite.

Input: Texture2D

Output: Sprite

Inheritance Hierarchy
SystemObject
  UnityEngineObject
    UnityEngineComponent
      UnityEngineBehaviour
        UnityEngineMonoBehaviour
          Slash.Unity.DataBind.Core.PresentationDataBindingOperator
            Slash.Unity.DataBind.Core.PresentationDataProvider
              Slash.Unity.DataBind.Foundation.Providers.ConvertersDataConverter
                Slash.Unity.DataBind.Foundation.Providers.ConvertersDataConverterTexture2D, Sprite
                  Slash.Unity.DataBind.Foundation.Providers.ConvertersTexture2DToSpriteConverter

Namespace:  Slash.Unity.DataBind.Foundation.Providers.Converters
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
public class Texture2DToSpriteConverter : DataConverter<Texture2D, Sprite>

The Texture2DToSpriteConverter type exposes the following members.

Constructors
  NameDescription
Public methodTexture2DToSpriteConverter
Initializes a new instance of the Texture2DToSpriteConverter class
Top
Methods
Fields
  NameDescription
Public fieldPivot
Pivot of converted sprite.
Public fieldRect
Specific rectangle from the texture to use. Only considered if UseTextureRect == false.
Public fieldUseTextureRect
Indicates if the complete texture should be used.
Top
See Also