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 SourceGetAllRendererMaterials(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 |
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 |
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 |
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 |
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 |