◆ GenerateSnapshot() [2/2]

void GenerateSnapshot ( Quaternion  rotation,
Vector2  size,
ref Texture2D  snapShot 
)
Parameters
rotationRotation that is applied to the previewObject.
sizeThis is the size, in pixels, that the resultant image will be.
snapShotTexture2D that will contain the snapshot after it has been generated