Commit fa2f53c2 authored by 15박보승's avatar 15박보승

록온 UI 개선

parent 406f00c4
...@@ -7,7 +7,7 @@ public class IngameUIManager : SingletonBehaviour<IngameUIManager> ...@@ -7,7 +7,7 @@ public class IngameUIManager : SingletonBehaviour<IngameUIManager>
{ {
[SerializeField] [SerializeField]
private GameObject targetLockedUIPrefab; private GameObject targetLockedUIPrefab;
private List<Image> targetLockedUIs = new List<Image>(); private List<RectTransform> targetLockedUIs = new List<RectTransform>();
[SerializeField] [SerializeField]
private Text heightText; private Text heightText;
...@@ -50,15 +50,15 @@ public class IngameUIManager : SingletonBehaviour<IngameUIManager> ...@@ -50,15 +50,15 @@ public class IngameUIManager : SingletonBehaviour<IngameUIManager>
for (int j = 0; j < pos.Length - count; j++) for (int j = 0; j < pos.Length - count; j++)
{ {
targetLockedUIs.Add(Instantiate(targetLockedUIPrefab, transform).GetComponent<Image>()); targetLockedUIs.Add(Instantiate(targetLockedUIPrefab, transform).GetComponent<RectTransform>());
} }
//Debug.Log(targetLockedUIs.Count); //Debug.Log(targetLockedUIs.Count);
//Debug.Log(pos.Length); //Debug.Log(pos.Length);
for (; i < pos.Length; i++) for (; i < pos.Length; i++)
{ {
Vector2 viewportPoint = Camera.main.WorldToViewportPoint(pos[i]); Vector2 viewportPoint = Camera.main.WorldToViewportPoint(pos[i]);
targetLockedUIs[i].rectTransform.anchorMin = viewportPoint; targetLockedUIs[i].anchorMin = viewportPoint;
targetLockedUIs[i].rectTransform.anchorMax = viewportPoint; targetLockedUIs[i].anchorMax = viewportPoint;
} }
for (tmp = i; i < targetLockedUIs.Count; i++) for (tmp = i; i < targetLockedUIs.Count; i++)
{ {
......
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RotateObject : MonoBehaviour
{
public Vector3 eulerAngle;
private void Update()
{
transform.Rotate(eulerAngle * Time.deltaTime);
}
}
fileFormatVersion: 2
guid: 5d123f8ee226b9948ad6a0ef6fa154a2
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 8eaef119264c3904382f84bc56313bb5
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 10
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -100
wrapU: 1
wrapV: 1
wrapW: -1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Windows Store Apps
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment