Show / Hide Table of Contents

Class UserInterfaceRenderTarget

Manages the render target texture for UI systems and provides helpers for drawing UI components.

Inheritance
Object
Object
Component
Behaviour
MonoBehaviour
UserInterfaceRenderTarget
Namespace: DaggerfallWorkshop.Game.UserInterface
Assembly: Assembly-CSharp.dll
Syntax
public class UserInterfaceRenderTarget : MonoBehaviour

Fields

| Improve this Doc View Source

EnableCustomStack

Declaration
public bool EnableCustomStack
Field Value
Type Description
Boolean
| Improve this Doc View Source

OutputImage

Declaration
public RawImage OutputImage
Field Value
Type Description
RawImage

Properties

| Improve this Doc View Source

ClearColor

Gets or sets custom clear colour.

Declaration
public Color ClearColor { get; set; }
Property Value
Type Description
Color
| Improve this Doc View Source

CustomHeight

Gets or sets a custom height for target texture.

Declaration
public int CustomHeight { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

CustomWidth

Gets or sets a custom width for target texture.

Declaration
public int CustomWidth { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

FilterMode

Gets or sets render texture filter mode.

Declaration
public FilterMode FilterMode { get; set; }
Property Value
Type Description
FilterMode
| Improve this Doc View Source

ParentPanel

Gets custom parent panel for adding custom own UI controls. This will be set to custom width/height dimensions.

Declaration
public Panel ParentPanel { get; }
Property Value
Type Description
Panel
| Improve this Doc View Source

TargetSize

Gets size of target texture.

Declaration
public Vector2 TargetSize { get; }
Property Value
Type Description
Vector2
| Improve this Doc View Source

TargetTexture

Gets current render target texture.

Declaration
public RenderTexture TargetTexture { get; }
Property Value
Type Description
RenderTexture

Methods

| Improve this Doc View Source

Clear()

Declaration
public void Clear()
| Improve this Doc View Source

Clear(Color)

Declaration
public void Clear(Color color)
Parameters
Type Name Description
Color color
| Improve this Doc View Source

DrawTexture(Rect, Texture2D)

Declaration
public void DrawTexture(Rect position, Texture2D image)
Parameters
Type Name Description
Rect position
Texture2D image
| Improve this Doc View Source

DrawTexture(Rect, Texture2D, ScaleMode, Boolean, Single)

Declaration
public void DrawTexture(Rect position, Texture2D image, ScaleMode scaleMode, bool alphaBlend = true, float imageAspect = 0F)
Parameters
Type Name Description
Rect position
Texture2D image
ScaleMode scaleMode
Boolean alphaBlend
Single imageAspect
| Improve this Doc View Source

DrawTextureWithTexCoords(Rect, Texture, Rect, Boolean)

Declaration
public void DrawTextureWithTexCoords(Rect position, Texture image, Rect texCoords, bool alphaBlend = true)
Parameters
Type Name Description
Rect position
Texture image
Rect texCoords
Boolean alphaBlend
| Improve this Doc View Source

RaiseOnCreateTargetTexture()

Declaration
protected virtual void RaiseOnCreateTargetTexture()

Events

| Improve this Doc View Source

OnCreateTargetTexture

Declaration
public event UserInterfaceRenderTarget.OnCreateTargetTextureEventHandler OnCreateTargetTexture
Event Type
Type Description
UserInterfaceRenderTarget.OnCreateTargetTextureEventHandler

Extension Methods

MBExtensions.Invoke(MonoBehaviour, Action, Single)
MBExtensions.Invoke<T>(MonoBehaviour, Action<T>, T, Single)
MBExtensions.Invoke<T1, T2>(MonoBehaviour, Action<T1, T2>, T1, T2, Single)
MBExtensions.Invoke<T1, T2, T3>(MonoBehaviour, Action<T1, T2, T3>, T1, T2, T3, Single)
MBExtensions.Invoke<T1, T2, T3, T4>(MonoBehaviour, Action<T1, T2, T3, T4>, T1, T2, T3, T4, Single)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX