Sinespace Client  2023.2.17543
Client-side scripting for Sinespace
SineSpace.Scripting.Components.SMeshFilter Class Reference
Inheritance diagram for SineSpace.Scripting.Components.SMeshFilter:
ScriptClassComponent< MeshFilter >

Properties

SMesh Mesh [get, set]
 Sets or returns the mesh using an SMesh object. More...
 
SMesh SharedMesh [get, set]
 Sets or returns the shared mesh using an SMesh object. More...
 
- Properties inherited from ScriptClassComponent< MeshFilter >
SGameObject GameObject [get]
 Return the GameObject which component added. More...
 

Property Documentation

◆ Mesh

SMesh SineSpace.Scripting.Components.SMeshFilter.Mesh
getset

Sets or returns the mesh using an SMesh object.

local thisObject = Space.Host.ExecutingObject
local firstChild = thisObject.children[1]
local secondChild = thisObject.children[2]
&ndash; Makes the second child have the same mesh as the first child.
secondChild.MeshFilter.Mesh = firstChild.MeshFilter.Mesh

◆ SharedMesh

SMesh SineSpace.Scripting.Components.SMeshFilter.SharedMesh
getset

Sets or returns the shared mesh using an SMesh object.

local thisObject = Space.Host.ExecutingObject
local firstChild = thisObject.children[1]
local secondChild = thisObject.children[2]
&ndash; Makes the second child have the same shared mesh as the first child.
secondChild.MeshFilter.SharedMesh = firstChild.MeshFilter.SharedMesh