Feel 5.9.1
The best way to improve your game's feel and make it extra juicy
Loading...
Searching...
No Matches
MoreMountains.Tools.MMParentingOnStart Class Reference

This component lets you parent the transform you put it on to any target parent (or to the root if none is set), on Awake, Start or anytime you call its Parent() method. More...

Inheritance diagram for MoreMountains.Tools.MMParentingOnStart:

Public Types

enum  Modes { Awake , Start , Script }
 the possible modes this can run on More...

Public Member Functions

virtual void Parent ()
 Sets this transform's parent to the target.

Public Attributes

Modes Mode = Modes.Awake
 the selected mode
Transform TargetParent
 the parent to parent to, leave empty if you want to unparent completely

Protected Member Functions

virtual void Awake ()
 On Awake we parent if needed.
virtual void Start ()
 On Start we parent if needed.

Detailed Description

This component lets you parent the transform you put it on to any target parent (or to the root if none is set), on Awake, Start or anytime you call its Parent() method.

Member Enumeration Documentation

◆ Modes

the possible modes this can run on

Enumerator
Awake 
Start 
Script 

Member Function Documentation

◆ Awake()

virtual void MoreMountains.Tools.MMParentingOnStart.Awake ( )
protectedvirtual

On Awake we parent if needed.

◆ Parent()

virtual void MoreMountains.Tools.MMParentingOnStart.Parent ( )
virtual

Sets this transform's parent to the target.

◆ Start()

virtual void MoreMountains.Tools.MMParentingOnStart.Start ( )
protectedvirtual

On Start we parent if needed.

Member Data Documentation

◆ Mode

Modes MoreMountains.Tools.MMParentingOnStart.Mode = Modes.Awake

the selected mode

◆ TargetParent

Transform MoreMountains.Tools.MMParentingOnStart.TargetParent

the parent to parent to, leave empty if you want to unparent completely


The documentation for this class was generated from the following file: