From bf3a1f9266df5da4f0bda4faf070130a8aaeb37c Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sun, 2 Mar 2025 17:37:39 -0500 Subject: [PATCH] Add more documentation for LinearColor --- src/structure/linear_color.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/structure/linear_color.rs b/src/structure/linear_color.rs index 4ed0551..96168e5 100644 --- a/src/structure/linear_color.rs +++ b/src/structure/linear_color.rs @@ -2,12 +2,19 @@ use binrw::binrw; use crate::property::PropertyBase; +/// A linear, 32-bit/component floating point RGBA color. +/// +/// See [the Unreal Engine documentation](https://dev.epicgames.com/documentation/en-us/unreal-engine/API/Runtime/Core/Math/FLinearColor?application_version=4.27). #[binrw] #[derive(Debug)] pub struct LinearColorStruct { + /// Red component. pub r: f32, + /// Green component. pub g: f32, + /// Blue component. pub b: f32, + /// Alpha component. pub a: f32, }