Creates new sprite in accordance with the model.
Namespace:
SGP.XSpaceAssembly: SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825
Syntax
C# |
---|
public static XSprite CreateSprite( string modelName, float x, float y, float z, float orientationXDgr, float orientationZDgr, float orientationYDgr, bool allowEmpty ) |
Parameters
- modelName
- Type: System..::.String
Name of the model that will be used to create the sprite.
- x
- Type: System..::.Single
The X-coordinate.
- y
- Type: System..::.Single
The Y-coordinate.
- z
- Type: System..::.Single
The Z-coordinate.
- orientationXDgr
- Type: System..::.Single
Sprite orientation in the X axis in degrees.
- orientationZDgr
- Type: System..::.Single
Sprite orientation in the Z axis in degrees.
- orientationYDgr
- Type: System..::.Single
Sprite orientation in the Y axis in degrees.
- allowEmpty
- Type: System..::.Boolean
Enables or disables creation of the empty sprite.