Skip to main content

IMapUnitCommandMenuItemContentMethods

Trait IMapUnitCommandMenuItemContentMethods 

Source
pub trait IMapUnitCommandMenuItemContentMethods: IMapUnitCommandMenuItemContent {
    // Provided methods
    fn find_game_object(self, name: impl Into<Il2CppString>) -> GameObject { ... }
    fn setup_objects(self) { ... }
    fn build(self, menu_item: impl Into<BasicMenuItem>) { ... }
    fn build_text(self) { ... }
    fn set_help_text(self, help: impl Into<Il2CppString>, c: impl Into<Color>) { ... }
    fn set_help_text_alpha(self, alpha: impl Into<f32>) { ... }
    fn get_text_mesh_pro_component(self) -> TextMeshProUGUI { ... }
    fn ctor(self) { ... }
}

Provided Methods§

Source

fn find_game_object(self, name: impl Into<Il2CppString>) -> GameObject

FindGameObject(::unity::Il2CppString) overload

Source

fn setup_objects(self)

SetupObjects() overload

Source

fn build(self, menu_item: impl Into<BasicMenuItem>)

Build(crate::app::basicmenuitem::BasicMenuItem) overload

Source

fn build_text(self)

BuildText() overload

Source

fn set_help_text(self, help: impl Into<Il2CppString>, c: impl Into<Color>)

SetHelpText(::unity::Il2CppString, crate::unity_engine::color::Color) overload

Source

fn set_help_text_alpha(self, alpha: impl Into<f32>)

SetHelpTextAlpha(f32) overload

Source

fn get_text_mesh_pro_component(self) -> TextMeshProUGUI

GetTextMeshProComponent() overload

Source

fn ctor(self)

.ctor() overload

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<__T: IMapUnitCommandMenuItemContent> IMapUnitCommandMenuItemContentMethods for __T

Available on crate feature app-mapunitcommandmenuitemcontent only.