/// <summary>Retrieves the imageindex of a specified texture in the list.</summary> /// <description> /// /// </description> /// <param name="imagePath">Imagemap including filepath of image to search for</param> /// <code> /// // Define the imagemap to search for /// %imagePath = "./game/client/data/images/thisImage"; /// /// // Request the index entry for the defined imagemap /// %imageIndex = %thisGuiImageList.getIndex(%imagePath); /// </code> /// <returns>Index of the imagemap matching the defined image path.</returns> /// <see cref="SimObject" /> public int GetIndex(string imagePath) { InternalUnsafeMethods.GetIndex__Args _args = new InternalUnsafeMethods.GetIndex__Args() { imagePath = imagePath, }; int _engineResult = InternalUnsafeMethods.GetIndex()(ObjectPtr, _args); return _engineResult; }
/// <description> /// ( void ) - Get the index of this object relative to its siblings. /// </description> /// <returns>Returns the index of this object.</returns> public int GetIndex() { InternalUnsafeMethods.GetIndex__Args _args = new InternalUnsafeMethods.GetIndex__Args() { }; int _engineResult = InternalUnsafeMethods.GetIndex()(ObjectPtr, _args); return(_engineResult); }