void OnLayerChanged(Level.LayerTypes pType) { if (mActiveGameObjectAsset == null) { return; } if (pType == mActiveGameObjectAsset.mRenderLayer) { return; } mActiveGameObjectAsset.mRenderLayer = pType; }
public bool IsLayerObjectPresent(Vector2Int pPosition, Level.LayerTypes pLayer) { if (mActiveLevel.mLevelData == null) { return(false); } int aLIx = GetPositionIndex(pPosition); if (aLIx == -1) { return(false); } if (mActiveLevel.mLevelData[aLIx].mLayerTypes.Contains(pLayer)) { return(true); } return(false); }
void ZoomInOut() { EditorGUILayout.BeginHorizontal(); EditorGUILayout.LabelField("Current Map Zoom: "); mCellSize = EditorGUILayout.IntSlider(mCellSize, mMinCellSize, mMaxCellSize); EditorGUILayout.EndHorizontal(); GUILayout.Space(100); EditorGUILayout.BeginHorizontal(); EditorGUILayout.LabelField("Current Draw Layer: "); Level.LayerTypes aLayer = (Level.LayerTypes)EditorGUILayout.EnumPopup(mActiveLayer); if (aLayer != mActiveLayer) { mActiveLayer = aLayer; mActiveBrushId = -1; mActiveBrushesCount = 0; } mShowAll = EditorGUILayout.Toggle("Show All", mShowAll); EditorGUILayout.EndHorizontal(); }