Class PaperSprite
Sprite Asset
Stores the data necessary to render a single 2D sprite (from a region of a texture)
Can also contain collision shapes for the sprite.
Inheritance
System.Object
PaperSprite
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: UE4DotNet.dll
Syntax
public class PaperSprite : UObject
Properties
|
Improve this Doc
View Source
AdditionalSourceTextures
Additional source textures for other slots
Declaration
public ObjectArrayField<Texture> AdditionalSourceTextures { get; }
Property Value
|
Improve this Doc
View Source
AlternateMaterial
The alternate material to use on a sprite instance if not overridden (this is only used for Diced render geometry, and will be the opaque material in that case, slot 1)
Declaration
public MaterialInterface AlternateMaterial { get; }
Property Value
|
Improve this Doc
View Source
AlternateMaterialSplitIndex
The point at which the alternate material takes over in the baked render data (or INDEX_NONE)
Declaration
public int AlternateMaterialSplitIndex { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
AtlasGroup
Spritesheet group that this sprite belongs to
Declaration
public PaperSpriteAtlas AtlasGroup { get; set; }
Property Value
|
Improve this Doc
View Source
BakedSourceDimension
Dimensions within BakedSourceTexture (in pixels)
Declaration
public Vector2D BakedSourceDimension { get; set; }
Property Value
|
Improve this Doc
View Source
BakedSourceTexture
Declaration
public Texture2D BakedSourceTexture { get; set; }
Property Value
|
Improve this Doc
View Source
BakedSourceUV
Position within BakedSourceTexture (in pixels)
Declaration
public Vector2D BakedSourceUV { get; set; }
Property Value
|
Improve this Doc
View Source
BodySetup
Declaration
public BodySetup BodySetup { get; set; }
Property Value
|
Improve this Doc
View Source
bRotatedInSourceImage
Declaration
public bool bRotatedInSourceImage { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
bSnapPivotToPixelGrid
Declaration
public bool bSnapPivotToPixelGrid { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
bTrimmedInSourceImage
Declaration
public bool bTrimmedInSourceImage { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
CollisionGeometry
Custom collision geometry polygons (in texture space)
Declaration
public SpriteGeometryCollection CollisionGeometry { get; set; }
Property Value
|
Improve this Doc
View Source
CollisionThickness
The extrusion thickness of collision geometry when using a 3D collision domain
Declaration
public float CollisionThickness { get; set; }
Property Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
CustomPivotPoint
Custom pivot point (relative to the sprite rectangle)
Declaration
public Vector2D CustomPivotPoint { get; set; }
Property Value
|
Improve this Doc
View Source
DefaultMaterial
The material to use on a sprite instance if not overridden (this is the default material when only one is being used, and is the translucent/masked material for Diced render geometry, slot 0)
Declaration
public MaterialInterface DefaultMaterial { get; }
Property Value
|
Improve this Doc
View Source
DefaultObject
Get UE4 Default Object for this Class
Declaration
public static PaperSprite DefaultObject { get; }
Property Value
|
Improve this Doc
View Source
OriginInSourceImageBeforeTrimming
Origin within SourceImage, prior to atlasing
Declaration
public Vector2D OriginInSourceImageBeforeTrimming { get; set; }
Property Value
|
Improve this Doc
View Source
PivotMode
Declaration
public byte PivotMode { get; set; }
Property Value
Type |
Description |
System.Byte |
|
|
Improve this Doc
View Source
PixelsPerUnrealUnit
The scaling factor between pixels and Unreal units (cm) (e.g., 0.64 would make a 64 pixel wide sprite take up 100 cm)
Declaration
public float PixelsPerUnrealUnit { get; set; }
Property Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
RenderGeometry
Custom render geometry polygons (in texture space)
Declaration
public SpriteGeometryCollection RenderGeometry { get; set; }
Property Value
|
Improve this Doc
View Source
SourceDimension
Dimensions within SourceTexture (in pixels)
Declaration
public Vector2D SourceDimension { get; set; }
Property Value
|
Improve this Doc
View Source
SourceImageDimensionBeforeTrimming
Dimensions of SourceImage
Declaration
public Vector2D SourceImageDimensionBeforeTrimming { get; set; }
Property Value
|
Improve this Doc
View Source
SourceTexture
The source texture that the sprite comes from
Declaration
public Texture2D SourceTexture { get; set; }
Property Value
|
Improve this Doc
View Source
SourceTextureDimension
Dimension of the texture when this sprite was created
Declaration
public Vector2D SourceTextureDimension { get; set; }
Property Value
|
Improve this Doc
View Source
SourceUV
Position within SourceTexture (in pixels)
Declaration
public Vector2D SourceUV { get; set; }
Property Value
|
Improve this Doc
View Source
SpriteCollisionDomain
Collision domain (no collision, 2D, or 3D)
Declaration
public byte SpriteCollisionDomain { get; set; }
Property Value
Type |
Description |
System.Byte |
|
|
Improve this Doc
View Source
StaticClass
Declaration
public static Class StaticClass { get; }
Property Value
Methods
|
Improve this Doc
View Source
New(UObject, Name)
Spawn an object of this class
Declaration
public static PaperSprite New(UObject obj = null, Name name = default(Name))
Parameters
Returns
Operators
|
Improve this Doc
View Source
Implicit(IntPtr to PaperSprite)
Convert from IntPtr to UObject
Declaration
public static implicit operator PaperSprite(IntPtr p)
Parameters
Type |
Name |
Description |
System.IntPtr |
p |
|
Returns