Class PaperFlipbookComponent
Paper Flipbook Component
Inheritance
Inherited Members
Namespace: UE4.Paper2D
Assembly: UE4DotNet.dll
Syntax
public class PaperFlipbookComponent : MeshComponent
Properties
| Improve this Doc View SourceAccumulatedTime
Current position in the timeline
Declaration
public float AccumulatedTime { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Single |
bLooping
Declaration
public bool bLooping { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
bPlaying
Declaration
public bool bPlaying { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
bReversePlayback
Declaration
public bool bReversePlayback { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
CachedBodySetup
The cached body setup
Declaration
public BodySetup CachedBodySetup { get; set; }
Property Value
| Type | Description |
|---|---|
| BodySetup |
CachedFrameIndex
Last frame index calculated
Declaration
public int CachedFrameIndex { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
DefaultObject
Get UE4 Default Object for this Class
Declaration
public static PaperFlipbookComponent DefaultObject { get; }
Property Value
| Type | Description |
|---|---|
| PaperFlipbookComponent |
PlayRate
Current play rate of the flipbook
Declaration
public float PlayRate { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Single |
SourceFlipbook
Flipbook currently being played
Declaration
public PaperFlipbook SourceFlipbook { get; set; }
Property Value
| Type | Description |
|---|---|
| PaperFlipbook |
SpriteColor
Vertex color to apply to the frames
Declaration
public LinearColor SpriteColor { get; }
Property Value
| Type | Description |
|---|---|
| LinearColor |
StaticClass
Get UE4 Class
Declaration
public static Class StaticClass { get; }
Property Value
| Type | Description |
|---|---|
| Class |
Methods
| Improve this Doc View SourceGetFlipbook()
Gets the flipbook used by this instance.
Declaration
public PaperFlipbook GetFlipbook()
Returns
| Type | Description |
|---|---|
| PaperFlipbook |
GetFlipbookFramerate()
Get the nominal framerate that the flipbook will be played back at (ignoring PlayRate), in frames per second
Declaration
public float GetFlipbookFramerate()
Returns
| Type | Description |
|---|---|
| System.Single |
GetFlipbookLength()
Get length of the flipbook (in seconds)
Declaration
public float GetFlipbookLength()
Returns
| Type | Description |
|---|---|
| System.Single |
GetFlipbookLengthInFrames()
Get length of the flipbook (in frames)
Declaration
public int GetFlipbookLengthInFrames()
Returns
| Type | Description |
|---|---|
| System.Int32 |
GetPlaybackPosition()
Get the current playback position (in seconds) of the flipbook
Declaration
public float GetPlaybackPosition()
Returns
| Type | Description |
|---|---|
| System.Single |
GetPlaybackPositionInFrames()
Get the current playback position (in frames) of the flipbook
Declaration
public int GetPlaybackPositionInFrames()
Returns
| Type | Description |
|---|---|
| System.Int32 |
GetPlayRate()
Get the current play rate for this flipbook
Declaration
public float GetPlayRate()
Returns
| Type | Description |
|---|---|
| System.Single |
IsLooping()
Get whether we are looping or not
Declaration
public bool IsLooping()
Returns
| Type | Description |
|---|---|
| System.Boolean |
IsPlaying()
Get whether this flipbook is playing or not.
Declaration
public bool IsPlaying()
Returns
| Type | Description |
|---|---|
| System.Boolean |
IsReversing()
Get whether we are reversing or not
Declaration
public bool IsReversing()
Returns
| Type | Description |
|---|---|
| System.Boolean |
New(UObject, Name)
Spawn an object of this class
Declaration
public static PaperFlipbookComponent New(UObject obj = null, Name name = default(Name))
Parameters
| Type | Name | Description |
|---|---|---|
| UObject | obj | |
| Name | name |
Returns
| Type | Description |
|---|---|
| PaperFlipbookComponent |
Play()
Start playback of flipbook
Declaration
public void Play()
PlayFromStart()
Start playback of flipbook from the start
Declaration
public void PlayFromStart()
Reverse()
Start playback of flipbook in reverse
Declaration
public void Reverse()
ReverseFromEnd()
Start playback of flipbook in reverse from the end
Declaration
public void ReverseFromEnd()
SetFlipbook(PaperFlipbook)
Change the flipbook used by this instance (will reset the play time to 0 if it is a new flipbook).
Declaration
public bool SetFlipbook(PaperFlipbook NewFlipbook)
Parameters
| Type | Name | Description |
|---|---|---|
| PaperFlipbook | NewFlipbook |
Returns
| Type | Description |
|---|---|
| System.Boolean |
SetLooping(Boolean)
true means we should loop, false means we should not.
Declaration
public void SetLooping(bool bNewLooping)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | bNewLooping |
SetNewTime(Single)
Set the new playback position time to use
Declaration
public void SetNewTime(float NewTime)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | NewTime |
SetPlaybackPosition(Single, Boolean)
Jump to a position in the flipbook (expressed in seconds). If bFireEvents is true, event functions will fire, otherwise they will not.
Declaration
public void SetPlaybackPosition(float NewPosition, bool bFireEvents)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | NewPosition | |
| System.Boolean | bFireEvents |
SetPlaybackPositionInFrames(Int32, Boolean)
Jump to a position in the flipbook (expressed in frames). If bFireEvents is true, event functions will fire, otherwise they will not.
Declaration
public void SetPlaybackPositionInFrames(int NewFramePosition, bool bFireEvents)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | NewFramePosition | |
| System.Boolean | bFireEvents |
SetPlayRate(Single)
Sets the new play rate for this flipbook
Declaration
public void SetPlayRate(float NewRate)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | NewRate |
SetSpriteColor(LinearColor)
Set color of the sprite
Declaration
public void SetSpriteColor(LinearColor NewColor)
Parameters
| Type | Name | Description |
|---|---|---|
| LinearColor | NewColor |
Stop()
Stop playback of flipbook
Declaration
public void Stop()
Operators
| Improve this Doc View SourceImplicit(IntPtr to PaperFlipbookComponent)
Convert from IntPtr to UObject
Declaration
public static implicit operator PaperFlipbookComponent(IntPtr p)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IntPtr | p |
Returns
| Type | Description |
|---|---|
| PaperFlipbookComponent |