mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/MI-38.git
synced 2026-01-24 09:55:38 +03:00
04.07.2022
This commit is contained in:
20
Heli_with_panels/Assets/Fusel/scripts/ChangeMaterial.cs
Normal file
20
Heli_with_panels/Assets/Fusel/scripts/ChangeMaterial.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class ChangeMaterial : MonoBehaviour
|
||||
{
|
||||
Renderer [] renderers;
|
||||
public Material probmaterial;
|
||||
|
||||
void Start()
|
||||
{
|
||||
GameObject cabinproz = GameObject.Find("CabinProz");
|
||||
renderers = cabinproz.GetComponentsInChildren<Renderer>();
|
||||
foreach (Renderer _renderers in renderers)
|
||||
{
|
||||
//probmaterial.renderQueue = 5000;
|
||||
_renderers.material = probmaterial;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user