Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

BaseInputModule.FindCommonRoot

protected static GameObject FindCommonRoot(GameObject g1, GameObject g2);

Description

Given 2 GameObjects, return a common root GameObject (or null).