Show / Hide Table of Contents

Class ShaderHelper

Various static utility methods for working with Shaders
Inheritance
System.Object
ShaderHelper
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.Utils
Assembly: Jotunn.dll
Syntax
public static class ShaderHelper

Methods

| Improve this Doc View Source

GetAllRendererMaterials(GameObject)

Get a list of all normal and shared renderer of a GameObject and its childs
Declaration
public static List<Material> GetAllRendererMaterials(GameObject gameObject)
Parameters
Type Name Description
GameObject gameObject Parent GameObject
Returns
Type Description
System.Collections.Generic.List<Material> List of
| Improve this Doc View Source

GetRendererMaterials(GameObject)

Get a list of all renderer of a GameObject and its childs
Declaration
public static List<Material> GetRendererMaterials(GameObject gameObject)
Parameters
Type Name Description
GameObject gameObject Parent GameObject
Returns
Type Description
System.Collections.Generic.List<Material> List of
| Improve this Doc View Source

GetRenderers(GameObject)

Get a list of all and in this GameObject and its childs.
Declaration
public static List<Renderer> GetRenderers(GameObject gameObject)
Parameters
Type Name Description
GameObject gameObject Parent GameObject
Returns
Type Description
System.Collections.Generic.List<Renderer> List of and
| Improve this Doc View Source

GetRendererSharedMaterials(GameObject)

Get a list of all shared renderer of a GameObject and its childs
Declaration
public static List<Material> GetRendererSharedMaterials(GameObject gameObject)
Parameters
Type Name Description
GameObject gameObject Parent GameObject
Returns
Type Description
System.Collections.Generic.List<Material> List of
| Improve this Doc View Source

ShaderDump(GameObject)

Dumps all shader information of a GameObject and its childs onto debug log
Declaration
public static void ShaderDump(GameObject gameObject)
Parameters
Type Name Description
GameObject gameObject
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾