First commit for private source control. Older commits available on Github.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#if PRIME_TWEEN_INSTALLED
|
||||
using UnityEngine;
|
||||
|
||||
namespace PrimeTweenDemo {
|
||||
public class HighlightableElement : MonoBehaviour {
|
||||
[SerializeField] public Transform highlightAnchor;
|
||||
public MeshRenderer[] models { get; private set; }
|
||||
|
||||
void OnEnable() {
|
||||
models = GetComponentsInChildren<MeshRenderer>();
|
||||
foreach (var mr in models) {
|
||||
mr.sharedMaterial = new Material(mr.sharedMaterial); // copy shared material
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user