Table of Contents

Class ScreenMeshUtils

Namespace
JLChnToZ.VRC.VVMW.Designer
public static class ScreenMeshUtils
Inheritance
ScreenMeshUtils
Inherited Members

Methods

TryEstimateAspectRatio(Mesh, int, Matrix4x4, out float)

public static bool TryEstimateAspectRatio(Mesh mesh, int subMeshIndex, Matrix4x4 objectToWorld, out float aspectRatio)

Parameters

mesh Mesh
subMeshIndex int
objectToWorld Matrix4x4
aspectRatio float

Returns

bool

TryEstimatePlacement(Mesh, int, Matrix4x4, out Vector3, out Quaternion, out Vector3)

public static bool TryEstimatePlacement(Mesh mesh, int subMeshIndex, Matrix4x4 objectToWorld, out Vector3 position, out Quaternion rotation, out Vector3 scale)

Parameters

mesh Mesh
subMeshIndex int
objectToWorld Matrix4x4
position Vector3
rotation Quaternion
scale Vector3

Returns

bool

TryFixupAspectRatioInMaterial(MeshRenderer)

public static void TryFixupAspectRatioInMaterial(MeshRenderer meshRenderer)

Parameters

meshRenderer MeshRenderer

TryFixupAspectRatioInMaterial(IEnumerable<Renderer>)

public static bool TryFixupAspectRatioInMaterial(IEnumerable<Renderer> renderers)

Parameters

renderers IEnumerable<Renderer>

Returns

bool

TryFixupMaterialProperties(IEnumerable<Renderer>, MaterialPropertyOverride[], string)

public static bool TryFixupMaterialProperties(IEnumerable<Renderer> renderers, ScreenMeshUtils.MaterialPropertyOverride[] properties, string generatedMaterialPostfix = "_Adjusted")

Parameters

renderers IEnumerable<Renderer>
properties MaterialPropertyOverride[]
generatedMaterialPostfix string

Returns

bool

TryFixupMaterialProperties(IEnumerable<Renderer>, Func<Renderer, int, MaterialPropertyOverride[]>, Func<MaterialPropertyOverride[], string>, string)

public static bool TryFixupMaterialProperties(IEnumerable<Renderer> renderers, Func<Renderer, int, ScreenMeshUtils.MaterialPropertyOverride[]> getProperties, Func<ScreenMeshUtils.MaterialPropertyOverride[], string> getGeneratedMaterialPostfix = null, string undoName = "Fixup Material Properties")

Parameters

renderers IEnumerable<Renderer>
getProperties Func<Renderer, int, ScreenMeshUtils.MaterialPropertyOverride[]>
getGeneratedMaterialPostfix Func<ScreenMeshUtils.MaterialPropertyOverride[], string>
undoName string

Returns

bool