Class RenderManager.RenderRequest
Queues a new prefab to be rendered. The resulting will be ready at the next frame.
Inheritance
System.Object
RenderManager.RenderRequest
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Jotunn.Managers
Assembly: Jotunn.dll
Syntax
public class RenderRequest
Constructors
| Improve this Doc View SourceRenderRequest(GameObject)
Create a new RenderRequest
Declaration
public RenderRequest(GameObject target)
Parameters
Type | Name | Description |
---|---|---|
GameObject | target | Object to be rendered. A copy of the provided GameObject will be created for rendering |
Fields
| Improve this Doc View SourceTarget
Target GameObject to create a from
Declaration
public readonly GameObject Target
Field Value
Type | Description |
---|---|
GameObject |
Properties
| Improve this Doc View SourceCallback
Callback for the generated
Declaration
[Obsolete]
public Action<Sprite> Callback { get; }
Property Value
Type | Description |
---|---|
System.Action<Sprite> |
DistanceMultiplier
Distance multiplier, should not be required with the default FieldOfView
Declaration
public float DistanceMultiplier { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
FieldOfView
Field of view of the camera used to create the . Default is small to simulate orthographic view. An orthographic camera is not possible because of shaders
Declaration
public float FieldOfView { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Height
Pixel height of the generated
Declaration
public int Height { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Rotation
Rotation of the prefab to capture
Declaration
public Quaternion Rotation { get; set; }
Property Value
Type | Description |
---|---|
Quaternion |
Width
Pixel width of the generated
Declaration
public int Width { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |