This page has been translated automatically.
Video Tutorials
Interface
Essentials
Advanced
How To
Rendering
Professional (SIM)
UnigineEditor
Interface Overview
Assets Workflow
Version Control
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Lighting
Sandworm
Using Editor Tools for Specific Tasks
Extending Editor Functionality
Built-in Node Types
Nodes
Objects
Effects
Decals
Light Sources
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
Programming
Fundamentals
Setting Up Development Environment
Usage Examples
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
Materials and Shaders
Rebuilding the Engine Tools
GUI
Double Precision Coordinates
API
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
VR-Related Classes
Content Creation
Content Optimization
Materials
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials

AnimationBindMaterial Class

Warning
The functionality described here is EXPERIMENTAL and is not recommended for production use. Future releases may bring significant changes to API and features. Backward compatibility of the final production-ready version is not guaranteed.
Warning
The scope of applications for UnigineScript is limited to implementing materials-related logic (material expressions, scriptable materials, brush materials). Do not use UnigineScript as a language for application logic, please consider C#/C++ instead, as these APIs are the preferred ones. Availability of new Engine features in UnigineScript (beyond its scope of applications) is not guaranteed, as the current level of support assumes only fixing critical issues.
Inherits from: AnimationBind

This class is used to manage material bindings of animation objects via code. Animation objects serve as proxies in animation sequences and are bound to specific objects (materials, nodes, property parameters, or runtime objects like widgets and windows) at the playback stage.

Bindings are used to store, search, and obtain real engine objects that are actually animated.

The material to be animated can be bound either via the material asset or via an object's surface to which this material is assigned depending on the specified access mode. In case of accessing a material via a surface we'll get a child material inherited from the one assigned to this surface.

AnimationBindMaterial Class

Members

void setAccess ( int access ) #

Sets a new material access mode. Defines the way the animated material is obtained.

Arguments

  • int access - The access mode.

int getAccess() const#

Returns the current material access mode. Defines the way the animated material is obtained.

Return value

Current access mode.

UGUID getMaterialDescriptionGUID() const#

Returns the current GUID of the animated material.

Return value

Current GUID of the animated material.

UGUID getMaterialDescriptionFileGUID() const#

Returns the current GUID of the file describing the animated material.

Return value

Current GUID of the material file.

getObjectDescriptionID() const#

Returns the current ID of the object, to which a surface with the animated material belongs.

Return value

Current ID of the object.

string getObjectDescriptionName() const#

Returns the current name of the object, to which a surface with the animated material belongs.

Return value

Current name of the object.

string getSurfaceDescriptionName() const#

Returns the current name of the surface, to which the animated material is assigned.

Return value

Current name of the surface.

getSurfaceDescriptionIndex() const#

Returns the current number of the surface, to which the animated material is assigned.

Return value

Current number of the surface in the list of object's surfaces.

Object getObject() const#

Returns the current object to which the animated material is assigned.

Return value

Current object to which the animated material is assigned.

Material getMaterial() const#

Returns the current animated material.

Return value

Current animated material.

AnimationBindMaterial ( ) #

Constructor. Creates an empty material binding.

void setMaterialDescription ( UGUID guid, UGUID file_guid ) #

Sets the description parameters of the animated material. This method is used if the access mode is set to ANIMATION_BIND_MATERIAL_ACCESS_FROM_ASSET()

Arguments

  • UGUID guid - GUID of the animated material.
  • UGUID file_guid - GUID of the file describing the animated material.

void setObjectDescription ( int id, string name ) #

Sets the description parameters of the object to which a surface with the animated material belongs. This method is used if the access mode is set to ANIMATION_BIND_MATERIAL_ACCESS_FROM_SURFACE().

Arguments

  • int id - ID of the object, to which a surface with the animated material belongs.
  • string name - Name of the object, to which a surface with the animated material belongs.

void setSurfaceDescription ( string name, int index ) #

Sets the description parameters of the surface to which the animated material is assigned. This method is used if the access mode is set to ANIMATION_BIND_MATERIAL_ACCESS_FROM_SURFACE()

Arguments

  • string name - Name of the surface, to which the animated material is assigned.
  • int index - Number of the surface, to which the animated material is assigned.
Last update: 2023-11-29
Build: ()