Unity find all scriptable objects of type11/30/2023 ![]() ![]() if the marker is turned off compleetly, turn off marker object and stop any further updates.ĭebug.Log(npcMarkerObject.name + " | " + ObjectInView() + " | " + NPCinLOS()) If below, knock it down to 30FPS update times. If above 60FPS, frame time to 60FPS update times. adjust how fast markers update to help potatoes computers. if static npc present, setup flat npc marker color, type, and activate marker object so iit shows on minimap. ![]() if enemy npc present, setup flat npc marker color, type, and activate marker object so iit shows on minimap. NpcMarkerObject.name = npcMarkerObject.name + " " + mobileNPC.NameNPC if friendly npc present, setup flat npc marker color, type, and activate marker object so iit shows on minimap. MarkerScale = new Vector3(Minimap.indicatorSize. This needs moved to update in some way, so it updates on entering a building/dungeon. check if player is inside or not, and then setup proper marker size. Marker.npcMarkerMaterial = Minimap.updateMaterials(npcMarkerObject, Color.white. NpcMarkerObject = GameObject.CreatePrimitive(PrimitiveType.Sphere) setup base npc marker object and properties. StaticNPC flatNPC = GetComponentInParent() MobilePersonNPC mobileNPC = GetComponentInParent() ĭaggerfallEnemy mobileEnemy = GetComponentInParent() ![]() Creating an Instance (an Object) of the marker class to store and update specific object properties once initiated. NpcMarkerMaterial = Minimap.buildingMarkerMaterial object constructor class and properties for setting up, storing, and manipulating specific object properties. Code: Select all using System.Collections ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |