Struct BrushSurface
Represents a part of the CSG brush actor. Contains information about single surface.
Inherited Members
Assembly: FlaxEngine.dll
File: Engine/Level/Actors/BoxBrush.h
Syntax
public struct BrushSurface : public ISerializable
Fields
Brush
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
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. |