Show / Hide Table of Contents

Class MixtureGraph

Inheritance
System.Object
MixtureGraph
Namespace: Mixture
Assembly: Mixture.Runtime.dll
Syntax
[Serializable]
public class MixtureGraph : BaseGraph

Constructors

| Improve this Doc View Source

MixtureGraph()

Declaration
public MixtureGraph()

Fields

| Improve this Doc View Source

embedInBuild

Add the mixture asset to the built player, note that it only works for static mixtures as realtime ones are always included.

Declaration
public bool embedInBuild
Field Value
Type Description
System.Boolean
| Improve this Doc View Source

isParameterViewOpen

Declaration
public bool isParameterViewOpen
Field Value
Type Description
System.Boolean
| Improve this Doc View Source

isRealtime

Declaration
public bool isRealtime
Field Value
Type Description
System.Boolean
| Improve this Doc View Source

realtimePreview

Declaration
public bool realtimePreview
Field Value
Type Description
System.Boolean

Properties

| Improve this Doc View Source

mainAssetPath

Declaration
public string mainAssetPath { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

mainOutputTexture

Declaration
public Texture mainOutputTexture { get; set; }
Property Value
Type Description
UnityEngine.Texture
| Improve this Doc View Source

outputNode

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

outputTextures

Declaration
public List<Texture> outputTextures { get; }
Property Value
Type Description
System.Collections.Generic.List<UnityEngine.Texture>

Methods

| Improve this Doc View Source

AddObjectToGraph(Object)

Declaration
public void AddObjectToGraph(Object obj)
Parameters
Type Name Description
UnityEngine.Object obj
| Improve this Doc View Source

ClearObjectReferences()

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

FindOutputTexture(String, Boolean)

Declaration
public Texture FindOutputTexture(string name, bool isMain)
Parameters
Type Name Description
System.String name
System.Boolean isMain
Returns
Type Description
UnityEngine.Texture
| Improve this Doc View Source

GetObjectsReferences()

Declaration
public List<Object> GetObjectsReferences()
Returns
Type Description
System.Collections.Generic.List<UnityEngine.Object>
| Improve this Doc View Source

IsExternalSubAsset(Object)

Declaration
public bool IsExternalSubAsset(Object obj)
Parameters
Type Name Description
UnityEngine.Object obj
Returns
Type Description
System.Boolean
| Improve this Doc View Source

IsObjectInGraph(Object)

Declaration
public bool IsObjectInGraph(Object obj)
Parameters
Type Name Description
UnityEngine.Object obj
Returns
Type Description
System.Boolean
| Improve this Doc View Source

ReadbackMainTexture(Texture)

Declaration
public void ReadbackMainTexture(Texture target)
Parameters
Type Name Description
UnityEngine.Texture target
| Improve this Doc View Source

ReadBackTexture(OutputNode, RenderTexture, Boolean, TextureFormat, MixtureCompressionQuality, Texture)

Declaration
protected void ReadBackTexture(OutputNode node, RenderTexture source, bool enableCompression = false, TextureFormat compressionFormat = TextureFormat.DXT5, MixtureCompressionQuality compressionQuality = MixtureCompressionQuality.Best, Texture externalTexture = null)
Parameters
Type Name Description
OutputNode node
UnityEngine.RenderTexture source
System.Boolean enableCompression
UnityEngine.TextureFormat compressionFormat
MixtureCompressionQuality compressionQuality
UnityEngine.Texture externalTexture
| Improve this Doc View Source

RemoveObjectFromGraph(Object)

Declaration
public void RemoveObjectFromGraph(Object obj)
Parameters
Type Name Description
UnityEngine.Object obj
| Improve this Doc View Source

UpdateOutputTextures()

Warning: this function will create updated the cached texture and may result in partial writing of texture on the disk (only uncompressed textures will be updated)

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

WriteRequestResult(AsyncGPUReadbackRequest, MixtureGraph.ReadbackData)

Declaration
protected void WriteRequestResult(AsyncGPUReadbackRequest request, MixtureGraph.ReadbackData data)
Parameters
Type Name Description
UnityEngine.Rendering.AsyncGPUReadbackRequest request
MixtureGraph.ReadbackData data

Events

| Improve this Doc View Source

onOutputTextureUpdated

Declaration
public event Action onOutputTextureUpdated
Event Type
Type Description
System.Action
  • Improve this Doc
  • View Source
Back to top Generated by DocFX