unreal.PCGPoint

class unreal.PCGPoint(transform: Transform = Ellipsis, density: float = 0.0, bounds_min: Vector = Ellipsis, bounds_max: Vector = Ellipsis, color: Vector4 = Ellipsis, steepness: float = 0.0, seed: int = 0, metadata_entry: int = 0)

Bases: StructBase

C++ Source:

  • Plugin: PCG

  • Module: PCG

  • File: PCGPoint.h

Editor Properties: (see get_editor_property/set_editor_property)

  • bounds_max (Vector): [Read-Write]

  • bounds_min (Vector): [Read-Write]

  • color (Vector4): [Read-Write]

  • density (float): [Read-Write]

  • metadata_entry (int64): [Read-Only]

  • seed (int32): [Read-Write]

  • steepness (float): [Read-Write]

  • transform (Transform): [Read-Write]

property bounds_max: Vector

[Read-Write]

Type:

(Vector)

property bounds_min: Vector

[Read-Write]

Type:

(Vector)

property color: Vector4

[Read-Write]

Type:

(Vector4)

copy_point(copy_metadata=True, metadata=None, out_metadata=None) PCGPoint

Point functions

Parameters:
Returns:

out_point (PCGPoint):

Return type:

PCGPoint

property density: float

[Read-Write]

Type:

(float)

get_bool_attribute(metadata, attribute_name) bool

Get Bool Attribute

Parameters:
Return type:

bool

get_double_attribute(metadata, attribute_name) double

Get Double Attribute

Parameters:
Return type:

double

get_extents() Vector

Get Extents

Return type:

Vector

get_float_attribute(metadata, attribute_name) float

Get Float Attribute

Parameters:
Return type:

float

get_integer32_attribute(metadata, attribute_name) int32

Get Integer 32Attribute

Parameters:
Return type:

int32

get_integer64_attribute(metadata, attribute_name) int64

Get Integer 64Attribute

Parameters:
Return type:

int64

get_local_center() Vector

Get Local Center

Return type:

Vector

get_quat_attribute(metadata, attribute_name) Quat

Get Quat Attribute

Parameters:
Return type:

Quat

get_random_stream(optional_settings=None, optional_component=None) RandomStream

Creates a random stream from a point’s seed and settings/component’s seed (optional)

Parameters:
Return type:

RandomStream

get_rotator_attribute(metadata, attribute_name) Rotator

Get Rotator Attribute

Parameters:
Return type:

Rotator

get_string_attribute(metadata, attribute_name) str

Get String Attribute

Parameters:
Return type:

str

get_transform_attribute(metadata, attribute_name) Transform

Get Transform Attribute

Parameters:
Return type:

Transform

get_transformed_bounds() Box

Get Transformed Bounds

Return type:

Box

get_vector2_attribute(metadata, attribute_name) Vector2D

Get Vector 2Attribute

Parameters:
Return type:

Vector2D

get_vector4_attribute(metadata, attribute_name) Vector4

Get Vector 4Attribute

Parameters:
Return type:

Vector4

get_vector_attribute(metadata, attribute_name) Vector

Get Vector Attribute

Parameters:
Return type:

Vector

has_attribute_set(metadata, attribute_name) bool

Has Attribute Set

Parameters:
Return type:

bool

initialize_metadata(metadata, parent_point, parent_metadata=None) None

Assigns a metadata entry key and will copy attribute values if from an unrelated metadata. Note: a null ParentMetadata assumes this is the same as Metadata

Parameters:
property metadata_entry: int

[Read-Only]

Type:

(int64)

property seed: int

[Read-Write]

Type:

(int32)

set_bool_attribute(metadata, attribute_name, value) None

Set Bool Attribute

Parameters:
set_double_attribute(metadata, attribute_name, value) None

Set Double Attribute

Parameters:
set_extents(extents) None

Set Extents

Parameters:

extents (Vector) –

set_float_attribute(metadata, attribute_name, value) None

Set Float Attribute

Parameters:
set_integer32_attribute(metadata, attribute_name, value) None

Set Integer 32Attribute

Parameters:
set_integer64_attribute(metadata, attribute_name, value) None

Set Integer 64Attribute

Parameters:
set_local_center(local_center) None

Set Local Center

Parameters:

local_center (Vector) –

set_quat_attribute(metadata, attribute_name, value) None

Set Quat Attribute

Parameters:
set_rotator_attribute(metadata, attribute_name, value) None

Set Rotator Attribute

Parameters:
set_string_attribute(metadata, attribute_name, value) None

Set String Attribute

Parameters:
set_transform_attribute(metadata, attribute_name, value) None

Set Transform Attribute

Parameters:
set_vector2_attribute(metadata, attribute_name, value) None

Set Vector 2Attribute

Parameters:
set_vector4_attribute(metadata, attribute_name, value) None

Set Vector 4Attribute

Parameters:
set_vector_attribute(metadata, attribute_name, value) None

Set Vector Attribute

Parameters:
property steepness: float

[Read-Write]

Type:

(float)

property transform: Transform

[Read-Write]

Type:

(Transform)