Cloth.selfCollision

var selfCollision : boolean

Description

Will the cloth collide with itself?

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

JavaScript
    GetComponent(InteractiveCloth).selfCollision = false;

using UnityEngine;
using System.Collections;

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

import UnityEngine
import System.Collections

class example(MonoBehaviour):

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