Class UserInterfaceRenderTarget
Manages the render target texture for UI systems and provides helpers for drawing UI components.
Inheritance
UserInterfaceRenderTarget
Assembly: Assembly-CSharp.dll
Syntax
public class UserInterfaceRenderTarget : MonoBehaviour
Fields
|
Improve this Doc
View Source
EnableCustomStack
Declaration
public bool EnableCustomStack
Field Value
|
Improve this Doc
View Source
OutputImage
Declaration
public RawImage OutputImage
Field Value
Properties
|
Improve this Doc
View Source
ClearColor
Gets or sets custom clear colour.
Declaration
public Color ClearColor { get; set; }
Property Value
|
Improve this Doc
View Source
CustomHeight
Gets or sets a custom height for target texture.
Declaration
public int CustomHeight { get; set; }
Property Value
|
Improve this Doc
View Source
CustomWidth
Gets or sets a custom width for target texture.
Declaration
public int CustomWidth { get; set; }
Property Value
|
Improve this Doc
View Source
FilterMode
Gets or sets render texture filter mode.
Declaration
public FilterMode FilterMode { get; set; }
Property Value
|
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
|
Improve this Doc
View Source
TargetSize
Gets size of target texture.
Declaration
public Vector2 TargetSize { get; }
Property Value
|
Improve this Doc
View Source
TargetTexture
Gets current render target texture.
Declaration
public RenderTexture TargetTexture { get; }
Property Value
Methods
|
Improve this Doc
View Source
Clear()
Declaration
|
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
|
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
|
Improve this Doc
View Source
DrawTextureWithTexCoords(Rect, Texture, Rect, Boolean)
Declaration
public void DrawTextureWithTexCoords(Rect position, Texture image, Rect texCoords, bool alphaBlend = true)
Parameters
|
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
Extension Methods
MBExtensions.Invoke<T1, T2, T3, T4>(MonoBehaviour, Action<T1, T2, T3, T4>, T1, T2, T3, T4, Single)