Cloth.selfCollision Manual     Reference     Scripting  
Scripting > Runtime Classes > Cloth
Cloth.selfCollision

var selfCollision : bool

Description

Will the cloth collide with itself?

Enable this only where needed, as it has a big impact on cloth performance.

JavaScripts
GetComponent(InteractiveCloth).selfCollision = false;

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Awake() {
GetComponent<InteractiveCloth>().selfCollision = false;
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
GetComponent[of InteractiveCloth]().selfCollision = false