Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

QualitySettings.blendWeights

static var blendWeights: BlendWeights;
static BlendWeights blendWeights;
static blendWeights as BlendWeights

Description

Blend weights.

The Blend weights can be set to either One Bone, Two Bones or Four Bones.

	// Set Blend weights to one bone.

QualitySettings.blendWeights = BlendWeights.OneBone;

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour {
    void Example() {
        QualitySettings.blendWeights = BlendWeights.OneBone;
    }
}
import UnityEngine
import System.Collections

public class ExampleClass(MonoBehaviour):

	def Example() as void:
		QualitySettings.blendWeights = BlendWeights.OneBone

See Also: Quality Settings.