SSkinnedMeshRenderer

Index

Functions Index

Function Name

Properties Index

Property Name

Functions

GetBlendShapeWeight

float GetBlendShapeWeight (int index)

Return the value of BlendShapeWeight.

Parameter
Type
Description

Space.Host.ExecutingObject.SkinnedMeshRenderer.GetBlendShapeWeight(0)

SetBlendShapeWeight

void SetBlendShapeWeight (int index, float value)

Set the value to the BlendShapeWeight.

Parameter
Type
Description

Space.Host.ExecutingObject.SkinnedMeshRenderer.SetBlendShapeWeight(0)

Properties

Mesh

SResource Mesh get set

Return the mesh.

Space.Host.ExecutingObject.SkinnedMeshRenderer.Mesh = Space.GetResource("resourceName")

IsVisible

bool IsVisible get

Property Description

isVisible = Space.Host.ExecutingObject.SkinnedMeshRenderer.IsVisible

Enabled

bool Enabled get set

To check if the SkinnedMeshRenderer component is Enabled or not.

Space.Host.ExecutingObject.SkinnedMeshRenderer.Enabled = true
--clicking this object will Enable/Disable an object's SkinnedMeshRenderer component
--[Add "skinnedmeshrenderer" reference to scripting runtime component]
thisGameObject = Space.Host.ExecutingObject
skinnedmeshrenderer = Space.Host.GetReference("skinnedmeshrenderer").SkinnedMeshRenderer


OnClick = function()
skinnedmeshrenderer.Enabled =  not skinnedmeshrenderer.Enabled
end


thisGameObject.AddClickable()
thisGameObject.Clickable.OnClick(OnClick)

Material

SMaterial Material get set

Property Description

Space.Host.ExecutingObject.SkinnedMeshRenderer.Material = Space.GetResource("ResourceName").AsMaterial

SharedMaterial

SMaterial SharedMaterial get set

Property Description

Space.Host.ExecutingObject.SkinnedMeshRenderer.SharedMaterial = Space.GetResource("ResourceName").AsMaterial

Materials

SMaterial[] Materials get set

Property Description

Space.Host.ExecutingObject.SkinnedMeshRenderer.Materials = {Space.GetResource("1stResourceName").AsMaterial, Space.GetResource("2ndResourceName").AsMaterial}

SharedMaterials

SMaterial[] SharedMaterials get set

Property Description

Space.Host.ExecutingObject.SkinnedMeshRenderer.SharedMaterials = {Space.GetResource("1stResourceName").AsMaterial, Space.GetResource("2ndResourceName").AsMaterial}

BoundsMax

SVector BoundsMax get

Property Description

vectorBoundsMax = Space.Host.ExecutingObject.SkinnedMeshRenderer.BoundsMax

BoundsMin

SVector BoundsMin get

Property Description

vectorBoundsMin = Space.Host.ExecutingObject.SkinnedMeshRenderer.BoundsMin

GameObject

SGameObject GameObject get

Property Description

theGameObject = Space.Host.ExecutingObject.SkinnedMeshRenderer.GameObject

Last updated

Sinespace® is a registered trademark of Sine Wave Entertainment Ltd, All Rights Reserved.