This page has been translated automatically.
视频教程
界面
要领
高级
实用建议
专业(SIM)
UnigineEditor
界面概述
资源工作流程
版本控制
设置和首选项
项目开发
调整节点参数
Setting Up Materials
设置属性
照明
Sandworm
使用编辑器工具执行特定任务
如何擴展編輯器功能
嵌入式节点类型
Nodes
Objects
Effects
Decals
光源
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
编程
基本原理
搭建开发环境
使用范例
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
材质和着色器
Rebuilding the Engine Tools
GUI
双精度坐标
应用程序接口
Animations-Related Classes
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
创建内容
内容优化
材质
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials

Unigine.SplinePoint Class

This class is used to manage individual points of the world spline graph.

SplinePoint Class

Properties

int NumSources#

The total number of source nodes assigned to this spline point.

int NumSegments#

The total number of segments sharing this spline point.

vec3 Position#

The current position of the spline point.

WorldSplineGraph Parent#

The WorldSplineGraph node to which the spline point belongs.

int NumNodes#

The total number of nodes placed at this spline point.

Members


void SetEnabled ( bool enable, bool with_segments = 1 ) #

Sets a value indicating whether the spline point is enabled.

Arguments

  • bool enable - 1 to enable the spline point, 0 to disable.
  • bool with_segments - Use true to enable all segments, to which the point belongs as well, false to enable the spline point only.

bool IsEnabled ( ) #

Returns a value indicating whether the spline point is enabled.

Return value

true if the spline point is enabled; otherwise, false.

void GetSplineSegments ( SplineSegment[] OUT_segments ) #

Returns the list of segments, to which the spline point belongs, and puts them to the specified array of SplineSegment elements.

Arguments

  • SplineSegment[] OUT_segments - Array to store the list of segments, to which the spline point belongs.
    Notice
    This output buffer is to be filled by the Engine as a result of executing the method.

void ClearSources ( ) #

Clears the list of source nodes for the spline point.

void AssignSource ( string name ) #

Assigns a source node with the given name to the spline point.

Arguments

void RemoveSource ( string name ) #

Removes the source node with the given name.

Arguments

void GetSources ( string[] OUT_sources ) #

Returns a list of source nodes assigned to the spline point and puts it to the specified vector.

Arguments

  • string[] OUT_sources - List of source nodes assigned to the spline point.
    Notice
    This output buffer is to be filled by the Engine as a result of executing the method.

void Copy ( SplinePoint src ) #

Copies all parameters from the specified source spline point.

Arguments

  • SplinePoint src - Source spline point.

SplinePoint Clone ( ) #

Returns a clone of the spline point.

Return value

Clone of the spline point.

int GetSourceNodeType ( string name ) #

Returns the type of the source node with the specified name.

Arguments

Return value

Source node type.

void SetLinkVariant ( string name, int variant ) #

Sets a link variant for the junction source node with the specified name.

Arguments

  • string name - Source node name.
  • int variant - Link variant number for the junction source node.

int GetLinkVariant ( string name ) #

Returns the current link variant for the junction source node with the specified name.

Arguments

Return value

Link variant number for the junction source node.

int GetLinkWorldPosition ( SplineSegment segment, out Vec3 position ) #

Gets the current link (bone) position of the junction source node and puts it to the specified position vector.

Arguments

  • SplineSegment segment - Spline segment for which the position of the corresponding link (bone) of the junction source node is to be obtained.
  • out Vec3 position - Vector to store the position of the junction source node's link (bone) corresponding to the specified spline segment.

Return value

1 if the current position of the junction source node's link (bone) corresponding to the specified spline segment was obtained successfully; otherwise 0.

int GetNumNodes ( ) #

Returns the total number of nodes placed at this spline point.

Return value

Total number of nodes placed at this spline point.
Last update: 2024-04-19
Build: ()