Highroad Engine v1.3
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | List of all members
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 More...
 

Public Attributes

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

Protected Member Functions

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

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: