/// <summary> /// </summary> /// <param name="instance"> /// </param> /// <param name="renderId"> /// </param> public virtual void _registerInstanceForRenderId(InstancedMesh instance, int renderId) { if (this._visibleInstances == null) { this._visibleInstances = new InstancedMeshes(); this._visibleInstances.defaultRenderId = renderId; this._visibleInstances.selfDefaultRenderId = this._renderId; } if (this._visibleInstances[renderId] == null) { this._visibleInstances[renderId] = new Array <InstancedMesh>(); } this._visibleInstances[renderId].Add(instance); }
/// <summary> /// </summary> public override void _preActivate() { this._visibleInstances = null; }