|
| static string | GetPartIconTexturePath (Part part, out int variantIdx) |
| | Returns the Texture path and also outs the variantIdx More...
|
| |
| static IThumbnailSetup | GetThumbNailSetupIface (AvailablePart availablePart) |
| |
| static Texture2D | TakePartSnaphot (string partName, StoredPart sPart, int resolution, string folderPath, out string fullFileName, float elevation=15f, float azimuth=25f, float pitch=15f, float hdg=25f, float fovFactor=1f, int variantIndex=-1) |
| | Create the Thumbnail image of a part in the specified folder More...
|
| |
| static Texture2D | TakePartSnapshot (string partName, StoredPart sPart, Part part, int resolution, string folderPath, out string fullFileName, float elevation=15f, float azimuth=25f, float pitch=15f, float hdg=25f, float fovFactor=1f, int variantIndex=-1) |
| | Create the Thumbnail image of a part in the specified folder More...
|
| |
| static void | TakeSnaphot (ShipConstruct ship, int resolution, string folderPath, string craftName, float elevation=45f, float azimuth=45f, float pitch=45f, float hdg=45f, float fovFactor=1f) |
| | /// Create the Thumbnail image of a craft in the specified folder More...
|
| |
| static string CraftThumbnail.GetPartIconTexturePath |
( |
Part |
part, |
|
|
out int |
variantIdx |
|
) |
| |
|
inlinestatic |
Returns the Texture path and also outs the variantIdx
- Parameters
-
- Returns
| static Texture2D CraftThumbnail.TakePartSnaphot |
( |
string |
partName, |
|
|
StoredPart |
sPart, |
|
|
int |
resolution, |
|
|
string |
folderPath, |
|
|
out string |
fullFileName, |
|
|
float |
elevation = 15f, |
|
|
float |
azimuth = 25f, |
|
|
float |
pitch = 15f, |
|
|
float |
hdg = 25f, |
|
|
float |
fovFactor = 1f, |
|
|
int |
variantIndex = -1 |
|
) |
| |
|
inlinestatic |
Create the Thumbnail image of a part in the specified folder
- Parameters
-
| partName | The name of the part to snap |
| sPart | The Stored part if coming from a PAW this one will be available |
| resolution | Size of the thumbnail width and height |
| folderPath | The path from the app root to store the thumnb |
| elevation | Angle of elevation for camera position |
| azimuth | Angle of Azimuth for camera position |
| pitch | Angle of pitch for camera rotation |
| hdg | Heading in degrees for camera rotation |
| fovFactor | FoV factor to change how far from teh craft the camera is |
| static Texture2D CraftThumbnail.TakePartSnapshot |
( |
string |
partName, |
|
|
StoredPart |
sPart, |
|
|
Part |
part, |
|
|
int |
resolution, |
|
|
string |
folderPath, |
|
|
out string |
fullFileName, |
|
|
float |
elevation = 15f, |
|
|
float |
azimuth = 25f, |
|
|
float |
pitch = 15f, |
|
|
float |
hdg = 25f, |
|
|
float |
fovFactor = 1f, |
|
|
int |
variantIndex = -1 |
|
) |
| |
|
inlinestatic |
Create the Thumbnail image of a part in the specified folder
- Parameters
-
| partName | The name of the part to snap |
| sPart | The Stored part if coming from a PAW this one will be available |
| part | If Stored part is not available and Part is, like in Editor Logic a part pulled from the toolbox |
| resolution | Size of the thumbnail width and height |
| folderPath | The path from the app root to store the thumnb |
| elevation | Angle of elevation for camera position |
| azimuth | Angle of Azimuth for camera position |
| pitch | Angle of pitch for camera rotation |
| hdg | Heading in degrees for camera rotation |
| fovFactor | FoV factor to change how far from teh craft the camera is |
| static void CraftThumbnail.TakeSnaphot |
( |
ShipConstruct |
ship, |
|
|
int |
resolution, |
|
|
string |
folderPath, |
|
|
string |
craftName, |
|
|
float |
elevation = 45f, |
|
|
float |
azimuth = 45f, |
|
|
float |
pitch = 45f, |
|
|
float |
hdg = 45f, |
|
|
float |
fovFactor = 1f |
|
) |
| |
|
inlinestatic |
/// Create the Thumbnail image of a craft in the specified folder
- Parameters
-
| ship | The ship to snap |
| resolution | Size of the thumbnail width and height |
| folderPath | The path from the app root to store the thumnb |
| craftName | Name of the file |
| elevation | Angle of elevation for camera position |
| azimuth | Angle of Azimuth for camera position |
| pitch | Angle of pitch for camera rotation |
| hdg | Heading in degrees for camera rotation |
| fovFactor | FoV factor to change how far from teh craft the camera is |
| EventData<ShipConstruct, string, byte[]> CraftThumbnail.OnSnapshotCapture = new EventData<ShipConstruct, string, byte[]>("OnSnapshotCapture") |
|
static |
The documentation for this class was generated from the following file: