(29-03-2019, 10:14 AM)Richard Wrote: using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Obi;
public class ManSetting : MonoBehaviour
{
public GameObject man;
void Start()
{
man.AddComponent<MeshCollider>();
man.AddComponent<ObiCollider>();
}
// Update is called once per frame
void Update()
{
Transform myTransform = this.transform;
Vector3 localScale = myTransform.localScale;
}
}
I copied your script to my project and got no errors. Write the exact code string that error is linked to.
(P.S., caching transform is good practice, but you're doing it wrong. Caching transform every update makes no sense and will do you no good.)