Search Results for

    Show / Hide Table of Contents

    Struct BrushSurface

    Represents a part of the CSG brush actor. Contains information about single surface.

    Inherited Members
    ISerializable::DeserializeIfExists(DeserializeStream& stream, const char* memberName, ISerializeModifier* modifier)
    BrushSurface
    BrushSurface
    BrushSurface
    ISerializable::~ISerializable()
    Assembly: FlaxEngine.dll
    File: Engine/Level/Actors/BoxBrush.h
    Syntax
    public struct BrushSurface : public ISerializable

    Fields

    Brush

    The parent brush.

    Declaration
    public BoxBrush* Brush = nullptr
    Field Value
    BoxBrush

    Index

    The surface index in the parent brush surfaces list.

    Declaration
    public int32 Index = -1
    Field Value
    int32

    Material

    The material used to render the brush surface.

    Declaration
    public AssetReference<MaterialBase> Material
    Field Value
    AssetReference<MaterialBase>

    ScaleInLightmap

    The scale in lightmap (per surface).

    Declaration
    public float ScaleInLightmap = 1.0f
    Field Value
    float

    TexCoordOffset

    The surface texture coordinates offset.

    Declaration
    public Float2 TexCoordOffset = Float2::Zero
    Field Value
    Float2

    TexCoordRotation

    The surface texture coordinates rotation angle (in degrees).

    Declaration
    public float TexCoordRotation = 0.0f
    Field Value
    float

    TexCoordScale

    The surface texture coordinates scale.

    Declaration
    public Float2 TexCoordScale = Float2::One
    Field Value
    Float2

    Methods

    Deserialize(DeserializeStream& stream, ISerializeModifier* modifier)

    Deserializes object from the input stream.

    Declaration
    public virtual void Deserialize(DeserializeStream& stream, ISerializeModifier* modifier) override
    Parameters
    DeserializeStream stream

    The input stream.

    ISerializeModifier modifier

    The deserialization modifier object. Always valid.

    Overrides
    ISerializable::Deserialize(DeserializeStream& stream, ISerializeModifier* modifier)

    Serialize(SerializeStream& stream, const void* otherObj)

    Serializes object to the output stream compared to the values of the other object instance (eg. default class object). If other object is null then serialize all properties.

    Declaration
    public virtual void Serialize(SerializeStream& stream, const void* otherObj) override
    Parameters
    SerializeStream stream

    The output stream.

    void otherObj

    The instance of the object to compare with and serialize only the modified properties. If null, then serialize all properties.

    Overrides
    ISerializable::Serialize(SerializeStream& stream, const void* otherObj)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat