Class PrefabCaptureNode
Inheritance
System.Object
PrefabCaptureNode
Assembly: Mixture.Runtime.dll
Syntax
[Documentation("\r\nRenders the content of the prefab using the camera at the root of the prefab.\r\nYou can use choose to output different buffers from the prefab: Color, Depth, World Normal, Tangent or World Position.\r\nThe alpha channel is used to know whether an object is here or not (0 means nothing and 1 object).\r\n\r\nOpening the prefab will switch to a render texture so you can visualize the changes in real-time in the graph.\r\nWhen you are satisfied with the setup in the prefab, click on 'Save Current View' to save the texture as sub-asset of the graph, you cna the close the prefab and the scene node will use this baked texture as output.\r\n\r\nNote that this node is currently only available with HDRP.\r\n")]
[Serializable]
public class PrefabCaptureNode : MixtureNode
Fields
|
Improve this Doc
View Source
mode
Declaration
public PrefabCaptureNode.OutputMode mode
Field Value
|
Improve this Doc
View Source
outputTexture
Declaration
[Tooltip("Rendered view from the camera in the prefab")]
[NonSerialized]
public Texture outputTexture
Field Value
Type |
Description |
UnityEngine.Texture |
|
|
Improve this Doc
View Source
prefab
Declaration
Field Value
Type |
Description |
UnityEngine.GameObject |
|
Properties
|
Improve this Doc
View Source
hasSettings
Declaration
public override bool hasSettings { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
|
Improve this Doc
View Source
name
Declaration
public override string name { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
nodeWidth
Declaration
public override float nodeWidth { get; }
Property Value
Type |
Description |
System.Single |
|
Overrides
|
Improve this Doc
View Source
previewTexture
Declaration
public override Texture previewTexture { get; }
Property Value
Type |
Description |
UnityEngine.Texture |
|
Overrides
|
Improve this Doc
View Source
showDefaultInspector
Declaration
public override bool showDefaultInspector { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
|
Improve this Doc
View Source
showPreviewExposure
Declaration
public override bool showPreviewExposure { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Methods
|
Improve this Doc
View Source
Disable()
Declaration
protected override void Disable()
Overrides
|
Improve this Doc
View Source
Enable()
Declaration
protected override void Enable()
|
Improve this Doc
View Source
OnNodeCreated()
Declaration
public override void OnNodeCreated()
Overrides
|
Improve this Doc
View Source
ProcessNode(CommandBuffer)
Declaration
protected override bool ProcessNode(CommandBuffer cmd)
Parameters
Type |
Name |
Description |
UnityEngine.Rendering.CommandBuffer |
cmd |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides