|
Sets whether or not the sprite will be managed by a SpriteManager. When managed, a sprite does not have its own mesh, but rather is combined with other sprites into a single mesh. For more information, see Managed Sprites.
|
|
[Managed Only] The SpriteManager object that will manage this sprite. This can only be set if "Managed" is checked. For more information, see Managed Sprites.
|
|
[Managed Only] The layer in which this sprite will be drawn. Lower draw layer values result in an earlier drawing order. Sprites with higher draw layer values will appear to be drawn in front of sprites with lower draw layer values. This value only has meaning if the sprite is managed. For more information, see Managed Sprites.
|
|
When checked, the sprite will not be automatically destroyed when a new scene is loaded.
|
|
The plane in which the sprite will be drawn. i.e. XY, XZ, or YZ.
|
|
Whether sprite polygons should be wound clock-wise or counter clock-wise. Determines which side of the sprite is considered by the renderer to be the "front".
|
|
The dimensions of the sprite in local space.
|
|
Bleed compensation can be used to adjust for "bleed" that can occur with texture filtering. When two sprites are close together on an atlas, filtering can cause pixels from adjacent images to "bleed" into the one you are showing. If this occurs, try setting this value to 0.5,0.5. Depending on how severe it is and what mip level your game is using at a given time, this value may need to be increased from there.
|
|
How the sprite will be "anchored" relative to its center. Ex: if UPPER_LEFT is selected, the GameObject center will be at the upper-left corner of the sprite, and all sprite growth will take place downward and toward the right. TEXTURE_OFFSET is a special anchoring mode that centers the sprite relative to its GameObject's center according to how the sprite was centered in the original source texture.
|
|
When enabled, the sprite will always be sized pixel-perfect at runtime. This means regardless of screen resolution, the sprite will always be drawn at its "native" size. Ex: a 32x32 sprite will always be drawn using 32x32 screen pixels, regardless of resolution. NOTE: If the object moves relative to a perspective camera, the sprite's/control's SetCamera() method will need to be called and passed a reference to the camera to ensure it updates its size to remain pixel-perfect at the new location.
|
|
When changing states or animating (Requires SM2), the sprite's proportions will be automatically adjusted according to the original source texture, so that there is no warping or distortion.
|
|
Distance the sprite will be offset, in local space, from its GameObject's center.
|
|
The color the sprite will be tinted. This can also be used to apply a fade to the sprite by changing the alpha.
|
|
The camera that will be used to render the sprite. If left empty, this will default to the main camera.
|
|
When checked, the object will be hidden initially until it is unhidden by calling: obj.Hide(false);
|
|
When true, the control will not be clipped.
|
|
Text that appears in the control's " control_text" child object, if any. When text is added to this field for the first time, a child GameObject with a SpriteText component is created using the default font specified in the scene's UIManager object's "Default Font" member. If no default font is set, no child GameObject or SpriteText will be created.
|
|
Reference to the TextMesh component of the child GameObject that serves to display text associated with the control.
|
|
The distance along the Z-axis that the child SpriteText (if any) will be offset from the object itself to avoid depth-fighting.
|
Include Text In Auto Collider
|
When set to true, any automatically-generated collider for this control will take into account the extents of the child text object (if any). If you want the text to only be for show and not part of the control's clickable area, keep this set to false.
|
|
When set to true, the control will instruct any pointers which have it as their target to de-target them. Use this if you are deactivating a control and want no input to go to it. NOTE: It is strongly recommended NOT to use this feature on any control that appears in a scroll list, or else you may be unable to scroll past the edge of the list's viewable area.
|
|
(Only accessible in script.) A property that gets/sets a reference to a System.Object. This means you can assign anything to the Data property and retrieve it later. This is useful for associating relevant information to a control so that you can easily access it later.
|
|
Indicates whether the object can be dragged as part of a drag & drop operation.
|
|
A mask which can be used to make the object only be "droppable" on objects in a certain layer. NOTE: This mask is combined with the camera's mask.
|
|
The distance an object being dragged and dropped should be offset toward the camera to ensure it hovers above other objects and controls in the scene. A value of NaN indicates the default value will be used from the UIManager.
|
|
The type of easing to use to animate the object back to its starting position when a drag operation is canceled.
|
|
The duration of the easing animation when a drag and drop operation is canceled. A value of -1 indicates to use the default value specified in the UIManager.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|