Thinkscroller Version 1.5
Reference Manual / API Documentation
ThinksquirrelSoftware.Thinkscroller.ScrollLayer Class Reference
Inheritance diagram for ThinksquirrelSoftware.Thinkscroller.ScrollLayer:
Collaboration diagram for ThinksquirrelSoftware.Thinkscroller.ScrollLayer:

List of all members.

Public Member Functions

int CompareTo (ScrollLayer other)
 Compares a scroll layer to another by weight.
Vector2 GetBillboardScale ()
 Gets the auto billboard scale, in world units.
bool GetBillboardStretch ()
 If true, the billboard will stretch to fit the camera viewport.
Material GetMaterial ()
 Gets the material associated with the scroll layer.
MeshRenderer GetRenderer ()
 Gets the mesh renderer associated with the scroll layer.
float GetScrollMod ()
 Gets the scrolling speed modifier of the scroll layer.
float GetScrollSpeed ()
 Gets the scrolling speed of the scroll layer.
Texture2D GetTexture ()
 Gets the texture associated with the scroll layer.
string GetTextureName (int index)
 Gets the texture name associated with a scroll layer at the specified index.
string[] GetTextureNames ()
 Gets the texture names associated with a scroll layer.
float GetWeight ()
 Gets the weight of the scroll layer.
void RefreshBillboard ()
 Refreshes the auto billboard mesh.
void RefreshBillboard (bool refreshVertices, bool resetMaterial, bool refreshTexture)
 Refreshes the auto billboard mesh.
void Reset ()
 Reset the scroll layer.
void ResetPosition (Vector3 resetPosition)
 Reset the scroll layer's position (Object layers only).
void ResetPosition ()
 Reset the scroll layer's position (Object layers only).
void SetBillboardScale (Vector2 scale)
 Sets the auto billboard scale, in world units.
void SetBillboardScale (float xSize, float ySize)
 Sets the auto billboard scale, in world units.
void SetBillboardStretch (bool stretch)
 Sets whether the billboard will stretch.
void SetMaterial (Material material)
 Sets the material associated with the scroll layer.
void SetRenderer (MeshRenderer renderer)
 Sets the mesh renderer associated with the scroll layer.
void SetScrollMod (float scrollMod)
 Sets the scrolling speed modifier of the scroll layer.
void SetScrollSpeed (float scrollSpeed)
 Sets the scrolling speed of the scroll layer directly, overriding the weight.
void SetTexture (Texture2D texture)
 Sets the texture associated with the scroll layer.
void SetTextureName (int index, string textureName)
 Sets the texture name associated with a scroll layer at the specified index.
void SetTextureNames (params string[] textureNames)
 Sets the texture names associated with a scroll layer.
void SetWeight (float weight)
 Sets the weight of the scroll layer.

Properties

ScrollLayerAlignment alignment [get, set]
 Gets or sets the scroll layer's alignment.
bool calculateNormals [get, set]
 If true, calculate normals on the billboard mesh.
bool calculateTangents [get, set]
 If true, calculate tangents on the billboard mesh.
bool isAutoBillboard [get, set]
 Determines whether the scroll layer has an automatic billboard.
bool isAutoConfigured [get, set]
 Determines whether the scroll layer is automatically configured.
bool isObjectLayer [get, set]
 Determines whether the scroll layer is an object layer.
bool isPixelPerfect [get, set]
 Determines whether the auto billboard is pixel-perfect.
bool objectLayerPixelSpace [get, set]
 If true, object layers scroll in pixel space (similar to auto-billboards), as opposed to world space.
Vector2 offset [get, set]
 The offset (in pixels) of the parallax billboard.
Vector2 padding [get, set]
 UV padding. Used for floating point error compensation.
Vector2 pixelOffset [get, set]
 The offset (in pixels) of the texture size. Used for floating point error compensation.
bool refreshMaterialOnAwake [get, set]
 If true, refresh materials on Awake().
bool refreshTextureOnAwake [get, set]
 If true, refresh the texture on Awake().
bool refreshVertsOnAwake [get, set]
 If true, refresh vertices on Awake().
bool tileX [get, set]
 Determines whether to tile on the X axis.
bool tileY [get, set]
 Determines whether to tile on the Y axis.

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Enumerations Properties