Show / Hide Table of Contents

Class ExposedGameObjectExtension

Extends GameObject with a shortcut for the Unity bool operator override.
Inheritance
object
ExposedGameObjectExtension
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Jotunn
Assembly: Jotunn.dll
Syntax
public static class ExposedGameObjectExtension

Methods

Name Description
AddComponentCopy<T>(GameObject, T) Adds a new copy of the provided component to a gameObject
FindDeepChild(GameObject, IEnumerable<string>, IterativeSearchType) Extension method to find nested children by an ordered list of names using either a breadth-first or depth-first search. Default is breadth-first.
FindDeepChild(GameObject, string, IterativeSearchType) Extension method to find nested children by name using either a breadth-first or depth-first search. Default is breadth-first.
GetOrAddComponent<T>(GameObject) Returns the component of Type type. If one doesn't already exist on the GameObject it will be added.
HasAllComponents(GameObject, params string[]) Check if GameObject has all of the specified components.
HasAllComponents(GameObject, params Type[]) Check if GameObject has all of the specified components.
HasAnyComponent(GameObject, params string[]) Check if GameObject has any of the specified components.
HasAnyComponent(GameObject, params Type[]) Check if GameObject has any of the specified components.
HasAnyComponentInChildren(GameObject, bool, params Type[]) Check if GameObject or any of it's children have any of the specified components.
OrNull(GameObject) Facilitates use of null propagation operator for unity GameObjects by respecting op_equality.
OrNull<T>(T) Facilitates use of null propagation operator for unity MonBehaviours by respecting op_equality.
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾