engage/generated/unity_engine/
colorutility.rs1#[cfg(feature = "unity_engine-colorutility-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::object::{IObject, Object};
9
10 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/colorutility/ColorUtility.md"))]
11 #[::unity::class(namespace = "UnityEngine", name = "ColorUtility")]
12 #[parent(crate::system::object::Object)]
13 pub struct ColorUtility {}
14}
15
16#[cfg(feature = "unity_engine-colorutility-types")]
17pub use __types::*;
18
19#[cfg(feature = "unity_engine-colorutility")]
20impl ColorUtility {
21 #[doc = "`ToHtmlStringRGB(crate::unity_engine::color::Color)` overload"]
22 pub fn to_html_string_rgb(color: impl ::core::convert::Into<crate::unity_engine::color::Color>) -> ::unity::Il2CppString {
23 unsafe {
24 ::unity::il2cpp_call!((::unity::module_base()+0x2c41b70usize)as*mut u8, ::unity::Il2CppString;
25(crate::unity_engine::color::Color)::core::convert::Into::into(color))
26 }
27 }
28}
29
30#[cfg(feature = "unity_engine-colorutility")]
31impl ColorUtility {
32 pub fn to_html_string_rgb_method_info() -> &'static ::unity::il2cpp::MethodInfo {
33 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
34 }
35}
36
37#[cfg(feature = "unity_engine-colorutility")]
38#[doc(hidden)]
39pub mod prelude {
40 pub use super::{ColorUtility, IColorUtility};
41 pub use crate::system::object::IObject;
42 #[cfg(feature = "system-object")]
43 pub use crate::system::object::IObjectMethods;
44}