UnigineScript
The Language
Core Library
Engine Library
Node-Related Classes
GUI-Related Classes
Plugins Library
High-Level Systems
Samples
C++ API
API Reference
Integration Samples
Usage Examples
C++ Plugins
Content Creation
Materials
Unigine Material Library
Tutorials

DecalObject Class

This class describes how to create and modify object decals.

DecalObject Class

This class inherits from Decal

Members


void clear ()

Deletes the decal.

void create (Object object)

Creates a new decal instance.

void create ()

Creates a new decal.

float getOffset ()

Returns the current offset of the decal towards the projection center.

Return value

The offset of the decal towards the projection center, in units.

int getTwoSided ()

Returns a value indicating if the decal is two-sided.

Return value

1 if the decal is two-sided; otherwise - 0.

int isDynamic ()

1 if the decal is created dynamically; otherwise - 0.

Return value

Returns a value indicating if the decal is created dynamically.

void release ()

Releases the decal.

void setDynamic (int dynamic)

Sets a flag indicating that decal is created dynamically.

Arguments

  • int dynamic - Dynamical creation flag.

void setOffset (float offset)

Sets the new offset of the decal towards the projection center.

Arguments

  • float offset - The offset of the decal towards the projection center, in units.

void setTwoSided (int two_sided)

Sets a two-sided type flag to the decal.

Arguments

  • int two_sided - Two-sided type flag.
Last update: 2017-07-03