# TransformComponent::SetLocalScale **命名空间**: `XCEngine::Components` **类型**: `method` **头文件**: `XCEngine/Components/TransformComponent.h` ## 签名 ```cpp void SetLocalScale(const Math::Vector3& scale); ``` ## 作用 更新 `m_localScale`。 ## 当前实现 - 会更新 `m_localScale`。 - 当前实现会调用 `SetDirty`。 ## 相关文档 - [TransformComponent](TransformComponent.md) - [GetLocalScale](GetLocalScale.md)